Module: useCases/analytics/calculateEfficiency

Methods

(static) getGlobalEfficiency()

Global Efficiency calculation: Global Sam Produced = production output quantity * Global Sam(sam from sage) Global Minutes = (Total Machines + Helpers) * totalWorkMinutes)) + Global OT minutes(present not applicable) Global Efficiency = Global Sam Produced / Global Minutes

(static) getGlobalEfficiency()

Global Efficiency calculation: Global Sam Produced = production output quantity * Global Sam(sam from sage) Global Minutes = (Total Machines + Helpers) * totalWorkMinutes)) + Global OT minutes(present not applicable) Global Efficiency = Global Sam Produced / Global Minutes

(static) getSewingEfficiency()

Sewing Efficiency calculation: Sewing Sam Produced = Production Output Quantity * Garment Sam(sam from sage) Machine Minutes = (Total Machines * totalWorkMinutes) + Machine OT minutes(present not applicable) Sewing Efficiency = Sewing Sam Produced / Machine Minutes

(static) getSewingEfficiency()

Sewing Efficiency calculation: Sewing Sam Produced = Production Output Quantity * Garment Sam(sam from sage) Machine Minutes = (Total Machines * totalWorkMinutes) + Machine OT minutes(present not applicable) Sewing Efficiency = Sewing Sam Produced / Machine Minutes

calculateHourlyEfficiency(batchOutputData)

Parameters:
Name Type Description
batchOutputData Map.<string, BatchOutputObjectWithHourlyDetails>

calculateHourlyEfficiency(batchOutputData)

Parameters:
Name Type Description
batchOutputData Map.<string, BatchOutputObjectWithHourlyDetails>

calculateOverallEfficiency(batchOutputData)

Parameters:
Name Type Description
batchOutputData Map.<string, (BatchOutputObjectWithHourlyEfficiency|BatchOutputObjectWithTotalOutputQuantity)>

calculateOverallEfficiency(batchOutputData)

Parameters:
Name Type Description
batchOutputData Map.<string, (BatchOutputObjectWithHourlyEfficiency|BatchOutputObjectWithTotalOutputQuantity)>

calculateTotalOutputQuantity(batchOutputData)

Parameters:
Name Type Description
batchOutputData Map.<string, BatchOutputObjectWithHourlyEfficiency>

calculateTotalOutputQuantity(batchOutputData)

Parameters:
Name Type Description
batchOutputData Map.<string, BatchOutputObjectWithHourlyEfficiency>

createHourlyDetailsForEachGrouping(batchOutputDataWithOutputQuantitiesAndTimeFiltered)

Parameters:
Name Type Description
batchOutputDataWithOutputQuantitiesAndTimeFiltered Map.<string, Array.<BatchOutputObjectWithOutputQuantitiesAndTime>>

createHourlyDetailsForEachGrouping(batchOutputDataWithOutputQuantitiesAndTimeFiltered)

Parameters:
Name Type Description
batchOutputDataWithOutputQuantitiesAndTimeFiltered Map.<string, Array.<BatchOutputObjectWithOutputQuantitiesAndTime>>

createOutputTimeAndQuantitiesForEachGrouping(batchOutputData)

Parameters:
Name Type Description
batchOutputData Map.<String, Array.<BatchOutputDatum>>

createOutputTimeAndQuantitiesForEachGrouping(batchOutputData)

Parameters:
Name Type Description
batchOutputData Map.<String, Array.<BatchOutputDatum>>

filterBasedOnWorkingHours(batchOutputDataWithOutputQuantitiesAndTime)

Parameters:
Name Type Description
batchOutputDataWithOutputQuantitiesAndTime Map.<string, Array.<BatchOutputObjectWithOutputQuantitiesAndTime>>

filterBasedOnWorkingHours(batchOutputDataWithOutputQuantitiesAndTime)

Parameters:
Name Type Description
batchOutputDataWithOutputQuantitiesAndTime Map.<string, Array.<BatchOutputObjectWithOutputQuantitiesAndTime>>

getBatchScheduleBreakUpTime(workStartTime, workEndTime) → {Array.<BatchScheduleBreakUpTime>}

This function is responsible to return the hour intervals between the start time and end time If there is less than an hour interval, it will return the interval as is
Parameters:
Name Type Description
workStartTime String The work start time for batch
workEndTime String The work end time for batch
Returns:
The array of objects module:useCases/analytics/calculateEfficiency~BatchScheduleBreakUpTime
Type
Array.<BatchScheduleBreakUpTime>

getBatchScheduleBreakUpTime(workStartTime, workEndTime) → {Array.<BatchScheduleBreakUpTime>}

