Express router for tablet app related routes
Methods
(static) get/fabcut/cutting/ratios/:marker() → {ratioDetails}
The route to fetch the marker details for a valid marker based on the unique marker id
Parameters:
| Name |
Type |
Description |
req.params.marker |
String
|
The marker unique id |
Returns:
-
Type
-
ratioDetails
(static) get/fabcut/cutting/ratios/:ocNo/fitTypes() → {Array.<String>}
The route to fetch fit types under an OC at a given location
Parameters:
| Name |
Type |
Description |
req.params.ocNo |
String
|
The OC number |
req.query.location |
String
|
The location of the device. |
Returns:
Returns a string array of fit types
-
Type
-
Array.<String>
(static) get/fabcut/cutting/ratios/markers/:ocNo() → {Array.<markerDetails>}
The route to fetch markers and item details under an OC and fit type
Parameters:
| Name |
Type |
Description |
req.query.fitType |
String
|
The fit type of the garment |
req.params.ocNo |
String
|
The OC number |
req.query.location |
String
|
The location of the device. |
Returns:
-
Type
-
Array.<markerDetails>
(static) post/fabcut/cutting/ratios/:fromOC/clone() → {Boolean}
The route to replicate(clone) marker along with ratios from one OC to another OC number
Parameters:
| Name |
Type |
Description |
req.params.fromOC |
String
|
The source OC number whose markers are to be replicated |
req.body.toOC |
String
|
The target oc number |
req.body.orderQuantity |
Number
|
The order quantity for the target OC number |
Returns:
-
Type
-
Boolean
Type Definitions
markerDetails
Type:
Properties:
| Name |
Type |
Description |
markerDetails.markerUnique |
String
|
The unique marker id |
markerDetails.shrinkage |
String
|
The shrinkage of the garments |
markerDetails.items |
Array.<Object>
|
The array with item details
Properties
| Name |
Type |
Description |
itemCode |
String
|
The item code of the garment |
itemDesc |
String
|
The item description |
|
ratioDetails
Type:
Properties:
| Name |
Type |
Description |
items |
Array.<Object>
|
The items under this marker
Properties
| Name |
Type |
Description |
itemDesc |
String
|
The item description |
itemCode |
String
|
The item code |
|
custName |
String
|
The customer name |
styleNo |
String
|
The style number |
sizeQtys |
Array.<Object>
|
The size and associated quantities
Properties
| Name |
Type |
Description |
size |
String
|
The size |
qty |
Number
|
The quantity associated with each size |
|
ratios |
Array.<Object>
|
The ratios associated with this style
Properties
| Name |
Type |
Description |
ratioNumber |
Number
|
The number indicating the order of the ratio object |
size |
String
|
The size associated with the ratio object |
ratio |
Number
|
The ratio associated with the ratio object |
ratioQty |
Number
|
The quantity of garments for the ratio object and ratio |
|
layLengths |
Array.<Object>
|
The array of objects containing ratio number and lay lengths
Properties
| Name |
Type |
Description |
ratioNumber |
Number
|
The ratio number |
layLength |
Number
|
The lay length associated with the ratio number |
|