Module: routers/v8/analytics/sewing

Express router for sewing analytics related routes

Methods

(static) get/analytics/sewing/cuttingDetails() → {Array.<cuttingOverViewDetails>}

Route to fetch Cutting overview
Parameters:
Name Type Description
req.query.startDate String The start date to fetch overView details in format of yyyymmdd
req.query.endDate String | null The end date to fetch overView details in format of yyyymmdd
Returns:
The list of batch overView details combination of location and batch module:routers/v8/analytics/sewing~locationOverViewDetails
Type
Array.<cuttingOverViewDetails>

(static) get/analytics/sewing/dateWise/efficiency/location/:location() → {Array.<batchEfficiencyOutPutQuantityDetails>}

Route to fetch date wise efficiency for location
Parameters:
Name Type Description
req.param.location String The location
req.query.batchNumber String | null The batch number associated with location
req.query.startDate String The start date to fetch efficiency details in format of yyyymmdd
req.query.endDate String | null The end date to fetch efficiency details in format of yyyymmdd
Returns:
The list of batch efficiency and output quantity in location module:routers/v8/analytics/sewing~batchEfficiencyOutPutQuantityDetails
Type
Array.<batchEfficiencyOutPutQuantityDetails>

(static) get/analytics/sewing/defects/location/:location() → {Array.<DHUDefectDetails>}

Route to return defect details based on location, batch, date and each hour within the date
Parameters:
Name Type Description
req.param.location String The location
req.query.batchNumber String | null The batch number in location
req.query.startDate String The start date in format of yyyymmdd
req.query.endDate String | null The end date in format of yyyymmdd
Returns:
DHUDefectDetails The list of defect details based on location module:routers/v8/analytics/sewing~DHUDefectDetails
Type
Array.<DHUDefectDetails>

(static) get/analytics/sewing/loading/wip() → {Array.<qrWipDetailsList>}

Route to fetch Efficiency data for last 30 days to compare utilisation trend
Returns:
Type
Array.<qrWipDetailsList>

(static) get/analytics/sewing/loadingDetails() → {Array.<loadingOverViewDetails>}

Route to fetch Cutting overview
Parameters:
Name Type Description
req.query.startDate String The start date to fetch overView details in format of yyyymmdd
req.query.endDate String | null The end date to fetch overView details in format of yyyymmdd
Returns:
The list of batch overView details combination of location and batch module:routers/v8/analytics/sewing~locationOverViewDetails
Type
Array.<loadingOverViewDetails>

(static) get/analytics/sewing/overView() → {Array.<locationOverViewDetails>}

Route to fetch DHU and Efficiency overview
Parameters:
Name Type Description
req.query.startDate String The start date to fetch overView details in format of yyyymmdd
req.query.endDate String | null The end date to fetch overView details in format of yyyymmdd
Returns:
The list of batch overView details combination of location and batch module:routers/v8/analytics/sewing~locationOverViewDetails
Type
Array.<locationOverViewDetails>

(static) get/analytics/sewing/overView() → {Array.<locationOverViewDetails>}

Route to fetch DHU and Efficiency overview
Parameters:
Name Type Description
req.query.startDate String The start date to fetch overView details in format of yyyymmdd
req.query.endDate String | null The end date to fetch overView details in format of yyyymmdd
Returns:
The list of batch overView details combination of location and batch module:routers/v8/analytics/sewing~locationOverViewDetails
Type
Array.<locationOverViewDetails>

(static) get/analytics/sewing/overView() → {Array.<locationOverViewDetails>}

Route to fetch DHU and Efficiency overview
Parameters:
Name Type Description
req.query.startDate String The start date to fetch overView details in format of yyyymmdd
req.query.endDate String | null The end date to fetch overView details in format of yyyymmdd
Returns:
The list of batch overView details combination of location and batch module:routers/v8/analytics/sewing~locationOverViewDetails
Type
Array.<locationOverViewDetails>

(static) get/analytics/sewing/overView() → {Array.<locationOverViewDetails>}

Route to fetch DHU and Efficiency overview
Parameters:
Name Type Description
req.query.startDate String The start date to fetch overView details in format of yyyymmdd
req.query.endDate String | null The end date to fetch overView details in format of yyyymmdd
Returns:
The list of batch overView details combination of location and batch module:routers/v8/analytics/sewing~locationOverViewDetails
Type
Array.<locationOverViewDetails>

(static) get/analytics/sewing/overView() → {Array.<locationOverViewDetails>}

