Module: useCases/analytics/calculateTracker

Methods

calculateFabricConsumptionValues(groupedData, jobUniqueWiseCuttingQuantity)

Parameters:
Name Type Description
groupedData Array.<locationAndItemCodegroupedData> The data to be grouped
jobUniqueWiseCuttingQuantity Array.<jobUniqueWiseCuttingQuantity> The consumption data to be included
Returns:
([])

calculateFabricConsumptionValues(groupedData, jobUniqueWiseCuttingQuantity)

Parameters:
Name Type Description
groupedData Array.<locationAndItemCodegroupedData> The data to be grouped
jobUniqueWiseCuttingQuantity Array.<jobUniqueWiseCuttingQuantity> The consumption data to be included
Returns:
([])

calculateSamProducedAndMachineMinutes(GroupedData)

Parameters:
Name Type Description
GroupedData Array.<efficiencyGroupedData> The data to be grouped
Returns:
([])

cuttingDataGroupByLocationAnditemCode(sizeWiseCuttingOrderQuantity, cutQuantityList, DHUPassedQuantityList, dispatchQuantityList) → {Array.<locationAndItemCodegroupedData>}

Parameters:
Name Type Description
sizeWiseCuttingOrderQuantity Array.<sizeWiseOrderQuantity> The data to be grouped
cutQuantityList Array.<locationWiseCuttingQuantity> The cut quantity to be included in group
DHUPassedQuantityList Array.<DHUPassedQuantityList> The list of passed quantity to be included in group
dispatchQuantityList Array.<dispatchQuantityList> The list of dispatch quantity to be included in group
Returns:
the list of gropued data
Type
Array.<locationAndItemCodegroupedData>

cuttingDataGroupByLocationAnditemCode(sizeWiseCuttingOrderQuantity, cutQuantityList, DHUPassedQuantityList, dispatchQuantityList) → {Array.<locationAndItemCodegroupedData>}

Parameters:
Name Type Description
sizeWiseCuttingOrderQuantity Array.<sizeWiseOrderQuantity> The data to be grouped
cutQuantityList Array.<locationWiseCuttingQuantity> The cut quantity to be included in group
DHUPassedQuantityList Array.<DHUPassedQuantityList> The list of passed quantity to be included in group
dispatchQuantityList Array.<dispatchQuantityList> The list of dispatch quantity to be included in group
Returns:
the list of gropued data
Type
Array.<locationAndItemCodegroupedData>

cuttingDataGroupByLocationAnditemCodewithPOandCountry(sizeWiseCuttingOrderQuantity, cutQuantityList, DHUPassedQuantityList, dispatchQuantityList, loadedQuantityList) → {Array.<locationAndItemCodegroupedData>}

Parameters:
Name Type Description
sizeWiseCuttingOrderQuantity Array.<sizeWiseOrderQuantity> The data to be grouped
cutQuantityList Array.<locationWiseCuttingQuantity> The cut quantity to be included in group
DHUPassedQuantityList Array.<DHUPassedQuantityList> The list of passed quantity to be included in group
dispatchQuantityList Array.<dispatchQuantityList> The list of dispatch quantity to be included in group
loadedQuantityList Array.<dispatchQuantityList> The list of loaded quantity to be included in group
Returns:
the list of gropued data
Type
Array.<locationAndItemCodegroupedData>

DHUDataGroupByLocationAndBatch(DHUDetails)

Parameters:
Name Type Description
DHUDetails Array.<DHUOverViewData> The data to be grouped
Returns:
([])

DHUDataGroupByLocationAndBatch(DHUDetails)

Parameters:
Name Type Description
DHUDetails Array.<DHUOverViewData> The data to be grouped
Returns:
([])

efficiencyDataGroupByLocationAndBatch(efficiencyData, DHUData, cuttingDetails)

Parameters:
Name Type Description
efficiencyData Array.<efficiencyTrackerData> The data to be grouped
DHUData Array.<trackerDHUData> The DHU data to be included in grouped
cuttingDetails Array.<CuttingDetailForLocation> The cutting details
Returns:
([])

efficiencyDataGroupByLocationAndBatch(efficiencyData, DHUData, cuttingDetails)

Parameters:
Name Type Description
efficiencyData Array.<efficiencyTrackerData> The data to be grouped
DHUData Array.<trackerDHUData> The DHU data to be included in grouped
cuttingDetails Array.<CuttingDetailForLocation> The cutting details
Returns:
([])