This function is responsible to return the hour intervals between the start time and end time If there is less than an hour interval, it will return the interval as is
Parameters:
Name Type Description
workStartTime String The work start time for batch
workEndTime String The work end time for batch
Returns:
The array of objects module:useCases/analytics/calculateEfficiency~BatchScheduleBreakUpTime
Type
Array.<BatchScheduleBreakUpTime>

getGlobalEfficiency(outputQuantity, numberOfMachines, numberOfHelpers, globalSam, totalWorkMinutes) → {Number}

Parameters:
Name Type Description
outputQuantity Number The output quantity for the day in the batch
numberOfMachines Number The number of machines for the day in the batch
numberOfHelpers Number The number of helpers for the day in the batch
globalSam Number The global sam of garment
totalWorkMinutes String The calculated total work minutes for batch
Returns:
The calculated global efficiency
Type
Number

getGlobalEfficiency(outputQuantity, numberOfMachines, numberOfHelpers, globalSam, totalWorkMinutes) → {Number}

Parameters:
Name Type Description
outputQuantity Number The output quantity for the day in the batch
numberOfMachines Number The number of machines for the day in the batch
numberOfHelpers Number The number of helpers for the day in the batch
globalSam Number The global sam of garment
totalWorkMinutes String The calculated total work minutes for batch
Returns:
The calculated global efficiency
Type
Number

getSewingEfficiency(outputQuantity, numberOfMachines, sam, totalWorkMinutes) → {Number}

Parameters:
Name Type Description
outputQuantity Number The output quantity for the day in the batch
numberOfMachines Number The number of machines for the day in the batch
sam Number The sam of the garment.
totalWorkMinutes String The calculated total work minutes for batch
Returns:
The calculated sewing efficiency.
Type
Number

getSewingEfficiency(outputQuantity, numberOfMachines, sam, totalWorkMinutes) → {Number}

Parameters:
Name Type Description
outputQuantity Number The output quantity for the day in the batch
numberOfMachines Number The number of machines for the day in the batch
sam Number The sam of the garment.
totalWorkMinutes String The calculated total work minutes for batch
Returns:
The calculated sewing efficiency.
Type
Number

getSewingEfficiency(outputQuantity, numberOfMachines, sam, totalWorkMinutes) → {Number}

Parameters:
Name Type Description
outputQuantity Number The output quantity for the day in the batch
numberOfMachines Number The number of machines for the day in the batch
sam Number The sam of the garment.
totalWorkMinutes String The calculated total work minutes for batch
Returns:
The calculated sewing efficiency.
Type
Number

getSewingEfficiency(outputQuantity, numberOfMachines, sam, totalWorkMinutes) → {Number}

Parameters:
Name Type Description
outputQuantity Number The output quantity for the day in the batch
numberOfMachines Number The number of machines for the day in the batch
sam Number The sam of the garment.
totalWorkMinutes String The calculated total work minutes for batch
Returns:
The calculated sewing efficiency.
Type
Number

groupConsolidateEfficiencyData(batchOutputData, batchScheduleDetails, ocProductSams, overTimeBatchesScheduleDetails, batchesTargetDetails, ocBuyerList)

This function is responsible for grouping the data by location, batchNumber, productCode and date
Parameters:
Name Type Description
batchOutputData Array.<BatchOuputDetails> The data to be grouped
batchScheduleDetails Array.<BatchScheduleDetail> The batch schedule details
ocProductSams Array.<OCProductSAMS>
overTimeBatchesScheduleDetails Array.<overTimeBatchScheduleDetail> The batch over time schedule details
batchesTargetDetails Array.<batchTargetDetails> The batch target details
ocBuyerList Array.<ocBuyerList> The list of buyer based on oc number

groupEfficiencyData(batchOutputData, batchScheduleDetails, ocProductSams, overTimeBatchesScheduleDetails, batchesTargetDetails)

This function is responsible for grouping the data by batchNumber, ocNumber, productCode and date
Parameters:
Name Type Description
batchOutputData Array.<BatchOuputDetails> The data to be grouped
batchScheduleDetails Array.<BatchScheduleDetail> The batch schedule details
ocProductSams Array.<OCProductSAMS>
overTimeBatchesScheduleDetails Array.<overTimeBatchScheduleDetail> The batch over time schedule details
batchesTargetDetails Array.<batchTargetDetails> The batch target details

groupEfficiencyData(batchOutputData, batchScheduleDetails, ocProductSams, overTimeBatchesScheduleDetails, batchesTargetDetails, ocBuyerList)

This function is responsible for grouping the data by batchNumber, ocNumber, productCode and date
Parameters:
Name Type Description
batchOutputData Array.<BatchOuputDetails> The data to be grouped
batchScheduleDetails Array.<BatchScheduleDetail> The batch schedule details
ocProductSams Array.<OCProductSAMS>
overTimeBatchesScheduleDetails Array.<overTimeBatchScheduleDetail> The batch over time schedule details
batchesTargetDetails Array.<batchTargetDetails> The batch target details
ocBuyerList Array.<ocBuyerList> The list of buyer based on oc number