Route to fetch DHU and Efficiency overview
Parameters:
Name Type Description
req.query.startDate String The start date to fetch overView details in format of yyyymmdd
req.query.endDate String | null The end date to fetch overView details in format of yyyymmdd
Returns:
The list of batch overView details combination of location and batch module:routers/v8/analytics/sewing~locationOverViewDetails
Type
Array.<locationOverViewDetails>

(static) get/analytics/sewing/overView/trend() → {Array.<trendOverViewDetails>}

Route to fetch Efficiency data for last 30 days to compare utilisation trend
Returns:
The list of batch overView details combination of location and batch module:routers/v8/analytics/sewing~locationOverViewDetails
Type
Array.<trendOverViewDetails>

(static) get/analytics/sewing/product/qrcode/overView() → {Array.<qrCodeOverviewDetailList>}

Route to fetch Efficiency data for last 30 days to compare utilisation trend
Parameters:
Name Type Description
req.query.filterDate String The filter start date in format of yyyy-MM-dd
req.query.filterByDHU boolean The filter data by dhu process
Returns:
Type
Array.<qrCodeOverviewDetailList>

(static) get/analytics/sewing/status/location() → {Array.<locationsProductionDetails>}

Route to fetch production status details associated with all locations (overall group)
Returns:
The list of locations production details module:routers/v8/analytics/sewing~locationsProductionDetails
Type
Array.<locationsProductionDetails>

(static) get/analytics/sewing/status/location/:location() → {Array.<productionStatusList>}

Route to fetch production status details i.e, hourly data for DHU, Dispatch along with efficiency
Parameters:
Name Type Description
req.param.location String The location
Returns:
The list of production details for sewing module:routers/v8/analytics/sewing~productionStatusList
Type
Array.<productionStatusList>

Type Definitions

batchEfficiencyOutPutQuantityDetails

Type:
  • Object
Properties:
Name Type Description
batchEfficiencyOutPutQuantityDetails.date String The date outPut quantity
batchEfficiencyOutPutQuantityDetails.batchNumber String The batch number for mentioned location
batchEfficiencyOutPutQuantityDetails.ocNumber String The oc number
batchEfficiencyOutPutQuantityDetails.productCode String The product code associated with oc number
batchEfficiencyOutPutQuantityDetails.productDescription String The product description associated with product
batchEfficiencyOutPutQuantityDetails.buyerName String The buyer name
batchEfficiencyOutPutQuantityDetails.orderType String The order type
batchEfficiencyOutPutQuantityDetails.batchTargetQuantity number The batch target quantity
batchEfficiencyOutPutQuantityDetails.totalOutputQuantity number The total output quantity
batchEfficiencyOutPutQuantityDetails.efficiency number The efficiency in combination of oc number, batch number and date
batchEfficiencyOutPutQuantityDetails.sam number The sam for product
batchEfficiencyOutPutQuantityDetails.hourlyDetails Array.<hourlyDetails> The batch hourly details module:routers/v8/analytics/sewing~hourlyDetails

cuttingOverViewDetails

Type:
  • Object
Properties:
Name Type Description
cuttingOverViewDetails.location String The location
cuttingOverViewDetails.locationName String The location name
cuttingOverViewDetails.CuttingQuantity number The cuttind quentity name

defectDetails

Type:
  • Object
Properties:
Name Type Description
defectDetails.defectType String The hourly defect type
defectDetails.quantity String The hourly defect type quantity

DHUDefectDetails

Type:
  • Object
Properties:
Name Type Description
DHUDefectDetails.date String The date of defect details
DHUDefectDetails.batchNumber String The batch for mentioned location
DHUDefectDetails.ocNumber String The oc number
DHUDefectDetails.productCode String The product code associated with oc number
DHUDefectDetails.productDescription String The product description associated with product
DHUDefectDetails.buyerName String The buyer name
DHUDefectDetails.orderType String The order type
DHUDefectDetails.totalPassedQuantity number The total passed quantity
DHUDefectDetails.totalReworkedQuantity number The total rework quantity
DHUDefectDetails.totalRejectedQuantity number The total rejected quantity
DHUDefectDetails.efficiency number The efficiency percentage
ListOfBatchEfficiency.hourDetails Array.<hourDetails> The defect hourly details module:routers/v8/analytics/sewing~hourDetails

DispatchScanning

Type:
  • Object
Properties:
Name Type Description
DispatchScanning.batch_number String The batch number
DispatchScanning.oc_number String The OC number
DispatchScanning.product_code String The product code
DispatchScanning.location String The location
DispatchScanning.style String The style
DispatchScanning.buyer_name String The buyer name
DispatchScanning.color String The color
DispatchScanning.size String The size
DispatchScanning.output_quantity number The output quantity

hourDetails

Type:
  • Object
