Members
getQtyofthesizeintheProductlable
This function is responsible to fetch Qty details based on po number and country size color
getQtyofthesizeintheProductlable
This function is responsible to fetch Qty details based on po number and country size color
Methods
(static) getBuyerPoFromSage(ocNumber, coid) → {Array.<String>}
Parameters:
| Name | Type | Description |
|---|---|---|
ocNumber |
String | The oc number |
coid |
String | The company database ID |
Returns:
ListOfBuyerPo The list of Buyer Po based on oc number
- Type
- Array.<String>
(static) getBuyerPoFromSage(ocNumber, coid) → {Array.<String>}
Parameters:
| Name | Type | Description |
|---|---|---|
ocNumber |
String | The oc number |
coid |
String | The company database ID |
Returns:
ListOfBuyerPo The list of Buyer Po based on oc number
- Type
- Array.<String>
getBuyerFromSage(ocList, coid) → {Array.<ListOfBuyerfromSage>}
This function is responsible to fetch buyer based on oc number from sage
Parameters:
| Name | Type | Description |
|---|---|---|
ocList |
Array.<ocListObject> | The list of product code |
coid |
String | The sage table header |
Returns:
ListOfSamsfromSage The list of sams based on oc number from sage module:repository/sage~ListOfProductSamsfromSage
- Type
- Array.<ListOfBuyerfromSage>
getBuyerFromSage(ocList, coid) → {Array.<ListOfBuyerfromSage>}
This function is responsible to fetch buyer based on oc number from sage
Parameters:
| Name | Type | Description |
|---|---|---|
ocList |
Array.<ocListObject> | The list of product code |
coid |
String | The sage table header |
Returns:
ListOfSamsfromSage The list of sams based on oc number from sage module:repository/sage~ListOfProductSamsfromSage
- Type
- Array.<ListOfBuyerfromSage>
getColoursFromSage(ocNumber, productCode, coid) → {Array.<colourList>}
This function is responsible to fetch product colours from sage
Parameters:
| Name | Type | Description |
|---|---|---|
ocNumber |
String | The oc number |
productCode |
String | The product code |
coid |
String | The company id for sage tables |
Returns:
List Of colour list from sage module:repository/sage~colourList
- Type
- Array.<colourList>
getColoursFromSage(ocNumber, productCode, coid) → {Array.<colourList>}
This function is responsible to fetch product colours from sage
Parameters:
| Name | Type | Description |
|---|---|---|
ocNumber |
String | The oc number |
productCode |
String | The product code |
coid |
String | The company id for sage tables |
Returns:
List Of colour list from sage module:repository/sage~colourList
- Type
- Array.<colourList>
getCountryDetailsForOrder(orderNumber) → {Array.<orderCountryDetails>}
This method returns the order details per country for an order number
Parameters:
| Name | Type | Description |
|---|---|---|
orderNumber |
String | The order number |
Returns:
The order details per country module:repository/sage~orderCountryDetails
- Type
- Array.<orderCountryDetails>
getCountryDetailsForOrder(orderNumber) → {Array.<orderCountryDetails>}
This method returns the order details per country for an order number
Parameters:
| Name | Type | Description |
|---|---|---|
orderNumber |
String | The order number |
Returns:
The order details per country module:repository/sage~orderCountryDetails
- Type
- Array.<orderCountryDetails>
getCountryFromPoNumber(ocNumber, poNumber, coid) → {Array.<String>}
This function is responsible to fetch Countries details based on po number
Parameters:
| Name | Type | Description |
|---|---|---|
ocNumber |
String | The oc number |
poNumber |
String | The list of Buyer PO numbers |
coid |
String | The company database ID |
Returns:
ListOfCountries The list of countries based on Buyer PO numbers
- Type
- Array.<String>
getCountryFromPoNumber(ocNumber, poNumber, coid) → {Array.<String>}
This function is responsible to fetch Countries details based on po number
Parameters:
| Name | Type | Description |
|---|---|---|
ocNumber |
String | The oc number |
poNumber |
String | The list of Buyer PO numbers |
coid |
String | The company database ID |
Returns:
ListOfCountries The list of countries based on Buyer PO numbers
- Type
- Array.<String>
getFabricOrderedQuantity(ocNumberList) → {Array.<orderedFabricDetails>}
This method returns the details of total fabric ordered for an order grouped by the unit of measure
Parameters:
| Name | Type | Description |
|---|---|---|
ocNumberList |
Array.<String> | The list of oc numbers associated with an order |
Returns:
The list of fabric ordered module:repository/sage~orderedFabricDetails
- Type
- Array.<orderedFabricDetails>
getFabricOrderedQuantity(ocNumberList) → {Array.<orderedFabricDetails>}
This method returns the details of total fabric ordered for an order grouped by the unit of measure
Parameters:
| Name | Type | Description |
|---|---|---|
ocNumberList |
Array.<String> | The list of oc numbers associated with an order |
Returns:
The list of fabric ordered module:repository/sage~orderedFabricDetails
- Type
- Array.<orderedFabricDetails>
getFabricReceivedForOrder(ocNumberList) → {Array.<orderFabricReceived>}
This method returns the details of fabric received for an order
Parameters:
| Name | Type | Description |
|---|---|---|
ocNumberList |
Array.<String> | The list of OC numbers associated with an order |
Returns:
The list of fabric received module:repository/sage~orderFabricReceived
- Type
- Array.<orderFabricReceived>
getFabricReceivedForOrder(ocNumberList) → {Array.<orderFabricReceived>}
This method returns the details of fabric received for an order
Parameters:
| Name | Type | Description |
|---|---|---|
ocNumberList |
Array.<String> | The list of OC numbers associated with an order |
Returns:
The list of fabric received module:repository/sage~orderFabricReceived
- Type
- Array.<orderFabricReceived>
getOcColoursFromSage(ocNumber, coid) → {Array.<productDetail>}
This function is responsible to fetch product colours from sage
Parameters:
| Name | Type | Description |
|---|---|---|
ocNumber |
String | The oc number to get product colour |
coid |
String | The company id for sage tables |
Returns:
List Of product detail includes colour code, colour name and order number from sage module:repository/sage~productDetail
- Type
- Array.<productDetail>
getOcColoursFromSage(ocNumber, coid) → {Array.<productDetail>}
This function is responsible to fetch product colours from sage
Parameters:
| Name | Type | Description |
|---|---|---|
ocNumber |
String | The oc number to get product colour |
coid |
String | The company id for sage tables |
Returns:
List Of product detail includes colour code, colour name and order number from sage module:repository/sage~productDetail
- Type
- Array.<productDetail>
getOcDetailsFromSage(ocNumber, coid) → {Array.<Object>}
This function is responsible for getting PO Numbers of the OC Number
and grouping data based on similar poNumber, Country, and color,
providing Size and Order_Qty as sub-objects within each group.
Parameters:
| Name | Type | Description |
|---|---|---|
ocNumber |
String | The OC number |
coid |
String | The company database ID |
Returns:
List of grouped data with Size and Order_Qty as sub-objects
- Type
- Array.<Object>
getOcDetailsFromSage(ocNumber, coid) → {Array.<Object>}
This function is responsible for getting PO Numbers of the OC Number
and grouping data based on similar poNumber, Country, and color,
providing Size and Order_Qty as sub-objects within each group.
Parameters:
| Name | Type | Description |
|---|---|---|
ocNumber |
String | The OC number |
coid |
String | The company database ID |
Returns:
List of grouped data with Size and Order_Qty as sub-objects
- Type
- Array.<Object>
getOCNumbersAssociated(orderNumber) → {Array.<String>}
This method returns the list of OC numbers associated with an order number
Parameters:
| Name | Type | Description |
|---|---|---|
orderNumber |
String | The order number |
Returns:
The list of OC numbers associated with the order number
- Type
- Array.<String>
getOCNumbersAssociated(orderNumber) → {Array.<String>}
This method returns the list of OC numbers associated with an order number
Parameters:
| Name | Type | Description |
|---|---|---|
orderNumber |
String | The order number |
Returns:
The list of OC numbers associated with the order number
- Type
- Array.<String>
getProductSamsFromSage(ocProductList) → {Array.<ListOfProductSamsfromSage>}
This function is responsible to fetch sam based product code from sage
Parameters:
| Name | Type | Description |
|---|---|---|
ocProductList |
Array.<String> | The list of product code |
Returns:
ListOfSamsfromSage The list of sams based on oc number from sage module:repository/sage~ListOfProductSamsfromSage
- Type
- Array.<ListOfProductSamsfromSage>
getProductSamsFromSage(ocProductList) → {Array.<ListOfProductSamsfromSage>}
This function is responsible to fetch sam based product code from sage
Parameters:
| Name | Type | Description |
|---|---|---|
ocProductList |
Array.<String> | The list of product code |
Returns:
ListOfSamsfromSage The list of sams based on oc number from sage module:repository/sage~ListOfProductSamsfromSage
- Type
- Array.<ListOfProductSamsfromSage>
getProductsFromSage(ocNumber, coid) → {Array.<productList>}
This function is responsible to fetch products from sage
Parameters:
| Name | Type | Description |
|---|---|---|
ocNumber |
String | The oc number to get product |
coid |
String | The company id for sage DB server |
Returns:
List Of product from sage module:repository/sage~productList
- Type
- Array.<productList>
getProductsFromSage(ocNumber, coid) → {Array.<productList>}
This function is responsible to fetch products from sage
Parameters:
| Name | Type | Description |
|---|---|---|
ocNumber |
String | The oc number to get product |
coid |
String | The company id for sage DB server |
Returns:
List Of product from sage module:repository/sage~productList
- Type
- Array.<productList>
getProductsFromSage(ocNumber, coid) → {Array.<productList>}
This function is responsible to fetch products from sage
Parameters:
| Name | Type | Description |
|---|---|---|
ocNumber |
String | The oc number to get product |
coid |
String | The company id for sage DB server |
Returns:
List Of product from sage module:repository/sage~productList
- Type
- Array.<productList>
getSageFromToLocation(ocNumberList) → {Array.<orderedFabricDetails>}
This method returns the details of total fabric ordered for an order grouped by the unit of measure
Parameters:
| Name | Type | Description |
|---|---|---|
ocNumberList |
Array.<String> | The list of oc numbers associated with an order |
Returns:
The list of fabric ordered module:repository/sage~orderedFabricDetails
- Type
- Array.<orderedFabricDetails>
getSamsFromSage(ocNumberArrayList) → {Array.<ListOfSamsfromSage>}
Parameters:
| Name | Type | Description |
|---|---|---|
ocNumberArrayList |
Array.<String> | The list of oc number |
Returns:
ListOfSamsfromSage The list of sams based on oc number from sage module:repository/sage~ListOfSamsfromSage
- Type
- Array.<ListOfSamsfromSage>
getSamsFromSage(ocNumberArrayList) → {Array.<ListOfSamsfromSage>}
Parameters:
| Name | Type | Description |
|---|---|---|
ocNumberArrayList |
Array.<String> | The list of oc number |
Returns:
ListOfSamsfromSage The list of sams based on oc number from sage module:repository/sage~ListOfSamsfromSage
- Type
- Array.<ListOfSamsfromSage>
getSeasonBasedOnOcFromSage(ocNumber, coid) → {Array.<seasonDetailsList>}
This function is responsible to fetch season details based on oc number
Parameters:
| Name | Type | Description |
|---|---|---|
ocNumber |
String | The oc number to get product |
coid |
String | The company id for sage DB |
Returns:
List Of seasonDetails from sage module:repository/sage~seasonDetailsList
- Type
- Array.<seasonDetailsList>
getSeasonBasedOnOcFromSage(ocNumber, coid) → {Array.<seasonDetailsList>}
This function is responsible to fetch season details based on oc number
Parameters:
| Name | Type | Description |
|---|---|---|
ocNumber |
String | The oc number to get product |
coid |
String | The company id for sage DB |
Returns:
List Of seasonDetails from sage module:repository/sage~seasonDetailsList
- Type
- Array.<seasonDetailsList>
validateColourFromSage(ocNumber, productCode, colourCode, coid) → {Boolean}
This function is responsible to validate colour of product from sage
Parameters:
| Name | Type | Description |
|---|---|---|
ocNumber |
String | The oc number |
productCode |
String | The product code |
colourCode |
String | The colour code |
coid |
String | The company id for sage tables |
Returns:
- Type
- Boolean
validateColourFromSage(ocNumber, productCode, colourCode, coid) → {Boolean}
This function is responsible to validate colour of product from sage
Parameters:
| Name | Type | Description |
|---|---|---|
ocNumber |
String | The oc number |
productCode |
String | The product code |
colourCode |
String | The colour code |
coid |
String | The company id for sage tables |
Returns:
- Type
- Boolean
validateFabricItemCodeInSage(itemCode) → {Boolean}
This method is responsible to validate the existence of fabric item Code in sage
Parameters:
| Name | Type | Description |
|---|---|---|
itemCode |
String | The fabric item code to validate in sage |
Returns:
- Type
- Boolean
validateFabricItemCodeInSage(itemCode) → {Boolean}
This method is responsible to validate the existence of fabric item Code in sage
Parameters:
| Name | Type | Description |
|---|---|---|
itemCode |
String | The fabric item code to validate in sage |
Returns:
- Type
- Boolean
validateOcNumberFromSage(ocNumber, coid) → {Boolean}
This function is responsible to validate oc number from sage
Parameters:
| Name | Type | Description |
|---|---|---|
ocNumber |
String | The oc number |
coid |
String | The company id for sage tables |
Returns:
- Type
- Boolean
validateOcNumberFromSage(ocNumber, coid) → {Boolean}
This function is responsible to validate oc number from sage
Parameters:
| Name | Type | Description |
|---|---|---|
ocNumber |
String | The oc number |
coid |
String | The company id for sage tables |
Returns:
- Type
- Boolean
validateProductFromSage(ocNumber, productCode, coid) → {Boolean}
This function is responsible to validate product from sage
Parameters:
| Name | Type | Description |
|---|---|---|
ocNumber |
String | The oc number |
productCode |
String | The product code |
coid |
String | The company id for sage tables |
Returns:
- Type
- Boolean
validateProductFromSage(ocNumber, productCode, coid) → {Boolean}
This function is responsible to validate product from sage
Parameters:
| Name | Type | Description |
|---|---|---|
ocNumber |
String | The oc number |
productCode |
String | The product code |
coid |
String | The company id for sage tables |
Returns:
- Type
- Boolean
Type Definitions
colourList
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
colourList.colourCode |
String | The colour code |
colourList.colourDescription |
String | The colour description |
colourList
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
colourList.colourCode |
String | The colour code |
colourList.colourDescription |
String | The colour description |
ListOfBuyerfromSage
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
ListOfBuyerfromSage.productCode |
String | The product code associated with oc number |
ListOfBuyerfromSage.sam |
number | The sam for oc number |
ListOfBuyerfromSage
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
ListOfBuyerfromSage.productCode |
String | The product code associated with oc number |
ListOfBuyerfromSage.sam |
number | The sam for oc number |
ListOfProductSamsfromSage
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
ListOfProductSamsfromSage.productCode |
String | The product code associated with oc number |
ListOfProductSamsfromSage.sam |
number | The sam for oc number |
ListOfProductSamsfromSage.globalSam |
number | The global sam for oc number |
ListOfProductSamsfromSage
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
ListOfProductSamsfromSage.productCode |
String | The product code associated with oc number |
ListOfProductSamsfromSage.sam |
number | The sam for oc number |
ListOfProductSamsfromSage.globalSam |
number | The global sam for oc number |
ListOfSamsfromSage
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
ListOfSamsfromSage.ocNumber |
String | The oc number |
ListOfSamsfromSage.sam |
number | The sam for oc number |
ListOfSamsfromSage.globalSam |
number | The global sam for oc number |
ListOfSamsfromSage
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
ListOfSamsfromSage.ocNumber |
String | The oc number |
ListOfSamsfromSage.sam |
number | The sam for oc number |
ListOfSamsfromSage.globalSam |
number | The global sam for oc number |
ocListObject
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
ocListObject.ocNumber |
String | The oc number |
ocListObject
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
ocListObject.ocNumber |
String | The oc number |
orderCountryDetails
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
orderCountryDetails.countryCode |
String | The country code |
orderCountryDetails.countryName |
String | The country name |
orderCountryDetails.quantity |
Number | The order quantity for the country |
orderCountryDetails.orderDate |
Number | The order date in YYYYMMDD format |
orderCountryDetails
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
orderCountryDetails.countryCode |
String | The country code |
orderCountryDetails.countryName |
String | The country name |
orderCountryDetails.quantity |
Number | The order quantity for the country |
orderCountryDetails.orderDate |
Number | The order date in YYYYMMDD format |
orderedFabricDetails
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
orderedFabricDetails.quantity |
Number | The quantity of fabric ordered |
orderedFabricDetails.unitOfMeasure |
String | The unit of measure |
orderedFabricDetails
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
orderedFabricDetails.quantity |
Number | The quantity of fabric ordered |
orderedFabricDetails.unitOfMeasure |
String | The unit of measure |
orderedFabricDetails
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
orderedFabricDetails.quantity |
Number | The quantity of fabric ordered |
orderedFabricDetails.unitOfMeasure |
String | The unit of measure |
orderFabricReceived
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
orderFabricReceived.quantity |
Number | The quantity of fabric received |
orderFabricReceived.unitOfMeasure |
String | The unit of measure |
orderFabricReceived.dateOfReceipt |
Number | The date of receipt in YYYYMMDD format |
orderFabricReceived
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
orderFabricReceived.quantity |
Number | The quantity of fabric received |
orderFabricReceived.unitOfMeasure |
String | The unit of measure |
orderFabricReceived.dateOfReceipt |
Number | The date of receipt in YYYYMMDD format |
packingAnalytics
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
packingAnalytics.productCode |
String | The product Code |
packingAnalytics.cutQty |
String | The cut quantity |
packingAnalytics
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
packingAnalytics.productCode |
String | The product Code |
packingAnalytics.finishedQty |
String | The oc number |
productDetail
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
productDetail.colourCode |
String | The color code of product |
productDetail.colourName |
String | The color name of product |
productDetail.orderNumber |
String | The order number of product |
productDetail
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
productDetail.colourCode |
String | The color code of product |
productDetail.colourName |
String | The color name of product |
productDetail.orderNumber |
String | The order number of product |
productList
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
productList.productCode |
String | The product code |
productList.productDescription |
String | The product description |
productList.orderQuantity |
number | The order quantity for product |
productList.styleNumber |
String | The style number |
productList.styleDescription |
String | The style description |
productList.buyerName |
String | The buyer name |
productList
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
productList.productCode |
String | The product code |
productList.productDescription |
String | The product description |
productList.orderQuantity |
number | The order quantity for product |
productList.styleNumber |
String | The style number |
productList.styleDescription |
String | The style description |
productList.buyerName |
String | The buyer name |
productList
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
productList.productCode |
String | The product code |
productList.productDescription |
String | The product description |
productList.orderQuantity |
number | The order quantity for product |
productList.styleNumber |
String | The style number |
productList.styleDescription |
String | The style description |
productList.buyerName |
String | The buyer name |
productList
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
productList.productCode |
String | The product code |
productList.productDescription |
String | The product description |
productList.orderQuantity |
number | The order quantity for product |
productList.styleNumber |
String | The style number |
productList.styleDescription |
String | The style description |
productList.buyerName |
String | The buyer name |
seasonDetailsList
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
seasonDetailsList.seasonCode |
String | The season code |
seasonDetailsList.seasonDescription |
String | The season description |
seasonDetailsList
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
seasonDetailsList.seasonCode |
String | The season code |
seasonDetailsList.seasonDescription |
String | The season description |