Type Definitions

BatchOuputDetails

Type:
  • Object
Properties:
Name Type Description
dateWiseBatchScheduleAndQuantityDetail.ocNumber String The oc number in batch output process
dateWiseBatchScheduleAndQuantityDetail.productCode String The product code associated with OC number
dateWiseBatchScheduleAndQuantityDetail.productDescription String The product description associated with product
dateWiseBatchScheduleAndQuantityDetail.date String The output entry date
dateWiseBatchScheduleAndQuantityDetail.hourMinutes String The hour for mentioned date for combination of batch/location
dateWiseBatchScheduleAndQuantityDetail.batchNumber String The batch number asscoiated with schedule and output quantity
dateWiseBatchScheduleAndQuantityDetail.outputQuantity number The hourly output quantity for combination of batch/location

BatchOuputDetails

Type:
  • Object
Properties:
Name Type Description
dateWiseBatchScheduleAndQuantityDetail.ocNumber String The oc number in batch output process
dateWiseBatchScheduleAndQuantityDetail.productCode String The product code associated with OC number
dateWiseBatchScheduleAndQuantityDetail.productDescription String The product description associated with product
dateWiseBatchScheduleAndQuantityDetail.date String The output entry date
dateWiseBatchScheduleAndQuantityDetail.hourMinutes String The hour for mentioned date for combination of batch/location
dateWiseBatchScheduleAndQuantityDetail.batchNumber String The batch number asscoiated with schedule and output quantity
dateWiseBatchScheduleAndQuantityDetail.outputQuantity number The hourly output quantity for combination of batch/location

BatchOuputDetails

Type:
  • Object
Properties:
Name Type Description
dateWiseBatchScheduleAndQuantityDetail.ocNumber String The oc number in batch output process
dateWiseBatchScheduleAndQuantityDetail.productCode String The product code associated with OC number
dateWiseBatchScheduleAndQuantityDetail.productDescription String The product description associated with product
dateWiseBatchScheduleAndQuantityDetail.date String The output entry date
dateWiseBatchScheduleAndQuantityDetail.hourMinutes String The hour for mentioned date for combination of batch/location
dateWiseBatchScheduleAndQuantityDetail.batchNumber String The batch number asscoiated with schedule and output quantity
dateWiseBatchScheduleAndQuantityDetail.location String The location
dateWiseBatchScheduleAndQuantityDetail.outputQuantity number The hourly output quantity for combination of batch/location

BatchOutputDatum

Type:
  • Object
Properties:
Name Type Description
date String
batchNumber String
ocNumber String
productCode String
productDescription String
batchTargetQuantity Number
workStartTime String
workEndTime String
breakStartTime String
breakEndTime String
numberOfMachines Number
hourMinutes String
outputQuantity Number
sam Number

BatchOutputDatum

Type:
  • Object
Properties:
Name Type Description
date String
batchNumber String
ocNumber String
productCode String
productDescription String
batchTargetQuantity Number
workStartTime String
workEndTime String
breakStartTime String
breakEndTime String
numberOfMachines Number
hourMinutes String
outputQuantity Number
sam Number

BatchOutputObjectWithHourlyDetails

Type:
  • Object
Properties:
Name Type Description
date String
batchNumber String
ocNumber String
productCode String
productDescription String
batchTargetQuantity Number
workStartTime String
workEndTime String
breakStartTime String
breakEndTime String
numberOfMachines Number
sam Number
hourlyDetails Array.<HourlyDetail>

BatchOutputObjectWithHourlyDetails

Type:
  • Object
Properties:
Name Type Description
date String
batchNumber String
ocNumber String
productCode String
productDescription String
batchTargetQuantity Number
workStartTime String
workEndTime String
breakStartTime String
breakEndTime String
numberOfMachines Number
sam Number
hourlyDetails Array.<HourlyDetail>

BatchOutputObjectWithHourlyEfficiency

Type:
  • Object
Properties:
Name Type Description
date String
batchNumber String
ocNumber String
productCode String
productDescription String
batchTargetQuantity Number
workStartTime String
workEndTime String
breakStartTime String
breakEndTime String
numberOfMachines Number
sam Number
hourlyDetails Array.<HourlyDetailsWithEfficiency>

BatchOutputObjectWithHourlyEfficiency

Type:
  • Object
Properties:
Name Type Description
date String
batchNumber String
ocNumber String
productCode String
productDescription String
batchTargetQuantity Number
workStartTime String
workEndTime String
breakStartTime String
breakEndTime String
numberOfMachines Number
sam Number
hourlyDetails Array.<HourlyDetailsWithEfficiency>

