Express router for tablet app related routes
Methods
(static) delete/fabcut/cutting/parts/:barcode() → {Boolean}
The route to delete a barcode generated for parts sticker
Parameters:
| Name |
Type |
Description |
req.params.barcode |
String
|
The barcode of the parts sticker |
Returns:
-
Type
-
Boolean
(static) delete/fabcut/cutting/parts/:ocNo() → {Boolean}
The route to delete all parts under an OC
Parameters:
| Name |
Type |
Description |
req.params.ocNo |
String
|
The OC number |
req.body.location |
String
|
The location |
Returns:
-
Type
-
Boolean
(static) get/fabcut/cutting/parts/:ocNo() → {partsOCDetails}
The route to get parts for an OC
Parameters:
| Name |
Type |
Description |
req.params.ocNo |
String
|
The OC number of the job |
req.query.location |
String
|
The location |
Returns:
-
Type
-
partsOCDetails
(static) get/fabcut/cutting/parts/:ocNumber/country() → {Array}
Route to get countries from sage order details
Parameters:
| Name |
Type |
Description |
req.param.ocNumber |
String
|
The oc number to fetch countries from sage |
Returns:
The list of countries.
-
Type
-
Array
(static) get/fabcut/cutting/parts/barcode/:barcode/() → {barcodePartsDetails}
The route to get details under a barcode in the parts sticker
Parameters:
| Name |
Type |
Description |
req.params.barcode |
String
|
The barcode in the sticker |
Returns:
-
Type
-
barcodePartsDetails
(static) post/fabcut/cutting/parts/:ocNo() → {Boolean}
The route to post parts for a style under an OC associated with location
Parameters:
| Name |
Type |
Description |
req.params.ocNo |
String
|
The OC number |
req.body.location |
String
|
The location |
req.body.style |
String
|
The style of the garment |
req.body.parts |
Array
|
The parts to be added under the style |
Returns:
-
Type
-
Boolean
(static) post/fabcut/cutting/parts/:ocNo() → {Boolean}
The route to post parts for a style under an OC associated with location
Parameters:
| Name |
Type |
Description |
req.params.ocNo |
String
|
The OC number |
req.body.location |
String
|
The location |
req.body.style |
String
|
The style of the garment |
req.body.partsBundle |
Array
|
The parts bundle to be added under the style |
req.body.partsBundleBarcode |
Array
|
The parts bundle barcode to be added under the style |
Returns:
-
Type
-
Boolean
(static) post/fabcut/cutting/parts/barcode/:ocNo() → {Boolean}
The route to post generated barcode with details for parts stickers under an OC
Parameters:
| Name |
Type |
Description |
req.params.ocNo |
String
|
The OC number of the order |
req.body.location |
String
|
The location where barcode was generated |
req.body.fitType |
String
|
The fit type of the garment |
req.body.lay |
Integer
|
The lay number of the cut garment |
req.body.jobId |
Integer
|
The job unique id |
req.body.sizeDetails |
Array.<sizeDetails>
|
The array of size objects with barcodes module:routers/v8/fabcut/cutting/parts~sizeDetails |
Returns:
-
Type
-
Boolean
(static) put/fabcut/cutting/parts/:ocNo() → {Boolean}
The route to update parts for a an OC number
Parameters:
Returns:
-
Type
-
Boolean
Type Definitions
barcodeDetails
Type:
Properties:
| Name |
Type |
Description |
barcodeDetails.barcode |
String
|
The barcode |
barcodeDetails.serialNumber |
String
|
The numbering serial number |
barcodeDetails
Type:
Properties:
| Name |
Type |
Description |
barcodeDetails.partsUnique |
Number
|
The unique key for part |
barcodeDetails.part |
String
|
The name of the part |
barcodeDetails.barcode |
String
|
The barcode number for part |
barcodePartsDetails
Type:
Properties:
| Name |
Type |
Description |
barcode |
String
|
The barcode number |
ocNumber |
String
|
The OC number |
style |
String
|
The style number |
partName |
String
|
The part name |
size |
String
|
The size |
lay |
Number
|
The lay number |
quantity |
Number
|
The quantity |
itemDesc |
String
|
The item description |
itemCode |
String
|
The item code |
fitType |
String
|
The fit type |
location |
String
|
The location |
parts
Type:
Properties:
| Name |
Type |
Description |
parts.partsUnique |
Number
|
The parts unique number |
parts.part |
String
|
The part name |
parts.isSelected |
Boolean
|
The part isSelected true/false |
partsOCDetails
Type:
Properties:
| Name |
Type |
Description |
ocNo |
String
|
The OC number |
style |
String
|
The style number |
partDetails.parts |
Array.<parts>
|
The list of part details module:repository/partBarcode~partDetails.parts |
sizeDetails
Type:
Properties:
| Name |
Type |
Description |
sizeDetails.itemDesc |
String
|
The item description of the garment |
sizeDetails.itemCode |
String
|
The item code of the garment |
sizeDetails.size |
String
|
The size of garment cut |
sizeDetails.augmentedSize |
String
|
The augment for size |
sizeDetails.countryCode |
String
|
The country code for part |
sizeDetails.countryName |
String
|
The country name for part |
sizeDetails.quantity |
Number
|
The quantity cut for the size |
sizeDetails.bundleNumber |
Number
|
The bundle number for size |
barcodeDetails |
Array.<barcodeDetails>
|
The array of barcodes associated with the parts and parts Unique number module:routers/v8/fabcut/cutting/parts~barcodeDetails |