Methods
(static) getGeneratedBarcodes(poNumber, itemCode, ocNumber) → {Array.<generatedBarcodeList>}
Parameters:
| Name | Type | Description |
|---|---|---|
poNumber |
String | The PO Number |
itemCode |
String | The item code |
ocNumber |
String | The oc number |
Returns:
The list barcodes generated returned module:repository/fabscan/po~generatedBarcodeList
- Type
- Array.<generatedBarcodeList>
deletePoDetails(ocNumber) → {Number}
Parameters:
| Name | Type | Description |
|---|---|---|
ocNumber |
String | The OC number |
Returns:
- Type
- Number
getItemsAssociatedWithPoNumber(poNumber, coid) → {Array.<poItems>}
This method fetches the item number and description for a PO number
Parameters:
| Name | Type | Description |
|---|---|---|
poNumber |
String | The PO Number |
coid |
String | The sage table header |
Returns:
The list of items returned module:repository/fabscan/po~poItems
- Type
- Array.<poItems>
getPoBarcodeDetails(poNumber) → {fetchedPoDetails}
Parameters:
| Name | Type | Description |
|---|---|---|
poNumber |
String | The PO Number |
Returns:
The result array module:repository/fabscan/po~fetchedPoDetails
- Type
- fetchedPoDetails
getPoCurrentQuantity(poNumber, itemNumber) → {Number}
Parameters:
| Name | Type | Description |
|---|---|---|
poNumber |
String | The PO Number |
itemNumber |
String | The item number |
Returns:
- Type
- Number
getPoDetails(poNumber, itemNumber, coid) → {fetchedPoDetails}
Parameters:
| Name | Type | Description |
|---|---|---|
poNumber |
String | The PO Number |
itemNumber |
String | The item number |
coid |
String | The sage table header |
Returns:
The result array module:repository/fabscan/po~fetchedPoDetails
- Type
- fetchedPoDetails
getPoOrderQuantity(poNumber, itemNumber, coid) → {Number}
Parameters:
| Name | Type | Description |
|---|---|---|
poNumber |
String | The PO Number |
itemNumber |
String | The item number |
coid |
String | The sage table header |
Returns:
- Type
- Number
getPoReceivedQuantity(poNumber, itemCode, coid) → {Number}
Parameters:
| Name | Type | Description |
|---|---|---|
poNumber |
String | The PO Number |
itemCode |
String | The item code |
coid |
String | The sage table header |
Returns:
- Type
- Number
getValidPoNumberForTest() → {String}
Returns:
A valid PO Number
- Type
- String
postPoDetails(poNumber, poDetails)
This method posts barcode data generated for a PO number
Parameters:
| Name | Type | Description |
|---|---|---|
poNumber |
String | The PO Number |
poDetails |
poBarcodeDetails | The PO barcode details to be inserted module:repository/fabscan/po~poBarcodeDetails |
validatePoNumber(poNumber, coid) → {Boolean}
Parameters:
| Name | Type | Description |
|---|---|---|
poNumber |
String | The PO Number |
coid |
String | The sage table header |
Returns:
- Type
- Boolean
validatePoNumber(poNumber, coid) → {Boolean}
Parameters:
| Name | Type | Description |
|---|---|---|
poNumber |
String | The PO Number |
coid |
String | The sage table header |
Returns:
- Type
- Boolean
validatePoNumber(poNumber, coid) → {Boolean}
Parameters:
| Name | Type | Description |
|---|---|---|
poNumber |
String | The PO Number |
coid |
String | The sage table header |
Returns:
- Type
- Boolean
validatePoNumberFromSage(poNumber, coid) → {Boolean}
Parameters:
| Name | Type | Description |
|---|---|---|
poNumber |
String | The PO Number |
coid |
String | The sage table header |
Returns:
- Type
- Boolean
validatePoNumberFromSage(poNumber, coid) → {Boolean}
Parameters:
| Name | Type | Description |
|---|---|---|
poNumber |
String | The PO Number |
coid |
String | The sage table header |
Returns:
- Type
- Boolean
Type Definitions
deletedbarcodePoDetails
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
deletedbarcodePoDetails.barcode |
String | The barcode Number |
deletedbarcodePoDetails.PO |
String | The customer name |
deletedbarcodePoDetails.itemCode |
String | The item description |
fetchedPoDetails
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
fetchedPoDetails.ocNumber |
String | The OC Number |
fetchedPoDetails.customer |
String | The customer name |
fetchedPoDetails.styleNumber |
String | The style number |
fetchedPoDetails.styleDescription |
String | The style description |
fetchedPoDetails.itemDescription |
String | The item description |
fetchedPoDetails
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
fetchedPoDetails.ocNumber |
String | The OC Number |
fetchedPoDetails.PO |
String | The PO Number |
fetchedPoDetails.barcodes |
String | The barcodes number |
fetchedPoDetails.mirNumber |
String | The mirNumber |
fetchedPoDetails.itemCode |
String | The item code |
generatedBarcodeList
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
generatedBarcodeList.rollNumber |
String | The roll number |
generatedBarcodeList.rollLength |
Number | The roll length |
generatedBarcodeList.rollUtilized |
Number | The roll utilized |
generatedBarcodeList.mirNumber |
String | The mir number |
generatedBarcodeList.supplierRollNumber |
String | The supplier roll number |
generatedBarcodeList.invoiceNumber |
String | The invoice number |
generatedBarcodeList.fabricWidth |
String | The fabric width |
generatedBarcodeList.cuttableWidth |
String | The cuttable width |
generatedBarcodeList.rollDate |
String | The roll generated date * @property {String} generatedBarcodeList.fabcode The fabric code |
generatedBarcodeList.fabcc |
String | The fabric cc |
generatedBarcodeList.fabcom |
String | The fabric com |
generatedBarcodeList.fabgsm |
String | The fabric gsm |
generatedBarcodeList.poNumber |
String | The po Number |
poBarcodeDetails
Type:
- Object
Properties:
| Name | Type | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
poBarcodeDetails.OC |
String | The OC number | ||||||||||||
poBarcodeDetails.custName |
String | The buyer name | ||||||||||||
poBarcodeDetails.styleNo |
String | The style number | ||||||||||||
poBarcodeDetails.styleDesc |
String | The style description | ||||||||||||
poBarcodeDetails.itemNo |
String | The item number | ||||||||||||
poBarcodeDetails.itemDesc |
String | The item description | ||||||||||||
poBarcodeDetails.name |
String | The name of the user who sent the request | ||||||||||||
poBarcodeDetails.tableData |
Array.<Object> | The array of barcode data that the user has entered
Properties
|
poItems
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
poItems.ITEMNO |
String | The item number |
poItems.ITEMDESC |
String | The item description |