filterBasedOnWorkingHours(batchOutputData, batchScheduleDetails, overTimeBatchesScheduleDetails)

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
overTimeBatchesScheduleDetails Array.<overTimeBatchScheduleDetail> The batch over time schedule details

filterBasedOnWorkingHours(batchOutputData, batchScheduleDetails, overTimeBatchesScheduleDetails)

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
overTimeBatchesScheduleDetails Array.<overTimeBatchScheduleDetail> The batch over time schedule details

groupEfficiencyData(efficiencyData, batchesScheduleDetails, ocProductSamsResult, overTimeBatchesScheduleDetails) → {Array.<efficiencyGroupedData>}

Parameters:
Name Type Description
efficiencyData Array.<efficiencyData> The data to be grouped
batchesScheduleDetails Array.<BatchScheduleDetail> The batch schedule details
ocProductSamsResult Array.<OCProductSAMS> The sam for oc and product combination
overTimeBatchesScheduleDetails Array.<overTimeBatchScheduleDetail> The batch over time schedule details
Returns:
Type
Array.<efficiencyGroupedData>

groupEfficiencyData(efficiencyData, batchesScheduleDetails, ocProductSamsResult, jobWorkSamsResult, overTimeBatchesScheduleDetails) → {Array.<efficiencyGroupedData>}

Parameters:
Name Type Description
efficiencyData Array.<efficiencyData> The data to be grouped
batchesScheduleDetails Array.<BatchScheduleDetail> The batch schedule details
ocProductSamsResult Array.<OCProductSAMS> The sam for oc and product combination
jobWorkSamsResult Array.<OCProductSamsFromJobwork> The sam for oc and product from job work
overTimeBatchesScheduleDetails Array.<overTimeBatchScheduleDetail> The batch over time schedule details
Returns:
Type
Array.<efficiencyGroupedData>

includeLoadingDetails(groupedData, loadingDetaisList)

Parameters:
Name Type Description
groupedData Array.<locationAndItemCodegroupedData> The data to be grouped
loadingDetaisList Array.<jobUniqueWiseCuttingQuantity> The consumption data to be included
Returns:
([])

Type Definitions

BatchOuputDetails

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

BatchOuputDetails

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

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

CuttingDetailForLocation

Type:
  • Object
Properties:
Name Type Description
CuttingDetailForLocation.location String The location
CuttingDetailForLocation.quantity number The total cut quantity grouped by location

CuttingDetailForLocation

Type:
  • Object
Properties:
Name Type Description
CuttingDetailForLocation.location String The location
CuttingDetailForLocation.quantity number The total cut quantity grouped by location

DHUOverViewData

Type:
  • Object
Properties:
Name Type Description
location String
batchUnique number
batchNumber String
status String
quantity number

DHUOverViewData

Type:
  • Object
Properties:
Name Type Description
location String
batchUnique number
batchNumber String
status String
quantity number

DHUPassedQuantityList

Type:
  • Object
Properties:
Name Type Description
DHUPassedQuantityList.location String The location
DHUPassedQuantityList.productCode String The product code
DHUPassedQuantityList.colourCode String The colour code associated with product
DHUPassedQuantityList.size String The size associated with product and colour
DHUPassedQuantityList.passedQuantity number The passed quantity

DHUPassedQuantityList

Type:
  • Object
Properties:
Name Type Description
DHUPassedQuantityList.location String The location
DHUPassedQuantityList.productCode String The product code
DHUPassedQuantityList.colourCode String The colour code associated with product
DHUPassedQuantityList.size String The size associated with product and colour
DHUPassedQuantityList.passedQuantity number The passed quantity

DHUPassedQuantityList

Type:
  • Object
Properties:
Name Type Description
DHUPassedQuantityList.location String The location
DHUPassedQuantityList.productCode String The product code
DHUPassedQuantityList.colourCode String The colour code associated with product
DHUPassedQuantityList.size String The size associated with product and colour
DHUPassedQuantityList.buyerPoNumber String The po associated with product and colour
DHUPassedQuantityList.buyerPoCountry String The country associated with product and colour
DHUPassedQuantityList.passedQuantity number The passed quantity

dispatchQuantityList

Type:
  • Object
