Express router defining routes for layslip routes
Methods
(static) get/fabcut/cutting/orders/:OC() → {Object}
Route for checking if the OC number entered by the user is valid in MsSql DB
Parameters:
| Name |
Type |
Description |
req.params.OC |
String
|
The OC number that the user enters |
Returns:
-
Type
-
Object
(static) get/fabcut/cutting/orders/location/:location/oc/:OC/orderProgressDetails() → {Object}
Route for getting order progress details based on OC number and Location
Parameters:
| Name |
Type |
Description |
req.params.location |
String
|
The Location that the user enters |
req.params.OC |
String
|
The OC number that the user enters |
Returns:
-
Type
-
Object
(static) get/fabcut/cutting/orders/orderDetails() → {Object}
Route for getting order details based on OC number, Location, Item Code and Fit Type
Parameters:
| Name |
Type |
Description |
req.query.ocNumber |
String
|
The OC number that the user enters |
req.query.itemCode |
String
|
The Item Code that the user enters |
req.query.location |
String
|
The Location that the user enters |
req.query.fitType |
String
|
The Fit Type that the user enters |
Returns:
-
Type
-
Object
(static) post/fabcut/cutting/orders/:OC() → {Boolean}
Route to update order quantities from web UI based on combination of oc and item code / fit type
Parameters:
| Name |
Type |
Description |
req.params.OC |
String
|
The OC number that the user enters |
req.body.location |
String
|
The location selected |
req.body.itemCode |
String
|
The item code selected |
req.body.itemDescription |
String
|
The item description selected |
req.body.fitType |
String
|
The fit type selected |
req.body.approvedConsumption |
String
|
The approved consumption entered by end-user |
req.body.sizeQuantities |
Array.<Object>
|
The size quantities sent from the client module:routers/v8/fabcut/cutting/orders~sizeQuantities |
Returns:
returns boolean
-
Type
-
Boolean
Type Definitions
fetchItemLocationDetails
Type:
Properties:
| Name |
Type |
Description |
fetchItemLocationDetails.items |
Array.<String>
|
The items array |
fetchItemLocationDetails.locations |
Array.<locationDetailsList>
|
The array of location module:routers/v8/fabcut/cutting/orders~locationDetailsList
Properties
| Name |
Type |
Description |
location |
String
|
The location name |
|
fetchItemLocationDetails.fitTypes |
Array.<String>
|
The array of fit type |
locationDetailsList
Type:
Properties:
| Name |
Type |
Description |
locationDetailsList.location |
String
|
The location |
locationDetailsList.locationName |
String
|
The location name |
locationDetailsList.locationType |
LocationTypeEnum
|
The location type |
orderDetails
Type:
Properties:
| Name |
Type |
Description |
orderDetails.ocNumber |
String
|
The OC Number |
orderDetails.itemCode |
String
|
The items array |
orderDetails.location |
String
|
The location name |
orderDetails.fitType |
String
|
The fit type of garment |
orderDetails.itemDescription |
String
|
The item description |
orderDetails.approvedConsumption |
Number
|
The approved consumption |
orderDetails.sizeQuantitiesList |
Array.<Object>
|
The array of objects which contains size and quantity |
orderProgressDetails
Type:
Properties:
| Name |
Type |
Description |
orderProgressDetails.orders |
Array.<orders>
|
An array of objects which contains item code, item description and fit type |
orderProgressDetails.parts |
Boolean
|
A boolean which tells whether parts names were uploaded for this OC Number and Location combination |
orderProgressDetails.techPack |
Array.<techPack>
|
An array of objects which contains product code, product description for products which have their tech packs uploaded |
orders
Type:
Properties:
| Name |
Type |
Description |
orders.itemCode |
String
|
The item code |
orders.itemDescription |
String
|
the item description |
orders.fitType |
String
|
the fit type |
sizeQuantities
Type:
Properties:
| Name |
Type |
Description |
sizeQuantities.size |
String
|
The size of the garment |
sizeQuantities.quantity |
Number
|
The quantity associated with this size |
techPack
Type:
Properties:
| Name |
Type |
Description |
techPack.productCode |
String
|
|
techPack.productDescription |
String
|
|