Express router defining routes for layslip routes
Methods
(static) delete/fabcut/marker/ratios/:markerUnique() → {Boolean}
Route to reomve a marker from the MySQL DB(API call from marker google sheet)
Parameters:
| Name | Type | Description |
|---|---|---|
req.params.markerUnique |
String | The google sheet unique ID |
Returns:
- Type
- Boolean
(static) get/fabcut/marker/ratios/:OC()
Route for checking if the OC number entered by the user is valid in MySQL DB
Parameters:
| Name | Type | Description |
|---|---|---|
req.params.OC |
String | The OC number that the user entered |
(static) post/fabcut/marker/ratios/:OC() → {Boolean}
Route for posting a marker and updating the MySQL DB with the OC and ratio details
Parameters:
| Name | Type | Description | |||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
req.params.OC |
String | The OC number from marker layout google sheet | |||||||||||||||||||||||||||
req.body.items |
Array.<Object> | The Items array object: {ItemNo, ItemDesc} | |||||||||||||||||||||||||||
req.body.custName |
String | The customer name | |||||||||||||||||||||||||||
req.body.styleNo |
String | The style number/name | |||||||||||||||||||||||||||
req.body.shrinkage |
String | The fabric shrinkage | |||||||||||||||||||||||||||
req.body.fitType |
String | The fit type | |||||||||||||||||||||||||||
req.body.approvedConsumption |
Number | The approved consumption | |||||||||||||||||||||||||||
req.body.factoryLocation |
String | The location of the factory | |||||||||||||||||||||||||||
req.body.sheetLink |
String | The link to the Google Sheet that will be attached to the email | |||||||||||||||||||||||||||
req.body.mailComment |
String | User entered comment to be attached to the body of the email | |||||||||||||||||||||||||||
req.body.markerUnique |
String | The unique marker google id | |||||||||||||||||||||||||||
req.body.sizeRatioDetails |
Array.<Object> | The size and ratio details
Properties
|
Returns:
- Type
- Boolean