Properties:
Name Type Description
dispatchQuantityList.location String The location
dispatchQuantityList.productCode String The product code
dispatchQuantityList.colourCode String The colour code associated with product
dispatchQuantityList.size String The size associated with product and colour
dispatchQuantityList.dispatchQuantity number The dispatch quantity

dispatchQuantityList

Type:
  • Object
Properties:
Name Type Description
dispatchQuantityList.location String The location
dispatchQuantityList.productCode String The product code
dispatchQuantityList.colourCode String The colour code associated with product
dispatchQuantityList.size String The size associated with product and colour
dispatchQuantityList.dispatchQuantity number The dispatch quantity

dispatchQuantityList

Type:
  • Object
Properties:
Name Type Description
dispatchQuantityList.location String The location
dispatchQuantityList.productCode String The product code
dispatchQuantityList.colourCode String The colour code associated with product
dispatchQuantityList.size String The size associated with product and colour
dispatchQuantityList.buyerPoNumber String The po associated with product and colour
dispatchQuantityList.buyerPoCountry String The country associated with product and colour
dispatchQuantityList.dispatchQuantity number The dispatch quantity

efficiencyData

Type:
  • Object
Properties:
Name Type Description
location String
batchUnique number
batchNumber String
ocNumber String
productCode String
date String
hourMinutes String
outputQuantity number

efficiencyData

Type:
  • Object
Properties:
Name Type Description
location String
batchUnique number
batchNumber String
ocNumber String
productCode String
date String
hourMinutes String
outputQuantity number

efficiencyGroupedData

Type:
  • Object
Properties:
Name Type Description
location String
batchUnique number
batchNumber String
ocNumber String
productCode String
date String
outputQuantity number
workStartTime String
workEndTime String
breakStartTime String
breakEndTime String
numberOfMachines number
numberOfHelpers number
overTimeStart String
overTimeEnd String
overTimeMachines number
overTimeHelpers number
overTimeOutPutQuantity number
sam number
globalSam number

efficiencyTrackerData

Type:
  • Object
Properties:
Name Type Description
location String
batchUnique number
batchNumber String
batchTargetQuantity number
ocNumber String
productCode String
date String
outputQuantity number
sewingSamProduced number
sewingMachineMinutes number
globalSamProduced number
globalMachineMinutes number
totalWorkStation number
numberOfMachines number
sewingSam number
globalSam number
availableMinutes number

efficiencyTrackerData

Type:
  • Object
Properties:
Name Type Description
location String
batchUnique number
batchNumber String
batchTargetQuantity number
ocNumber String
productCode String
date String
outputQuantity number
sewingSamProduced number
sewingMachineMinutes number
globalSamProduced number
globalMachineMinutes number
totalWorkStation number
numberOfMachines number
sewingSam number
globalSam number
availableMinutes number

jobUniqueWiseCuttingQuantity

Type:
  • Object
Properties:
Name Type Description
jobUniqueWiseCuttingQuantity.location String The fabric cut location
jobUniqueWiseCuttingQuantity.itemCode String The item code associated with oc number
jobUniqueWiseCuttingQuantity.unique number The job unique number
jobUniqueWiseCuttingQuantity.layLength number The lay length associated with job
jobUniqueWiseCuttingQuantity.numOfPiecesPerPlie number The number of pieces per plie associated with job
jobUniqueWiseCuttingQuantity.quantity number The cut quantity associated with size

jobUniqueWiseCuttingQuantity

Type:
  • Object
Properties:
Name Type Description
jobUniqueWiseCuttingQuantity.location String The fabric cut location
jobUniqueWiseCuttingQuantity.itemCode String The item code associated with oc number
jobUniqueWiseCuttingQuantity.unique number The job unique number
jobUniqueWiseCuttingQuantity.layLength number The lay length associated with job
jobUniqueWiseCuttingQuantity.numOfPiecesPerPlie number The number of pieces per plie associated with job
jobUniqueWiseCuttingQuantity.quantity number The cut quantity associated with size

loadedQuantityList

Type:
  • Object
Properties:
Name Type Description
loadedQuantityList.location String The location
loadedQuantityList.productCode String The product code
loadedQuantityList.colourCode String The colour code associated with product
loadedQuantityList.size String The size associated with product and colour
loadedQuantityList.buyerPoNumber String The po associated with product and colour
loadedQuantityList.buyerPoCountry String The country associated with product and colour
loadedQuantityList.loadedQuantity number The loaded quantity{super market}

locationAndItemCodegroupedData

Type:
  • Object