BatchOutputObjectWithOutputQuantitiesAndTime

Type:
  • Object
Properties:
Name Type Description
date String
batchNumber String
ocNumber String
productCode String
productDescription String
batchTargetQuantity Number
workStartTime String
workEndTime String
breakStartTime String
breakEndTime String
numberOfMachines Number
sam Number
outputTimeAndQuantities Array.<OutputTimeAndQuantities>

BatchOutputObjectWithOutputQuantitiesAndTime

Type:
  • Object
Properties:
Name Type Description
date String
batchNumber String
ocNumber String
productCode String
productDescription String
batchTargetQuantity Number
workStartTime String
workEndTime String
breakStartTime String
breakEndTime String
numberOfMachines Number
sam Number
outputTimeAndQuantities Array.<OutputTimeAndQuantities>

BatchOutputObjectWithTotalOutputQuantity

Type:
  • Object
Properties:
Name Type Description
totalOutputQuantity Number

BatchOutputObjectWithTotalOutputQuantity

Type:
  • Object
Properties:
Name Type Description
totalOutputQuantity Number

BatchScheduleDetail

Type:
  • Object
Properties:
Name Type Description
batchNumber String
location String
resourceDate String
numberOfMachines Number
numberOfHelpers Number
workStartTime String
workEndTime String
breakStartTime String
breakEndTime String

BatchScheduleDetail

Type:
  • Object
Properties:
Name Type Description
batchNumber String
location String
resourceDate String
numberOfMachines Number
numberOfHelpers Number
workStartTime String
workEndTime String
breakStartTime String
breakEndTime String

BatchScheduleDetail

Type:
  • Object
Properties:
Name Type Description
batchNumber String
location String
resourceDate String
numberOfMachines Number
numberOfHelpers Number
workStartTime String
workEndTime String
breakStartTime String
breakEndTime String

batchTargetDetails

Type:
  • Object
Properties:
Name Type Description
location String
batchNumber String
batchUnique String
resourceDate String
ocNumber String
productCode String
quantity Number

batchTargetDetails

Type:
  • Object
Properties:
Name Type Description
location String
batchNumber String
batchUnique String
resourceDate String
ocNumber String
productCode String
quantity Number

batchTargetDetails

Type:
  • Object
Properties:
Name Type Description
location String
batchNumber String
batchUnique String
resourceDate String
ocNumber String
productCode String
quantity Number

HourlyDetail

Type:
  • Object
Properties:
Name Type Description
startTime String
endTime String
outputQuantity Number
hourEfficiency Number
sewingSamProduced Number
sewingMachineMinutes Number

HourlyDetail

Type:
  • Object
Properties:
Name Type Description
startTime String
endTime String
outputQuantity Number
hourEfficiency Number
sewingSamProduced Number
sewingMachineMinutes Number

HourlyDetailsWithEfficiency

Type:
  • Object
Properties:
Name Type Description
startTime String
endTime String
outputQuantity Number
hourEfficiency Number

HourlyDetailsWithEfficiency

Type:
  • Object
Properties:
Name Type Description
startTime String
endTime String
outputQuantity Number
hourEfficiency Number

ocBuyerList

Type:
  • Object
Properties:
Name Type Description
ocNumber String
buyer String

ocBuyerList

Type:
  • Object
Properties:
Name Type Description
ocNumber String
buyer String

OCProductSAMS

Type:
  • Object
Properties:
Name Type Description
productCode String
sam Number
globalSam Number

OCProductSAMS

Type:
  • Object
Properties:
Name Type Description
productCode String
sam Number
globalSam Number

OCProductSAMS

Type:
  • Object
Properties:
Name Type Description
productCode String
sam Number
globalSam Number

OutputTimeAndQuantities

Type:
  • Object
Properties:
Name Type Description
hourMinutes String
outputQuantity Number

OutputTimeAndQuantities

Type:
  • Object
Properties:
Name Type Description
hourMinutes String
outputQuantity Number

overTimeBatchScheduleDetail

Type:
  • Object
Properties:
Name Type Description
batchNumber String
location String
overTimeDate String
overTimeMachines Number
overTimeHelpers Number
overTimeStart String
overTimeEnd String

overTimeBatchScheduleDetail

Type:
  • Object
Properties:
Name Type Description
batchNumber String
location String
overTimeDate String
overTimeMachines Number
overTimeHelpers Number
overTimeStart String
overTimeEnd String

overTimeBatchScheduleDetail

Type:
  • Object
Properties:
Name Type Description
batchNumber String
location String
overTimeDate String
overTimeMachines Number
overTimeHelpers Number
overTimeStart String
overTimeEnd String

