Express router for barcode related routes
Methods
(static) get/analytics/fabric() → {Array.<Object>}
Route for searching fabric details based on PO number, OC number, Style description, Item code
Parameters:
| Name |
Type |
Description |
req.query.poNum |
String
|
fetch fabric details by PO number |
req.query.ocNum |
String
|
fetch fabric details by OC number |
req.query.styleDescription |
String
|
fetch fabric details by style |
Returns:
-
Type
-
Array.<Object>
(static) get/analytics/fabric/itemCode() → {Object}
Route for fetching the DC , MIR, adjustment and location wise stock information related to a specific item of fabric
Parameters:
| Name |
Type |
Description |
req.query.itemCode |
String
|
|
Returns:
-
Type
-
Object
(static) get/analytics/fabric/summary() → {summaryDetails}
Route to fetch fabric stock summary based on PO number or OC number
Parameters:
| Name |
Type |
Description |
req.query.poNumber |
String
|
fetch fabric details by PO number |
req.query.ocNumber |
String
|
fetch fabric details by OC number |
Returns:
-
Type
-
summaryDetails
Type Definitions
fabricDetails
Type:
Properties:
| Name |
Type |
Description |
itemDesc |
String
|
The description of item |
itemCode |
String
|
The item code |
poNumber |
String
|
The PO number |
ocNumber |
String
|
The OC number |
fabricLocationinfo
Type:
Properties:
| Name |
Type |
Description |
ordered |
Number
|
The order quantity of item code |
mirInfo |
Array.<Object>
|
The MIR information for item code
Properties
| Name |
Type |
Description |
number |
String
|
The MIR number |
date |
number
|
The MIR number date in YYYYMMDD format |
location |
String
|
The location MIR posted |
quantity |
Number
|
The MIR quantity posted |
|
dcInfo |
Array.<Object>
|
The location wise DC(transfer) information
Properties
| Name |
Type |
Description |
date |
number
|
The DC transfer date in YYYYMMDD format |
fromLocation |
String
|
The DC transfer from location |
toLocation |
String
|
The DC transfer to location |
quantity |
number
|
The DC transfer quantity |
|
locationStock |
Array.<Object>
|
The stock location wise information
Properties
| Name |
Type |
Description |
location |
String
|
The location stock exist |
quantity |
number
|
The stock quantity for mentioned location |
|
adjustmentInfo |
Array.<Object>
|
The stock adjustment from one itemCode to another itemCode information
Properties
| Name |
Type |
Description |
documentNumber |
String
|
The stock adjustment number |
itemCode |
String
|
The stock effected to/from itemCode |
quantity |
number
|
The stock adjusted quantity |
adjustmentType |
String
|
The adjustment type(stock increase / stock decrease) |
|
locationStock
Type:
Properties:
| Name |
Type |
Description |
locationStock.locationStock.location |
String
|
The location |
locationStock.locationStock.quantity |
Number
|
The quantity associated with location |
summaryDetails
Type:
Properties:
| Name |
Type |
Description |
summaryDetails.totalOrderQuantity |
Number
|
The total order quantity |
summaryDetails.totalReceivedQuantity |
Number
|
The total received quantity |
summaryDetails.totalPendingQuantity |
Number
|
The total pending quantity |
summaryDetails.locationStock |
Array.<locationStock>
|
The list of location stock module:routers/v7/analytics/fabric~locationStock |