Properties:
Name Type Description
locationAndItemCodegroupedData.location String The fabric cut location
locationAndItemCodegroupedData.ocNumber String The oc number
locationAndItemCodegroupedData.itemCode String The item code associated with oc number
locationAndItemCodegroupedData.itemDescription String The item description
locationAndItemCodegroupedData.sizeDetails Array.<sizeDetailsList> the list of size details

locationAndItemCodegroupedData

Type:
  • Object
Properties:
Name Type Description
locationAndItemCodegroupedData.location String The fabric cut location
locationAndItemCodegroupedData.ocNumber String The oc number
locationAndItemCodegroupedData.itemCode String The item code associated with oc number
locationAndItemCodegroupedData.itemDescription String The item description
locationAndItemCodegroupedData.sizeDetails Array.<sizeDetailsList> the list of size details

locationWiseCuttingQuantity

Type:
  • Object
Properties:
Name Type Description
locationWiseCuttingQuantity.location String The fabric cut location
locationWiseCuttingQuantity.itemCode String The item code associated with oc number
locationWiseCuttingQuantity.size String The size
locationWiseCuttingQuantity.cutQuantity number The cut quantity associated with size

locationWiseCuttingQuantity

Type:
  • Object
Properties:
Name Type Description
locationWiseCuttingQuantity.location String The fabric cut location
locationWiseCuttingQuantity.itemCode String The item code associated with oc number
locationWiseCuttingQuantity.size String The size
locationWiseCuttingQuantity.cutQuantity number The cut quantity associated with size

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

OCProductSamsFromJobwork

Type:
  • Object
Properties:
Name Type Description
OCProductSamsFromJobwork.location String The location
OCProductSamsFromJobwork.productCode String The product Code
OCProductSamsFromJobwork.machineSam number The machine sam
OCProductSamsFromJobwork.globalSam number The global sam

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

sizeDetailsList

Type:
  • Object
Properties:
Name Type Description
sizeDetailsList.size String The size
sizeDetailsList.orderQuantity number The order quantity associated with size
sizeDetailsList.cutQuantity number The cut quantity associated with size
sizeDetailsList.DHUPassedQuantity number The DHU passed quantity for size
sizeDetailsList.dispatchQuantity number The dispatch quantity for size

sizeDetailsList

Type:
  • Object
Properties:
Name Type Description
sizeDetailsList.size String The size
sizeDetailsList.orderQuantity number The order quantity associated with size
sizeDetailsList.cutQuantity number The cut quantity associated with size
sizeDetailsList.DHUPassedQuantity number The DHU passed quantity for size
sizeDetailsList.dispatchQuantity number The dispatch quantity for size

sizeWiseOrderQuantity

Type:
  • Object
Properties:
Name Type Description
sizeWiseOrderQuantity.location String The fabric cut location
sizeWiseOrderQuantity.ocNumber String The oc number
sizeWiseOrderQuantity.itemCode String The item code associated with oc number
sizeWiseOrderQuantity.itemDescription String The item description
sizeWiseOrderQuantity.size String The size
sizeWiseOrderQuantity.quantity number The quantity associated with size

sizeWiseOrderQuantity

Type:
  • Object
Properties:
Name Type Description
sizeWiseOrderQuantity.location String The fabric cut location
sizeWiseOrderQuantity.ocNumber String The oc number
sizeWiseOrderQuantity.itemCode String The item code associated with oc number
sizeWiseOrderQuantity.itemDescription String The item description
sizeWiseOrderQuantity.size String The size
sizeWiseOrderQuantity.quantity number The quantity associated with size

sizeWiseOrderQuantity

Type:
  • Object
Properties:
Name Type Description
sizeWiseOrderQuantity.location String The fabric cut location
sizeWiseOrderQuantity.ocNumber String The oc number
sizeWiseOrderQuantity.itemCode String The item code associated with oc number
sizeWiseOrderQuantity.itemDescription String The item description
sizeWiseOrderQuantity.size String The size
sizeWiseOrderQuantity.quantity number The quantity associated with size

trackerDHUData

Type:
  • Object
Properties:
Name Type Description
location String
batchUnique number
batchNumber String
passedQuantity number
reworkedQuantity number
rejectedQuantity number

trackerDHUData

Type:
  • Object
Properties:
Name Type Description
location String
batchUnique number
batchNumber String
passedQuantity number
reworkedQuantity number
rejectedQuantity number