Properties:
Name Type Description
hourDetails.hour String The hour in 24 hours format
hourDetails.hourEfficiency number The hour efficiency
hourDetails.passedQuantiy String The hourly passed quantity
hourDetails.reworkedQuantity String The hourly rework quantity
hourDetails.rejectedQuantity number The hourly rejected quantity
hourDetails.sewingSamProduced number The sewing sam produced
hourDetails.sewingMachineMinutes number The sewing machine minutes
hourDetails.defectDetails Array.<defectDetails> The hourly defect details module:routers/v8/analytics/sewing~hourDetails

hourlyDetails

Type:
  • Object
Properties:
Name Type Description
hourlyDetails.startTime String The start time
hourlyDetails.endTime String The end time
hourlyDetails.outputQuantity number The output quantity
hourlyDetails.hourEfficiency number The hourly efficiency
hourlyDetails.sewingSamProduced number The sewing sam produced
hourlyDetails.sewingMachineMinutes number The sewing machine minutes
hourlyDetails.hourlyGlobalEfficiency number The hourly global efficiency
hourlyDetails.globalSamProduced number The global sam produced
hourlyDetails.globalMachineMinutes number The global machine minutes
hourlyDetails.approvedQuantity number The dhu approved quantity
hourlyDetails.reworkQuantity number The dhu rework quantity
hourlyDetails.rejectedQuantity number The dhu rejected quantity

hourlyDetails

Type:
  • Object
Properties:
Name Type Description
hourlyDetails.startTime String The start time
hourlyDetails.endTime String The end time
hourlyDetails.outputQuantity number The output quantity between start and end time
hourlyDetails.hourEfficiency number The efficiency between start and end time
hourlyDetails.sewingSamProduced number The sewing sam produced
hourlyDetails.sewingMachineMinutes number The sewing machine minutes

loadingOverViewDetails

Type:
  • Object
Properties:
Name Type Description
loadingOverViewDetails.location String The location
loadingOverViewDetails.locationName String The location name
loadingOverViewDetails.locationCode String The location Code ID /BD
loadingOverViewDetails.batchNumber String The batch name
loadingOverViewDetails.total_loading number The load quentity name

locationOverViewDetails

Type:
  • Object
Properties:
Name Type Description
locationOverViewDetails.location String The location
locationOverViewDetails.locationName String The location name
locationOverViewDetails.locationWorkDays number The location work days
locationOverViewDetails.batchUnique number The batch unique number
locationOverViewDetails.batchNumber String The batch number
locationOverViewDetails.batchTargetQuantity number The batch target quantity
locationOverViewDetails.batchWorkDays number The batch work days
locationOverViewDetails.outputQuantity number The batch output quantity
locationOverViewDetails.sewingSamProduced number The sewing sam produced
locationOverViewDetails.sewingMachineMinutes number The sewing machine minutes
locationOverViewDetails.globalSamProduced number The global sam produced
locationOverViewDetails.globalMachineMinutes number The global machines
locationOverViewDetails.totalWorkStation number The total workstations
locationOverViewDetails.numberOfMachines number The number of machines
locationOverViewDetails.DHUPassedQuantity number The DHU passed quantity
locationOverViewDetails.DHUReworkedQuantity number The DHU reWork quantity
locationOverViewDetails.DHURejectedQuantity number The DHU rejected quantity

locationsProductionDetails

Type:
  • Object
Properties:
Name Type Description
locationsProductionDetails.location String The location
locationsProductionDetails.locationName String The location name
locationsProductionDetails.totalTargetQuantity number The total target quantity
locationsProductionDetails.totalOutputQuantity number The total output quantity
locationsProductionDetails.numberOfMachines number The number of machines
locationsProductionDetails.numberOfHelpers number The total number of helpers
locationsProductionDetails.totalLoadingQuantity number The total loading quantity
locationsProductionDetails.totalDefectQuantity number The total defect quantity
locationsProductionDetails.totalDhuApprovedQuantity number The total dhu approved quantity
locationsProductionDetails.totalDhuReworkQuantity number The total dhu rework quantity
locationsProductionDetails.totalDhuRejectedQuantity number The total dhu rejected quantity
locationsProductionDetails.hourlyDetails Array.<loctionHourlyDetails> The list of location hourly details module:routers/v8/analytics/sewing~loctionHourlyDetails

loctionHourlyDetails

Type:
  • Object
Properties:
Name Type Description
loctionHourlyDetails.startTime String The start time
loctionHourlyDetails.endTime String The end time
loctionHourlyDetails.outputQuantity number The output(dispatch) quantity
loctionHourlyDetails.sewingSamProduced number The sewing sam produced
loctionHourlyDetails.sewingMachineMinutes number The sewing mashines minutes
loctionHourlyDetails.globalSamProduced number The global sam produced
loctionHourlyDetails.globalMachineMinutes number The global machine minutes

