Methods
(static) getCountryFromSage(ocNumber, coid) → {Array.<String>}
Parameters:
| Name |
Type |
Description |
ocNumber |
String
|
The oc number |
coid |
String
|
The company database ID |
Returns:
ListOfCountry The list of country based on oc number
-
Type
-
Array.<String>
(static) validateOcNumberFromSage(ocNumber, coid) → {Boolean}
Parameters:
| Name |
Type |
Description |
ocNumber |
String
|
The oc number |
coid |
String
|
The company database ID |
Returns:
-
Type
-
Boolean
deleteParts(ocNumber, location) → {Number}
This method deletes parts and parts barcode for an OC number associated with location
Parameters:
| Name |
Type |
Description |
ocNumber |
String
|
The OC number |
location |
String
|
The location |
Returns:
-
Type
-
Number
deletePartsBarcode(barcode) → {Number}
Parameters:
| Name |
Type |
Description |
barcode |
String
|
|
Returns:
-
Type
-
Number
getOcUniqueId(ocNumber, location, style, partsBundle, partsBundleBarcode) → {Number}
This method inserts a list of parts under an OC number and location
Parameters:
| Name |
Type |
Description |
ocNumber |
String
|
The OC number |
location |
String
|
The location |
style |
String
|
The style |
partsBundle |
Array.<String>
|
The list of parts bundle |
partsBundleBarcode |
Array.<String>
|
The list of parts barcode |
Returns:
-
Type
-
Number
getPartDetailsForTest() → {Array.<fetchPartdetails>}
This method fetches the unique ids of the parts for an OC number
Returns:
The list of partdetails module:repository/partBarcode~fetchPartdetails.partDetails
-
Type
-
Array.<fetchPartdetails>
getParts(ocNumber, location) → {partDetails}
This method fetches the style and the list of parts for an OC number associated with location
Parameters:
| Name |
Type |
Description |
ocNumber |
String
|
The OC number |
location |
String
|
The location |
Returns:
-
Type
-
partDetails
getPartsBarcodeDetails(partBarcode) → {Array.<partsBarcodeDetail>}
Parameters:
| Name |
Type |
Description |
partBarcode |
String
|
The part barcode |
Returns:
The parts barcode details module:routers/v8/fabcut/cutting/parts~partsBarcodeDetail
-
Type
-
Array.<partsBarcodeDetail>
getPartscountBarcodeDetails(partBarcode) → {Array.<partsBarcodeDetailcount>}
Parameters:
| Name |
Type |
Description |
partBarcode |
String
|
The part barcode |
Returns:
The parts barcode details module:routers/v8/fabcut/cutting/parts~partsBarcodeDetail
-
Type
-
Array.<partsBarcodeDetailcount>
getValidPartBarcodeForTest() → {String}
Returns:
The part barcode for test
-
Type
-
String
isPartsBarcodeExist(partBarcode) → {Boolean}
This method to validate parts barcode existence
Parameters:
| Name |
Type |
Description |
partBarcode |
String
|
The part barcode |
Returns:
-
Type
-
Boolean
isPartsBarcodeGeneratedForJob(jobId) → {Boolean}
This method validate parts barcode existence for job
Parameters:
| Name |
Type |
Description |
jobId |
String
|
The job id |
Returns:
The status of parts barcode generated for job
-
Type
-
Boolean
isPartsUploaded(ocNumber, location) → {Boolean}
This method checks whether parts have been uploaded for this OC and Location combination
Parameters:
| Name |
Type |
Description |
ocNumber |
String
|
The ocNumber |
location |
String
|
The location |
Returns:
-
Type
-
Boolean
postParts(ocNumber, location, style, parts) → {Number}
This method inserts a list of parts under an OC number and location
Parameters:
| Name |
Type |
Description |
ocNumber |
String
|
The OC number |
location |
String
|
The location |
style |
String
|
The style |
parts |
Array.<String>
|
The list of parts |
Returns:
-
Type
-
Number
postPartsBarcode(jobId, location, fitType, lay, sizeDetails) → {Number}
Parameters:
Returns:
-
Type
-
Number
postPartsBundle(ocNumber, location, style, partsBundle, partsBundleBarcode) → {Number}
This method inserts a list of parts under an OC number and location
Parameters:
| Name |
Type |
Description |
ocNumber |
String
|
The OC number |
location |
String
|
The location |
style |
String
|
The style |
partsBundle |
Array.<String>
|
The list of parts bundle |
partsBundleBarcode |
Array.<String>
|
The list of parts barcode |
Returns:
-
Type
-
Number
putSelectedParts(parts, queryParameters) → {Boolean}
This method Updates a list of selected bundle parts
Parameters:
| Name |
Type |
Description |
parts |
Array.<parts>
|
The array of bundled selected parts objects module:repository/partBarcode~parts |
queryParameters |
Array.<Number>
|
The parameter to execute MySql query
The array list of numbers followed by isSelected(0/1) and unique number of part |
Returns:
-
Type
-
Boolean
validatePartsBarcode(barcode) → {PartBarcode}
Parameters:
| Name |
Type |
Description |
barcode |
String
|
|
Returns:
-
Type
-
PartBarcode
Type Definitions
barcodeData
Type:
Properties:
| Name |
Type |
Description |
barcodeData.barcode |
String
|
The barcode value |
barcodeData.location |
String
|
The scanning location |
barcodeData.fitType |
String
|
The type of fit |
barcodeData.size |
String
|
The size of the part |
barcodeData.itemCode |
String
|
The item code |
barcodeData.itemDescription |
String
|
The item description |
barcodeData.lay |
Number
|
The lay number the part was cut from |
barcodeData.quantity |
Number
|
The number of parts |
getCuttingPartBundle
Type:
Properties:
| Name |
Type |
Description |
productQrDetails.ocNumber |
String
|
The oc number |
productQrDetails.location |
String
|
The location |
partDetails
Type:
Properties:
| Name |
Type |
Description |
partDetails.style |
String
|
The style |
partDetails.isPartsBarcodeGenerated |
Boolean
|
Is parts barcode generated for combination of oc number and location |
partDetails.parts |
Array.<parts>
|
The list of part details module:repository/partBarcode~partDetails.parts |
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 |
partsBarcodeDetail
Type:
Properties:
| Name |
Type |
Description |
partsBarcodeDetail.style |
String
|
The style |
partsBarcodeDetail.ocNumber |
String
|
The oc number |
partsBarcodeDetail.buyerName |
String
|
The buyer |
partsBarcodeDetail.cutNumber |
Number
|
The cut number |
partsBarcodeDetail.fitType |
String
|
The fit type |
partsBarcodeDetail.itemCode |
String
|
The item code |
partsBarcodeDetail.itemDescription |
String
|
The item description |
partsBarcodeDetail.size |
String
|
The size |
partsBarcodeDetail.quantity |
Number
|
The quantity associated with size |
partsBarcodeDetail.location |
String
|
The location |
partsBarcodeDetailcount
Type:
Properties:
| Name |
Type |
Description |
partsBarcodeDetailcount.barcode_count |
String
|
The style |
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 |