Methods

calculateFabricConsumptionValues(groupedData, jobUniqueWiseCuttingQuantity)

Parameters:
Name Type Description
groupedData Array.<locationAndItemCodegroupedData> The data to be grouped
jobUniqueWiseCuttingQuantity Array.<jobUniqueWiseCuttingQuantity> The consumption data to be included
Returns:
([])

calculateFabricConsumptionValues(groupedData, jobUniqueWiseCuttingQuantity)

Parameters:
Name Type Description
groupedData Array.<locationAndItemCodegroupedData> The data to be grouped
jobUniqueWiseCuttingQuantity Array.<jobUniqueWiseCuttingQuantity> The consumption data to be included
Returns:
([])

calculateSamProducedAndMachineMinutes(GroupedData)

Parameters:
Name Type Description
GroupedData Array.<efficiencyGroupedData> The data to be grouped
Returns:
([])

cuttingDataGroupByLocationAnditemCode(sizeWiseCuttingOrderQuantity, cutQuantityList, DHUPassedQuantityList, dispatchQuantityList) → {Array.<locationAndItemCodegroupedData>}

Parameters:
Name Type Description
sizeWiseCuttingOrderQuantity Array.<sizeWiseOrderQuantity> The data to be grouped
cutQuantityList Array.<locationWiseCuttingQuantity> The cut quantity to be included in group
DHUPassedQuantityList Array.<DHUPassedQuantityList> The list of passed quantity to be included in group
dispatchQuantityList Array.<dispatchQuantityList> The list of dispatch quantity to be included in group
Returns:
the list of gropued data
Type
Array.<locationAndItemCodegroupedData>

cuttingDataGroupByLocationAnditemCode(sizeWiseCuttingOrderQuantity, cutQuantityList, DHUPassedQuantityList, dispatchQuantityList) → {Array.<locationAndItemCodegroupedData>}

Parameters:
Name Type Description
sizeWiseCuttingOrderQuantity Array.<sizeWiseOrderQuantity> The data to be grouped
cutQuantityList Array.<locationWiseCuttingQuantity> The cut quantity to be included in group
DHUPassedQuantityList Array.<DHUPassedQuantityList> The list of passed quantity to be included in group
dispatchQuantityList Array.<dispatchQuantityList> The list of dispatch quantity to be included in group
Returns:
the list of gropued data
Type
Array.<locationAndItemCodegroupedData>

cuttingDataGroupByLocationAnditemCodewithPOandCountry(sizeWiseCuttingOrderQuantity, cutQuantityList, DHUPassedQuantityList, dispatchQuantityList, loadedQuantityList) → {Array.<locationAndItemCodegroupedData>}

Parameters:
Name Type Description
sizeWiseCuttingOrderQuantity Array.<sizeWiseOrderQuantity> The data to be grouped
cutQuantityList Array.<locationWiseCuttingQuantity> The cut quantity to be included in group
DHUPassedQuantityList Array.<DHUPassedQuantityList> The list of passed quantity to be included in group
dispatchQuantityList Array.<dispatchQuantityList> The list of dispatch quantity to be included in group
loadedQuantityList Array.<dispatchQuantityList> The list of loaded quantity to be included in group
Returns:
the list of gropued data
Type
Array.<locationAndItemCodegroupedData>

DHUDataGroupByLocationAndBatch(DHUDetails)

Parameters:
Name Type Description
DHUDetails Array.<DHUOverViewData> The data to be grouped
Returns:
([])

DHUDataGroupByLocationAndBatch(DHUDetails)

Parameters:
Name Type Description
DHUDetails Array.<DHUOverViewData> The data to be grouped
Returns:
([])

efficiencyDataGroupByLocationAndBatch(efficiencyData, DHUData, cuttingDetails)

Parameters:
Name Type Description
efficiencyData Array.<efficiencyTrackerData> The data to be grouped
DHUData Array.<trackerDHUData> The DHU data to be included in grouped
cuttingDetails Array.<CuttingDetailForLocation> The cutting details
Returns:
([])

efficiencyDataGroupByLocationAndBatch(efficiencyData, DHUData, cuttingDetails)

Parameters:
Name Type Description
efficiencyData Array.<efficiencyTrackerData> The data to be grouped
DHUData Array.<trackerDHUData> The DHU data to be included in grouped
cuttingDetails Array.<CuttingDetailForLocation> The cutting details
Returns:
([])

