Methods
getCutQuantityPerLocationForOrder(ocNumberList) → {Array.<cutQuantities>}
This method returns the total cut quantity per location for an order
Parameters:
| Name | Type | Description |
|---|---|---|
ocNumberList |
Array.<String> | The list of OC numbers associated with an order |
Returns:
The list of cut quantities per location module:repository/fabcut/analytics~cutQuantities
- Type
- Array.<cutQuantities>
getCuttingOrderQuantity(productCode) → {Array.<sizeWiseOrderQuantity>}
Function to fetch sizeWise cutting order quantity
in this function SHL0 static concatenated to product to get fabric body result (as instructed by lead)
Parameters:
| Name | Type | Description |
|---|---|---|
productCode |
String | The product code |
Returns:
The list of size wise cutting order quantity module:repository/fabcut/analytics~sizeWiseOrderQuantityList
- Type
- Array.<sizeWiseOrderQuantity>
getItemDetailsFromMarker(ocNum) → {markerItemList}
Function to get item details from marker
Parameters:
| Name | Type | Description |
|---|---|---|
ocNum |
String | The oc number |
Returns:
The list of marker item details module:repository/fabcut/analytics~markerItemList
- Type
- markerItemList
getJobUniqueWiseCuttingQuantity(productCode) → {Array.<jobUniqueWiseCuttingQuantity>}
Function to fetch cut quantity grouped by jobUnique
in this function SHL0 static concatenated to product to get fabric body result (as instructed by lead)
Parameters:
| Name | Type | Description |
|---|---|---|
productCode |
String | The product code |
Returns:
The list of location and size wise cutting quantity module:repository/fabcut/analytics~jobUniqueWiseCuttingQuantity
- Type
- Array.<jobUniqueWiseCuttingQuantity>
getLocationWiseCuttingQuantity(productCode) → {Array.<locationWiseCuttingQuantity>}
Function to fetch location wise cut quantity
in this function SHL0 static concatenated to product to get fabric body result (as instructed by lead)
Parameters:
| Name | Type | Description |
|---|---|---|
productCode |
String | The product code |
Returns:
The list of location and size wise cutting quantity module:repository/fabcut/analytics~locationWiseCuttingQuantity
- Type
- Array.<locationWiseCuttingQuantity>
getLocationWiseCuttingQuantityForProductlabel(productCode) → {Array.<locationWiseCuttingQuantity>}
Function to fetch location wise cut quantity
in this function SHL0 static concatenated to product to get fabric body result (as instructed by lead)
Parameters:
| Name | Type | Description |
|---|---|---|
productCode |
String | The product code |
Returns:
The list of location and size wise cutting quantity module:repository/fabcut/analytics~locationWiseCuttingQuantity
- Type
- Array.<locationWiseCuttingQuantity>
getMarkerUniqueList(location, OC, itemCode, fitType) → {markerUniqueList}
Function to get list of marker uniques
Parameters:
| Name | Type | Description |
|---|---|---|
location |
String | The location |
OC |
String | The OC numbers |
itemCode |
String | The item code associated with oc number |
fitType |
String | The fit type associated with oc number and item code |
Returns:
The list of marker unique module:repository/fabcut/analytics~markerDetailsWithConsumption
- Type
- markerUniqueList
getMarkerUniqueList(location, OC, itemCode, fitType, markerUniqueList) → {Array.<cuttingRegisterDetails>}
Function to get list of marker uniques
Parameters:
| Name | Type | Description |
|---|---|---|
location |
String | The location |
OC |
String | The OC numbers |
itemCode |
String | The item code associated with oc number |
fitType |
String | The fit type associated with oc number and item code |
markerUniqueList |
String | The list of marker unique |
Returns:
The list of cutting register details module:repository/fabcut/analytics~cuttingRegisterDetails
- Type
- Array.<cuttingRegisterDetails>
getOcNumberFromBatchInput(location, batchNumber, date) → {batchInputOcList}
Function to get oc number based on barcode scanned in batch input process
Parameters:
| Name | Type | Description |
|---|---|---|
location |
String | The location |
batchNumber |
String | The batch number |
date |
String | The date |
Returns:
The list oc numbers from batch input module:repository/fabcut/analytics~batchInputOcList
- Type
- batchInputOcList
getSizeWiseCutDetailsForOcNumber(ocNumber) → {Array.<sizeWiseCutDetails>}
Parameters:
| Name | Type | Description |
|---|---|---|
ocNumber |
String | The OC number |
Returns:
The size wise details fetched module:repository/fabcut/analytics~sizeWiseCutDetails
- Type
- Array.<sizeWiseCutDetails>
validateAndGetMarkerDetails(location, OC, itemCode, fitType) → {Array.<markerDetailsWithConsumption>}
Function to validate and return marker details for cutting register
Parameters:
| Name | Type | Description |
|---|---|---|
location |
String | The location |
OC |
String | The OC numbers |
itemCode |
String | The item code associated with oc number |
fitType |
String | The fit type associated with oc number and item code |
Returns:
The list of marker details module:repository/fabcut/analytics~markerDetailsWithConsumption
- Type
- Array.<markerDetailsWithConsumption>
Type Definitions
cutQuantities
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
cutQuantities.location |
String | The location |
cutQuantities.cutQuantity |
Number | The total cut quantity at the location |
cuttingRegisterDetails
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
cuttingRegisterDetails.unique |
String | The job unique number |
cuttingRegisterDetails.date |
String | The job assigned date |
cuttingRegisterDetails.layLength |
String | The job lay length |
cuttingRegisterDetails.numOfPiecesPerPly |
String | The number pieces per plie |
cuttingRegisterDetails.size |
String | The size |
cuttingRegisterDetails.quantity |
String | The quantity |
cuttingRegisterDetails.tableNum |
String | The table 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 |
String | 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 |
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 |
markerDetailsWithConsumption
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
markerDetailsWithConsumption.itemDescription |
String | The item description |
markerDetailsWithConsumption.customerName |
Number | The customer name |
markerDetailsWithConsumption.styleNumber |
String | The style number |
markerDetailsWithConsumption.approvedConsumption |
String | The approved consumption |
markerItemList
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
markerItemList.ocNum |
String | The oc number |
markerItemList.itemCode |
String | The item code associated with oc number |
markerItemList.itemDescription |
String | The item description |
markerItemList.location |
String | The location |
markerItemList.fitType |
String | The fit type |
markerUniqueList
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
markerUniqueList.markerUniqueList |
String | The list of marker unique |
sizeWiseCutDetails
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
sizeWiseCutDetails.jobId |
Number | The unique job id |
sizeWiseCutDetails.size |
String | The size |
sizeWiseCutDetails.date |
String | The date on which the job was assigned DD-MM-YYYY |
sizeWiseCutDetails.quantity |
Number | The quantity cut for the associated size |
sizeWiseCutDetails.consumption |
Number | The job consumption |
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 |