Methods
(static) validateOcNumberFromSage(ocNumber, coid) → {Boolean}
Parameters:
| Name |
Type |
Description |
ocNumber |
String
|
The oc number |
coid |
String
|
The table header in MsSql |
Returns:
-
Type
-
Boolean
deleteOrderEnrtry(ocNumber, location) → {Number}
Parameters:
| Name |
Type |
Description |
ocNumber |
String
|
The oc number |
location |
String
|
The location |
Returns:
-
Type
-
Number
fetchAllFitTypes()
getFabricItems(ocNumber, coid) → {Array.<fabricItemSage>}
Parameters:
| Name |
Type |
Description |
ocNumber |
String
|
The oc number |
coid |
String
|
The table header in MsSql |
Returns:
-
Type
-
Array.<fabricItemSage>
getFabricItemsFromColor(ocNumber, coid) → {Array.<fabricItemSage>}
Parameters:
| Name |
Type |
Description |
ocNumber |
String
|
The oc number |
coid |
String
|
The table header in MsSql |
Returns:
The list of items returned from sage
-
Type
-
Array.<fabricItemSage>
getItems(ocNumber, location) → {itemDetails}
This method returns the items entered during order entry for an OC and Location
Parameters:
| Name |
Type |
Description |
ocNumber |
String
|
The oc number |
location |
String
|
The location |
Returns:
-
Type
-
itemDetails
getOrderDetails(ocNumber, location, itemCode, fitType) → {Object}
This method returns the order details entered as part of order entry
Parameters:
| Name |
Type |
Description |
ocNumber |
String
|
The oc number |
location |
String
|
The location |
itemCode |
String
|
The item code |
fitType |
String
|
The fit type |
Returns:
-
Type
-
Object
getOrderItemAndSizeList(ocNumber, location, fitType) → {Object}
This method returns the list of item codes and sizes entered as part of order entry
Parameters:
| Name |
Type |
Description |
ocNumber |
String
|
The oc number |
location |
String
|
The location |
fitType |
String
|
The fit type |
Returns:
-
Type
-
Object
insertOrderDetails(ocNumber, location, itemCode, itemDesc, fitType, approvedConsumption, sizeQuantities)
Parameters:
| Name |
Type |
Description |
ocNumber |
String
|
The oc number |
location |
String
|
The location |
itemCode |
String
|
The item code |
itemDesc |
String
|
The item description |
fitType |
String
|
The fit type |
approvedConsumption |
Number
|
The approved consumption |
sizeQuantities |
Object
|
The array of size quantites object module:repository/orders~sizeQuantities |
isOrderEntryPresent(ocNumber, location, fitType) → {Boolean}
This method checks if the order entry has been done for the below parameters
Parameters:
| Name |
Type |
Description |
ocNumber |
String
|
The oc number |
location |
String
|
The location |
fitType |
String
|
The fit type |
Returns:
-
Type
-
Boolean
Type Definitions
fabricItemSage
Type:
Properties:
| Name |
Type |
Description |
fabricItemSage.item |
String
|
A concatenated string of item code and item description |
itemDetails
Type:
Properties:
| Name |
Type |
Description |
itemsDetails.itemCode |
String
|
|
itemsDetails.itemDescription |
String
|
|
itemsDetails.fitType |
String
|
|
orderDetails
Type:
Properties:
| Name |
Type |
Description |
orderDetails.itemDescription |
String
|
|
orderDetails.approvedConsumption |
String
|
|
orderDetails.sizeQuantitiesList |
Array.<Object>
|
|
orderItemSize
Type:
Properties:
| Name |
Type |
Description |
orderItemSize.orderItemList |
Array.<String>
|
The array of item codes |
orderItemSize.orderSizeList |
Array.<String>
|
The array of sizes |
sizeQuantities
Type:
Properties:
| Name |
Type |
Description |
sizeQuantities.size |
String
|
The size of the garment |
sizeQuantities.quantity |
Number
|
The quantity associated with this size |