filterBasedOnWorkingHours(batchOutputData, batchScheduleDetails, overTimeBatchesScheduleDetails)

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
overTimeBatchesScheduleDetails Array.<overTimeBatchScheduleDetail> The batch over time schedule details

filterBasedOnWorkingHours(batchOutputData, batchScheduleDetails, overTimeBatchesScheduleDetails)

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
overTimeBatchesScheduleDetails Array.<overTimeBatchScheduleDetail> The batch over time schedule details

groupEfficiencyData(efficiencyData, batchesScheduleDetails, ocProductSamsResult, overTimeBatchesScheduleDetails) → {Array.<efficiencyGroupedData>}

Parameters:
Name Type Description
efficiencyData Array.<efficiencyData> The data to be grouped
batchesScheduleDetails Array.<BatchScheduleDetail> The batch schedule details
ocProductSamsResult Array.<OCProductSAMS> The sam for oc and product combination
overTimeBatchesScheduleDetails Array.<overTimeBatchScheduleDetail> The batch over time schedule details
Returns:
Type
Array.<efficiencyGroupedData>

groupEfficiencyData(efficiencyData, batchesScheduleDetails, ocProductSamsResult, jobWorkSamsResult, overTimeBatchesScheduleDetails) → {Array.<efficiencyGroupedData>}

Parameters:
Name Type Description
efficiencyData Array.<efficiencyData> The data to be grouped
batchesScheduleDetails Array.<BatchScheduleDetail> The batch schedule details
ocProductSamsResult Array.<OCProductSAMS> The sam for oc and product combination
jobWorkSamsResult Array.<OCProductSamsFromJobwork> The sam for oc and product from job work
overTimeBatchesScheduleDetails Array.<overTimeBatchScheduleDetail> The batch over time schedule details
Returns:
Type
Array.<efficiencyGroupedData>

includeLoadingDetails(groupedData, loadingDetaisList)

Parameters:
Name Type Description
groupedData Array.<locationAndItemCodegroupedData> The data to be grouped
loadingDetaisList Array.<jobUniqueWiseCuttingQuantity> The consumption data to be included
Returns:
([])

Type Definitions

BatchOuputDetails

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

BatchOuputDetails

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

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

CuttingDetailForLocation

Type:
  • Object
Properties:
Name Type Description
CuttingDetailForLocation.location String The location
CuttingDetailForLocation.quantity number The total cut quantity grouped by location

CuttingDetailForLocation

Type:
  • Object
Properties:
Name Type Description
CuttingDetailForLocation.location String The location
CuttingDetailForLocation.quantity number The total cut quantity grouped by location

DHUOverViewData

Type:
  • Object
Properties:
Name Type Description
location String
batchUnique number
batchNumber String
status String
quantity number

DHUOverViewData

Type:
  • Object
Properties:
Name Type Description
location String
batchUnique number
batchNumber String
status String
quantity number

DHUPassedQuantityList

Type:
  • Object
Properties:
Name Type Description
DHUPassedQuantityList.location String The location
DHUPassedQuantityList.productCode String The product code
DHUPassedQuantityList.colourCode String The colour code associated with product
DHUPassedQuantityList.size String The size associated with product and colour
DHUPassedQuantityList.passedQuantity number The passed quantity

DHUPassedQuantityList

Type:
  • Object
Properties:
Name Type Description
DHUPassedQuantityList.location String The location
DHUPassedQuantityList.productCode String The product code
DHUPassedQuantityList.colourCode String The colour code associated with product
DHUPassedQuantityList.size String The size associated with product and colour
DHUPassedQuantityList.passedQuantity number The passed quantity

DHUPassedQuantityList

Type:
  • Object
Properties:
Name Type Description
DHUPassedQuantityList.location String The location
DHUPassedQuantityList.productCode String The product code
DHUPassedQuantityList.colourCode String The colour code associated with product
DHUPassedQuantityList.size String The size associated with product and colour
DHUPassedQuantityList.buyerPoNumber String The po associated with product and colour
DHUPassedQuantityList.buyerPoCountry String The country associated with product and colour
DHUPassedQuantityList.passedQuantity number The passed quantity

dispatchQuantityList

Type:
  • Object
Properties:
Name Type Description
dispatchQuantityList.location String The location
dispatchQuantityList.productCode String The product code
dispatchQuantityList.colourCode String The colour code associated with product
dispatchQuantityList.size String The size associated with product and colour
dispatchQuantityList.dispatchQuantity number The dispatch quantity