ocDetailsList

Type:
  • Object
Properties:
Name Type Description
ocDetailsList.ocNumber String The oc number
ocDetailsList.productCode String The product code
ocDetailsList.productDescription String The product description
ocDetailsList.buyerName String The buyer name
ocDetailsList.orderType String The order type
ocDetailsList.totalOutputQuantity number The total output quantity
ocDetailsList.totalDhuApprovedQuantity number The total dhu approved quantity
ocDetailsList.totalDhuReworkQuantity number The total dhu rework quantity
ocDetailsList.totalDhuRejectedQuantity number The total dhu rejected quantity
ocDetailsList.batchLoadingQuantity number The batch loading quantity
ocDetailsList.batchDefectQuantity number The batch defect quantity
ocDetailsList.batchTargetQuantity number The batch target quantity
ocDetailsList.sam number The sam associated with oc number
ocDetailsList.globalSam number The global sam associated with oc number
ocDetailsList.hourlyDetails Array.<hourlyDetails> The list of hourly details associated with oc number module:routers/v8/analytics/sewing~hourlyDetails

productionStatusList

Type:
  • Object
Properties:
Name Type Description
productionStatusList.batchUnique number The batch unique
productionStatusList.batchNumber String The batch number
productionStatusList.numberOfMachines number The number of machines
productionStatusList.numberOfHelpers number The number of helpers in batch
productionStatusList.ocDetails Array.<ocDetailsList> The list of ocDetails module:routers/v8/analytics/sewing~ocDetailsList

qrCodeOverviewDetailList

Type:
  • Object
Properties:
Name Type Description
qrCodeOverviewDetailList.location String The location
qrCodeOverviewDetailList.ocNumber String The ocNumber
qrCodeOverviewDetailList.buyername String The buyer name
qrCodeOverviewDetailList.productCode String The product code
qrCodeOverviewDetailList.productDescription String The product description
qrCodeOverviewDetailList.colourCode String The colour code associated with product
qrCodeOverviewDetailList.colourDescription String The colour description
qrCodeOverviewDetailList.size String The size associated with product and colour
qrCodeOverviewDetailList.batchNumber String The batch number
qrCodeOverviewDetailList.qrCode String The qr code
qrCodeOverviewDetailList.serialNumber String The serial number
qrCodeOverviewDetailList.buyerPoNumber String The buyer po number
qrCodeOverviewDetailList.bundleBarcode String The bundle barcode
qrCodeOverviewDetailList.qrGeneratedDate String The QR generate date
qrCodeOverviewDetailList.dhuDate String The dhu date
qrCodeOverviewDetailList.dispatchDate String The dispatch date

qrWipDetailsList

Type:
  • Object
Properties:
Name Type Description
qrWipDetailsList.location String The location
qrWipDetailsList.ocNumber String The oc number
qrWipDetailsList.buyerName String The buyer name
qrWipDetailsList.productCode String The product code
qrWipDetailsList.productDescription number The product description
qrWipDetailsList.colourCode number The colour code
qrWipDetailsList.colourDescription number The colour description
qrWipDetailsList.size number The size
qrWipDetailsList.batchNumber number The batch number
qrWipDetailsList.generatedDate number The qr generated date
qrWipDetailsList.quatity number The quantity
qrWipDetailsList.buyerPoNumber number The buyer po number
qrWipDetailsList.bundleBarcode number The bundle barcode

trendOverViewDetails

Type:
  • Object
Properties:
Name Type Description
locationOverViewDetails.location String The location
locationOverViewDetails.locationName String The location name
locationOverViewDetails.locationWorkDays number The location work days
locationOverViewDetails.batchUnique number The batch unique number
locationOverViewDetails.batchNumber String The batch number
locationOverViewDetails.batchTargetQuantity number The batch target quantity
locationOverViewDetails.batchWorkDays number The batch work days
locationOverViewDetails.outputQuantity number The batch output quantity
locationOverViewDetails.sewingSamProduced number The sewing sam produced
locationOverViewDetails.sewingMachineMinutes number The sewing machine minutes
locationOverViewDetails.globalSamProduced number The global sam produced
locationOverViewDetails.globalMachineMinutes number The global machines
locationOverViewDetails.totalWorkStation number The total workstations
locationOverViewDetails.numberOfMachines number The number of machines
locationOverViewDetails.DHUPassedQuantity number The DHU passed quantity
locationOverViewDetails.DHUReworkedQuantity number The DHU reWork quantity
locationOverViewDetails.DHURejectedQuantity number The DHU rejected quantity