Methods

(static) getGlobalEfficiency()

Global Efficiency calculation: Global Sam Produced = production output quantity * Global Sam(sam from sage) Global Minutes = (Total Machines + Helpers) * totalWorkMinutes)) + Global OT minutes(present not applicable) Global Efficiency = Global Sam Produced / Global Minutes

(static) getGlobalEfficiency()

Global Efficiency calculation: Global Sam Produced = production output quantity * Global Sam(sam from sage) Global Minutes = (Total Machines + Helpers) * totalWorkMinutes)) + Global OT minutes(present not applicable) Global Efficiency = Global Sam Produced / Global Minutes

(static) getSewingEfficiency()

Sewing Efficiency calculation: Sewing Sam Produced = Production Output Quantity * Garment Sam(sam from sage) Machine Minutes = (Total Machines * totalWorkMinutes) + Machine OT minutes(present not applicable) Sewing Efficiency = Sewing Sam Produced / Machine Minutes

(static) getSewingEfficiency()

Sewing Efficiency calculation: Sewing Sam Produced = Production Output Quantity * Garment Sam(sam from sage) Machine Minutes = (Total Machines * totalWorkMinutes) + Machine OT minutes(present not applicable) Sewing Efficiency = Sewing Sam Produced / Machine Minutes

calculateHourlyEfficiency(batchOutputData)

Parameters:
Name Type Description
batchOutputData Map.<string, BatchOutputObjectWithHourlyDetails>

calculateHourlyEfficiency(batchOutputData)

Parameters:
Name Type Description
batchOutputData Map.<string, BatchOutputObjectWithHourlyDetails>

calculateOverallEfficiency(batchOutputData)

Parameters:
Name Type Description
batchOutputData Map.<string, (BatchOutputObjectWithHourlyEfficiency|BatchOutputObjectWithTotalOutputQuantity)>

calculateOverallEfficiency(batchOutputData)

Parameters:
Name Type Description
batchOutputData Map.<string, (BatchOutputObjectWithHourlyEfficiency|BatchOutputObjectWithTotalOutputQuantity)>

calculateTotalOutputQuantity(batchOutputData)

Parameters:
Name Type Description
batchOutputData Map.<string, BatchOutputObjectWithHourlyEfficiency>

calculateTotalOutputQuantity(batchOutputData)

Parameters:
Name Type Description
batchOutputData Map.<string, BatchOutputObjectWithHourlyEfficiency>

createHourlyDetailsForEachGrouping(batchOutputDataWithOutputQuantitiesAndTimeFiltered)

Parameters:
Name Type Description
batchOutputDataWithOutputQuantitiesAndTimeFiltered Map.<string, Array.<BatchOutputObjectWithOutputQuantitiesAndTime>>

createHourlyDetailsForEachGrouping(batchOutputDataWithOutputQuantitiesAndTimeFiltered)

Parameters:
Name Type Description
batchOutputDataWithOutputQuantitiesAndTimeFiltered Map.<string, Array.<BatchOutputObjectWithOutputQuantitiesAndTime>>

createOutputTimeAndQuantitiesForEachGrouping(batchOutputData)

Parameters:
Name Type Description
batchOutputData Map.<String, Array.<BatchOutputDatum>>

createOutputTimeAndQuantitiesForEachGrouping(batchOutputData)

Parameters:
Name Type Description
batchOutputData Map.<String, Array.<BatchOutputDatum>>

filterBasedOnWorkingHours(batchOutputDataWithOutputQuantitiesAndTime)

Parameters:
Name Type Description
batchOutputDataWithOutputQuantitiesAndTime Map.<string, Array.<BatchOutputObjectWithOutputQuantitiesAndTime>>

filterBasedOnWorkingHours(batchOutputDataWithOutputQuantitiesAndTime)

Parameters:
Name Type Description
batchOutputDataWithOutputQuantitiesAndTime Map.<string, Array.<BatchOutputObjectWithOutputQuantitiesAndTime>>

getBatchScheduleBreakUpTime(workStartTime, workEndTime) → {Array.<BatchScheduleBreakUpTime>}

This function is responsible to return the hour intervals between the start time and end time If there is less than an hour interval, it will return the interval as is
Parameters:
Name Type Description
workStartTime String The work start time for batch
workEndTime String The work end time for batch
Returns:
The array of objects module:useCases/analytics/calculateEfficiency~BatchScheduleBreakUpTime
Type
Array.<BatchScheduleBreakUpTime>

getBatchScheduleBreakUpTime(workStartTime, workEndTime) → {Array.<BatchScheduleBreakUpTime>}