dispatchQuantityList

Type:
  • Object
Properties:
Name Type Description
dispatchQuantityList.location String The location
dispatchQuantityList.productCode String The product code
dispatchQuantityList.colourCode String The colour code associated with product
dispatchQuantityList.size String The size associated with product and colour
dispatchQuantityList.dispatchQuantity number The dispatch quantity

dispatchQuantityList

Type:
  • Object
Properties:
Name Type Description
dispatchQuantityList.location String The location
dispatchQuantityList.productCode String The product code
dispatchQuantityList.colourCode String The colour code associated with product
dispatchQuantityList.size String The size associated with product and colour
dispatchQuantityList.buyerPoNumber String The po associated with product and colour
dispatchQuantityList.buyerPoCountry String The country associated with product and colour
dispatchQuantityList.dispatchQuantity number The dispatch quantity

efficiencyData

Type:
  • Object
Properties:
Name Type Description
location String
batchUnique number
batchNumber String
ocNumber String
productCode String
date String
hourMinutes String
outputQuantity number

efficiencyData

Type:
  • Object
Properties:
Name Type Description
location String
batchUnique number
batchNumber String
ocNumber String
productCode String
date String
hourMinutes String
outputQuantity number

efficiencyGroupedData

Type:
  • Object
Properties:
Name Type Description
location String
batchUnique number
batchNumber String
ocNumber String
productCode String
date String
outputQuantity number
workStartTime String
workEndTime String
breakStartTime String
breakEndTime String
numberOfMachines number
numberOfHelpers number
overTimeStart String
overTimeEnd String
overTimeMachines number
overTimeHelpers number
overTimeOutPutQuantity number
sam number
globalSam number

efficiencyTrackerData

Type:
  • Object
Properties:
Name Type Description
location String
batchUnique number
batchNumber String
batchTargetQuantity number
ocNumber String
productCode String
date String
outputQuantity number
sewingSamProduced number
sewingMachineMinutes number
globalSamProduced number
globalMachineMinutes number
totalWorkStation number
numberOfMachines number
sewingSam number
globalSam number
availableMinutes number

efficiencyTrackerData

Type:
  • Object
Properties:
Name Type Description
location String
batchUnique number
batchNumber String
batchTargetQuantity number
ocNumber String
productCode String
date String
outputQuantity number
sewingSamProduced number
sewingMachineMinutes number
globalSamProduced number
globalMachineMinutes number
totalWorkStation number
numberOfMachines number
sewingSam number
globalSam number
availableMinutes number

jobUniqueWiseCuttingQuantity

Type:
  • Object
Properties:
Name Type Description
jobUniqueWiseCuttingQuantity.location String The fabric cut location
jobUniqueWiseCuttingQuantity.itemCode String The item code associated with oc number
jobUniqueWiseCuttingQuantity.unique number The job unique number
jobUniqueWiseCuttingQuantity.layLength number The lay length associated with job
jobUniqueWiseCuttingQuantity.numOfPiecesPerPlie number The number of pieces per plie associated with job
jobUniqueWiseCuttingQuantity.quantity number The cut quantity associated with size

jobUniqueWiseCuttingQuantity

Type:
  • Object
Properties:
Name Type Description
jobUniqueWiseCuttingQuantity.location String The fabric cut location
jobUniqueWiseCuttingQuantity.itemCode String The item code associated with oc number
jobUniqueWiseCuttingQuantity.unique number The job unique number
jobUniqueWiseCuttingQuantity.layLength number The lay length associated with job
jobUniqueWiseCuttingQuantity.numOfPiecesPerPlie number The number of pieces per plie associated with job
jobUniqueWiseCuttingQuantity.quantity number The cut quantity associated with size

loadedQuantityList

Type:
  • Object
Properties:
Name Type Description
loadedQuantityList.location String The location
loadedQuantityList.productCode String The product code
loadedQuantityList.colourCode String The colour code associated with product
loadedQuantityList.size String The size associated with product and colour
loadedQuantityList.buyerPoNumber String The po associated with product and colour
loadedQuantityList.buyerPoCountry String The country associated with product and colour
loadedQuantityList.loadedQuantity number The loaded quantity{super market}

locationAndItemCodegroupedData

Type:
  • Object
