Module: routers/v8/analytics/cutting-register

Express router for barcode related routes

Methods

(static) get/analytics/cutting-register() → {Array.<Object>}

The route to validate OC number and fetch item details
Parameters:
Name Type Description
req.query.ocNum String validate OC number
Returns:
The array of objects that is returned module:routers/v8/analytics/cutting-register~cuttingItems
Type
Array.<Object>

(static) get/analytics/cutting-register/oc/:OC/item/:itemCode() → {Array.<Object>}

The route to fetch all details same as minusing register book based on marker unique(google Sheet ID)
Parameters:
Name Type Description
req.params.OC String The OC number to fetch order and job details in combination of other parameters.
req.params.itemCode String The item code to fetch order and job details in combination of other parameters.
req.query.location String The location to fetch order and job details in combination of other parameters.
req.query.fitType String The fit type to fetch order and job details in combination of other parameters.
Returns:
The array of objects that is returned module:routers/v8/analytics/cutting-register~registerDetails
Type
Array.<Object>

(static) get/analytics/cutting-register/ocNumber/:ocNumber() → {Array.<consolidatedOcNumberData>}

The route to fetch the consolidated cutting data for an OC number
Parameters:
Name Type Description
req.params.ocNumber String The oc number
Returns:
The consolidated data returned module:routers/v8/analytics/cutting-register~consolidatedOcNumberData[]
Type
Array.<consolidatedOcNumberData>

Type Definitions

consolidatedOcNumberData

Type:
  • Object
Properties:
Name Type Description
consolidatedOcNumberData.date String The cut date DD-MM-YYYY
consolidatedOcNumberData.size String The size
consolidatedOcNumberData.quantity Number The cut quantity
consolidatedOcNumberData.averageConsumption Number The average consumption

cuttingItems

Type:
  • Object
Properties:
Name Type Description
itemCode String The item code
itemDescription String The description of item
location String The assigned marker location
markerDetail String The marker detail (i.e, slim fit, short fit, regular fit etc..)

registerDetails

Type:
  • Object
Properties:
Name Type Description
itemCode String The item code
itemDescription String The item description
customerName String The customer name
styleNumber String The style number
fitType String The fit type (i.e, regular fit, slim fit, short fit etc...)
approvedConsumption number The approved consumption for marker
sizeQuantities Array.<Object> The size and associated quantities
Properties
Name Type Description
size String Size
quantity Number Quantity associated with each size
jobs Array.<Object> The jobs associated with the marker
Properties
Name Type Description
unique Number The unique number of job assigned from leader to follower
date String The job completed date(format example dd-mm-yyyy: 14-09-2020)
layLength String The actual laylength of job assigned
table Number The table number for which job assigned
size Number The assigned sizes for job
quantity String The size wise completed quantity for assigned job
numOfPiecesPerPly Number The number of garments that can be cut per ply