This function is responsible to return the hour intervals between the start time and end time If there is less than an hour interval, it will return the interval as is
Parameters:
Name Type Description
workStartTime String The work start time for batch
workEndTime String The work end time for batch
Returns:
The array of objects module:useCases/analytics/calculateEfficiency~BatchScheduleBreakUpTime
Type
Array.<BatchScheduleBreakUpTime>

getGlobalEfficiency(outputQuantity, numberOfMachines, numberOfHelpers, globalSam, totalWorkMinutes) → {Number}

Parameters:
Name Type Description
outputQuantity Number The output quantity for the day in the batch
numberOfMachines Number The number of machines for the day in the batch
numberOfHelpers Number The number of helpers for the day in the batch
globalSam Number The global sam of garment
totalWorkMinutes String The calculated total work minutes for batch
Returns:
The calculated global efficiency
Type
Number

getGlobalEfficiency(outputQuantity, numberOfMachines, numberOfHelpers, globalSam, totalWorkMinutes) → {Number}

Parameters:
Name Type Description
outputQuantity Number The output quantity for the day in the batch
numberOfMachines Number The number of machines for the day in the batch
numberOfHelpers Number The number of helpers for the day in the batch
globalSam Number The global sam of garment
totalWorkMinutes String The calculated total work minutes for batch
Returns:
The calculated global efficiency
Type
Number

getSewingEfficiency(outputQuantity, numberOfMachines, sam, totalWorkMinutes) → {Number}

Parameters:
Name Type Description
outputQuantity Number The output quantity for the day in the batch
numberOfMachines Number The number of machines for the day in the batch
sam Number The sam of the garment.
totalWorkMinutes String The calculated total work minutes for batch
Returns:
The calculated sewing efficiency.
Type
Number

getSewingEfficiency(outputQuantity, numberOfMachines, sam, totalWorkMinutes) → {Number}

Parameters:
Name Type Description
outputQuantity Number The output quantity for the day in the batch
numberOfMachines Number The number of machines for the day in the batch
sam Number The sam of the garment.
totalWorkMinutes String The calculated total work minutes for batch
Returns:
The calculated sewing efficiency.
Type
Number

getSewingEfficiency(outputQuantity, numberOfMachines, sam, totalWorkMinutes) → {Number}

Parameters:
Name Type Description
outputQuantity Number The output quantity for the day in the batch
numberOfMachines Number The number of machines for the day in the batch
sam Number The sam of the garment.
totalWorkMinutes String The calculated total work minutes for batch
Returns:
The calculated sewing efficiency.
Type
Number

getSewingEfficiency(outputQuantity, numberOfMachines, sam, totalWorkMinutes) → {Number}

Parameters:
Name Type Description
outputQuantity Number The output quantity for the day in the batch
numberOfMachines Number The number of machines for the day in the batch
sam Number The sam of the garment.
totalWorkMinutes String The calculated total work minutes for batch
Returns:
The calculated sewing efficiency.
Type
Number

groupConsolidateEfficiencyData(batchOutputData, batchScheduleDetails, ocProductSams, overTimeBatchesScheduleDetails, batchesTargetDetails, ocBuyerList)

This function is responsible for grouping the data by location, batchNumber, productCode and date
Parameters:
Name Type Description
batchOutputData Array.<BatchOuputDetails> The data to be grouped
batchScheduleDetails Array.<BatchScheduleDetail> The batch schedule details
ocProductSams Array.<OCProductSAMS>
overTimeBatchesScheduleDetails Array.<overTimeBatchScheduleDetail> The batch over time schedule details
batchesTargetDetails Array.<batchTargetDetails> The batch target details
ocBuyerList Array.<ocBuyerList> The list of buyer based on oc number

groupEfficiencyData(batchOutputData, batchScheduleDetails, ocProductSams, overTimeBatchesScheduleDetails, batchesTargetDetails)

This function is responsible for grouping the data by batchNumber, ocNumber, productCode and date
Parameters:
Name Type Description
batchOutputData Array.<BatchOuputDetails> The data to be grouped
batchScheduleDetails Array.<BatchScheduleDetail> The batch schedule details
ocProductSams Array.<OCProductSAMS>
overTimeBatchesScheduleDetails Array.<overTimeBatchScheduleDetail> The batch over time schedule details
batchesTargetDetails Array.<batchTargetDetails> The batch target details

groupEfficiencyData(batchOutputData, batchScheduleDetails, ocProductSams, overTimeBatchesScheduleDetails, batchesTargetDetails, ocBuyerList)

This function is responsible for grouping the data by batchNumber, ocNumber, productCode and date
Parameters:
Name Type Description
batchOutputData Array.<BatchOuputDetails> The data to be grouped
batchScheduleDetails Array.<BatchScheduleDetail> The batch schedule details
ocProductSams Array.<OCProductSAMS>
overTimeBatchesScheduleDetails Array.<overTimeBatchScheduleDetail> The batch over time schedule details
batchesTargetDetails Array.<batchTargetDetails> The batch target details
ocBuyerList Array.<ocBuyerList> The list of buyer based on oc number