Properties:
Name Type Description
locationAndItemCodegroupedData.location String The fabric cut location
locationAndItemCodegroupedData.ocNumber String The oc number
locationAndItemCodegroupedData.itemCode String The item code associated with oc number
locationAndItemCodegroupedData.itemDescription String The item description
locationAndItemCodegroupedData.sizeDetails Array.<sizeDetailsList> the list of size details

locationAndItemCodegroupedData

Type:
  • Object
Properties:
Name Type Description
locationAndItemCodegroupedData.location String The fabric cut location
locationAndItemCodegroupedData.ocNumber String The oc number
locationAndItemCodegroupedData.itemCode String The item code associated with oc number
locationAndItemCodegroupedData.itemDescription String The item description
locationAndItemCodegroupedData.sizeDetails Array.<sizeDetailsList> the list of size details

locationWiseCuttingQuantity

Type:
  • Object
Properties:
Name Type Description
locationWiseCuttingQuantity.location String The fabric cut location
locationWiseCuttingQuantity.itemCode String The item code associated with oc number
locationWiseCuttingQuantity.size String The size
locationWiseCuttingQuantity.cutQuantity number The cut quantity associated with size

locationWiseCuttingQuantity

Type:
  • Object
Properties:
Name Type Description
locationWiseCuttingQuantity.location String The fabric cut location
locationWiseCuttingQuantity.itemCode String The item code associated with oc number
locationWiseCuttingQuantity.size String The size
locationWiseCuttingQuantity.cutQuantity number The cut quantity associated with size

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

OCProductSamsFromJobwork

Type:
  • Object
Properties:
Name Type Description
OCProductSamsFromJobwork.location String The location
OCProductSamsFromJobwork.productCode String The product Code
OCProductSamsFromJobwork.machineSam number The machine sam
OCProductSamsFromJobwork.globalSam number The global sam

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

sizeDetailsList

Type:
  • Object
Properties:
Name Type Description
sizeDetailsList.size String The size
sizeDetailsList.orderQuantity number The order quantity associated with size
sizeDetailsList.cutQuantity number The cut quantity associated with size
sizeDetailsList.DHUPassedQuantity number The DHU passed quantity for size
sizeDetailsList.dispatchQuantity number The dispatch quantity for size

sizeDetailsList

Type:
  • Object
Properties:
Name Type Description
sizeDetailsList.size String The size
sizeDetailsList.orderQuantity number The order quantity associated with size
sizeDetailsList.cutQuantity number The cut quantity associated with size
sizeDetailsList.DHUPassedQuantity number The DHU passed quantity for size
sizeDetailsList.dispatchQuantity number The dispatch quantity for size

sizeWiseOrderQuantity

Type:
  • Object
Properties:
Name Type Description
sizeWiseOrderQuantity.location String The fabric cut location
sizeWiseOrderQuantity.ocNumber String The oc number
sizeWiseOrderQuantity.itemCode String The item code associated with oc number
sizeWiseOrderQuantity.itemDescription String The item description
sizeWiseOrderQuantity.size String The size
sizeWiseOrderQuantity.quantity number The quantity associated with size

sizeWiseOrderQuantity

Type:
  • Object
Properties:
Name Type Description
sizeWiseOrderQuantity.location String The fabric cut location
sizeWiseOrderQuantity.ocNumber String The oc number
sizeWiseOrderQuantity.itemCode String The item code associated with oc number
sizeWiseOrderQuantity.itemDescription String The item description
sizeWiseOrderQuantity.size String The size
sizeWiseOrderQuantity.quantity number The quantity associated with size

sizeWiseOrderQuantity

Type:
  • Object
Properties:
Name Type Description
sizeWiseOrderQuantity.location String The fabric cut location
sizeWiseOrderQuantity.ocNumber String The oc number
sizeWiseOrderQuantity.itemCode String The item code associated with oc number
sizeWiseOrderQuantity.itemDescription String The item description
sizeWiseOrderQuantity.size String The size
sizeWiseOrderQuantity.quantity number The quantity associated with size

trackerDHUData

Type:
  • Object
Properties:
Name Type Description
location String
batchUnique number
batchNumber String
passedQuantity number
reworkedQuantity number
rejectedQuantity number

trackerDHUData

Type:
  • Object
Properties:
Name Type Description
location String
batchUnique number
batchNumber String
passedQuantity number
reworkedQuantity number
rejectedQuantity number