Type Definitions

BatchOuputDetails

Type:
  • Object
Properties:
Name Type Description
dateWiseBatchScheduleAndQuantityDetail.ocNumber String The oc number in batch output process
dateWiseBatchScheduleAndQuantityDetail.productCode String The product code associated with OC number
dateWiseBatchScheduleAndQuantityDetail.productDescription String The product description associated with product
dateWiseBatchScheduleAndQuantityDetail.date String The output entry date
dateWiseBatchScheduleAndQuantityDetail.hourMinutes String The hour for mentioned date for combination of batch/location
dateWiseBatchScheduleAndQuantityDetail.batchNumber String The batch number asscoiated with schedule and output quantity
dateWiseBatchScheduleAndQuantityDetail.outputQuantity number The hourly output quantity for combination of batch/location

BatchOuputDetails

Type:
  • Object
Properties:
Name Type Description
dateWiseBatchScheduleAndQuantityDetail.ocNumber String The oc number in batch output process
dateWiseBatchScheduleAndQuantityDetail.productCode String The product code associated with OC number
dateWiseBatchScheduleAndQuantityDetail.productDescription String The product description associated with product
dateWiseBatchScheduleAndQuantityDetail.date String The output entry date
dateWiseBatchScheduleAndQuantityDetail.hourMinutes String The hour for mentioned date for combination of batch/location
dateWiseBatchScheduleAndQuantityDetail.batchNumber String The batch number asscoiated with schedule and output quantity
dateWiseBatchScheduleAndQuantityDetail.outputQuantity number The hourly output quantity for combination of batch/location

BatchOuputDetails

Type:
  • Object
Properties:
Name Type Description
dateWiseBatchScheduleAndQuantityDetail.ocNumber String The oc number in batch output process
dateWiseBatchScheduleAndQuantityDetail.productCode String The product code associated with OC number
dateWiseBatchScheduleAndQuantityDetail.productDescription String The product description associated with product
dateWiseBatchScheduleAndQuantityDetail.date String The output entry date
dateWiseBatchScheduleAndQuantityDetail.hourMinutes String The hour for mentioned date for combination of batch/location
dateWiseBatchScheduleAndQuantityDetail.batchNumber String The batch number asscoiated with schedule and output quantity
dateWiseBatchScheduleAndQuantityDetail.location String The location
dateWiseBatchScheduleAndQuantityDetail.outputQuantity number The hourly output quantity for combination of batch/location

BatchOutputDatum

Type:
  • Object
Properties:
Name Type Description
date String
batchNumber String
ocNumber String
productCode String
productDescription String
batchTargetQuantity Number
workStartTime String
workEndTime String
breakStartTime String
breakEndTime String
numberOfMachines Number
hourMinutes String
outputQuantity Number
sam Number

BatchOutputDatum

Type:
  • Object
Properties:
Name Type Description
date String
batchNumber String
ocNumber String
productCode String
productDescription String
batchTargetQuantity Number
workStartTime String
workEndTime String
breakStartTime String
breakEndTime String
numberOfMachines Number
hourMinutes String
outputQuantity Number
sam Number

BatchOutputObjectWithHourlyDetails

Type:
  • Object
Properties:
Name Type Description
date String
batchNumber String
ocNumber String
productCode String
productDescription String
batchTargetQuantity Number
workStartTime String
workEndTime String
breakStartTime String
breakEndTime String
numberOfMachines Number
sam Number
hourlyDetails Array.<HourlyDetail>

BatchOutputObjectWithHourlyDetails

Type:
  • Object
Properties:
Name Type Description
date String
batchNumber String
ocNumber String
productCode String
productDescription String
batchTargetQuantity Number
workStartTime String
workEndTime String
breakStartTime String
breakEndTime String
numberOfMachines Number
sam Number
hourlyDetails Array.<HourlyDetail>

BatchOutputObjectWithHourlyEfficiency

Type:
  • Object
Properties:
Name Type Description
date String
batchNumber String
ocNumber String
productCode String
productDescription String
batchTargetQuantity Number
workStartTime String
workEndTime String
breakStartTime String
breakEndTime String
numberOfMachines Number
sam Number
hourlyDetails Array.<HourlyDetailsWithEfficiency>

BatchOutputObjectWithHourlyEfficiency

Type:
  • Object
Properties:
Name Type Description
date String
batchNumber String
ocNumber String
productCode String
productDescription String
batchTargetQuantity Number
workStartTime String
workEndTime String
breakStartTime String
breakEndTime String
numberOfMachines Number
sam Number
hourlyDetails Array.<HourlyDetailsWithEfficiency>

BatchOutputObjectWithOutputQuantitiesAndTime

Type:
  • Object
Properties:
Name Type Description
date String
batchNumber String
ocNumber String
productCode String
productDescription String
batchTargetQuantity Number
workStartTime String
workEndTime String
breakStartTime String
breakEndTime String
numberOfMachines Number
sam Number
outputTimeAndQuantities Array.<OutputTimeAndQuantities>

BatchOutputObjectWithOutputQuantitiesAndTime

Type:
  • Object
Properties:
Name Type Description
date String
batchNumber String
ocNumber String
productCode String
productDescription String
batchTargetQuantity Number
workStartTime String
workEndTime String
breakStartTime String
breakEndTime String
numberOfMachines Number
sam Number
outputTimeAndQuantities Array.<OutputTimeAndQuantities>

BatchOutputObjectWithTotalOutputQuantity

Type:
  • Object
Properties:
Name Type Description
totalOutputQuantity Number

BatchOutputObjectWithTotalOutputQuantity

Type:
  • Object
Properties:
Name Type Description
totalOutputQuantity Number

BatchScheduleDetail

Type:
  • Object
Properties:
Name Type Description
batchNumber String
location String
resourceDate String
numberOfMachines Number
numberOfHelpers Number
workStartTime String
workEndTime String
breakStartTime String
breakEndTime String

BatchScheduleDetail

Type:
  • Object
Properties:
Name Type Description
batchNumber String
location String
resourceDate String
numberOfMachines Number
numberOfHelpers Number
workStartTime String
workEndTime String
breakStartTime String
breakEndTime String

BatchScheduleDetail

Type:
  • Object
Properties:
Name Type Description
batchNumber String
location String
resourceDate String
numberOfMachines Number
numberOfHelpers Number
workStartTime String
workEndTime String
breakStartTime String
breakEndTime String

batchTargetDetails

Type:
  • Object
Properties:
Name Type Description
location String
batchNumber String
batchUnique String
resourceDate String
ocNumber String
productCode String
quantity Number

batchTargetDetails

Type:
  • Object
Properties:
Name Type Description
location String
batchNumber String
batchUnique String
resourceDate String
ocNumber String
productCode String
quantity Number

batchTargetDetails

Type:
  • Object
Properties:
Name Type Description
location String
batchNumber String
batchUnique String
resourceDate String
ocNumber String
productCode String
quantity Number

HourlyDetail

Type:
  • Object
Properties:
Name Type Description
startTime String
endTime String
outputQuantity Number
hourEfficiency Number
sewingSamProduced Number
sewingMachineMinutes Number

HourlyDetail

Type:
  • Object
Properties:
Name Type Description
startTime String
endTime String
outputQuantity Number
hourEfficiency Number
sewingSamProduced Number
sewingMachineMinutes Number

HourlyDetailsWithEfficiency

Type:
  • Object
Properties:
Name Type Description
startTime String
endTime String
outputQuantity Number
hourEfficiency Number

HourlyDetailsWithEfficiency

Type:
  • Object
Properties:
Name Type Description
startTime String
endTime String
outputQuantity Number
hourEfficiency Number

ocBuyerList

Type:
  • Object
Properties:
Name Type Description
ocNumber String
buyer String

ocBuyerList

Type:
  • Object
Properties:
Name Type Description
ocNumber String
buyer String

OCProductSAMS

Type:
  • Object
Properties:
Name Type Description
productCode String
sam Number
globalSam Number

OCProductSAMS

Type:
  • Object
Properties:
Name Type Description
productCode String
sam Number
globalSam Number

OCProductSAMS

Type:
  • Object
Properties:
Name Type Description
productCode String
sam Number
globalSam Number

OutputTimeAndQuantities

Type:
  • Object
Properties:
Name Type Description
hourMinutes String
outputQuantity Number

OutputTimeAndQuantities

Type:
  • Object
Properties:
Name Type Description
hourMinutes String
outputQuantity Number

overTimeBatchScheduleDetail

Type:
  • Object
Properties:
Name Type Description
batchNumber String
location String
overTimeDate String
overTimeMachines Number
overTimeHelpers Number
overTimeStart String
overTimeEnd String

overTimeBatchScheduleDetail

Type:
  • Object
Properties:
Name Type Description
batchNumber String
location String
overTimeDate String
overTimeMachines Number
overTimeHelpers Number
overTimeStart String
overTimeEnd String

overTimeBatchScheduleDetail

Type:
  • Object
Properties:
Name Type Description
batchNumber String
location String
overTimeDate String
overTimeMachines Number
overTimeHelpers Number
overTimeStart String
overTimeEnd String