Module: routers/v8/analytics/fabric

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:
The array of objects that is returned module:routers/v8/analytics/fabric~fabricDetails
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/received() → {stockSummaryDetails}

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:
The summaryDetails that is returned module:routers/v8/analytics/fabric~stockSummaryDetails
Type
stockSummaryDetails

(static) get/analytics/fabric/received() → {receivedSummaryDetails}

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:
The summaryDetails that is returned module:routers/v8/analytics/fabric~receivedSummaryDetails
Type
receivedSummaryDetails

(static) get/analytics/fabric/received() → {utilizedSummaryDetails}

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:
The summaryDetails that is returned module:routers/v8/analytics/fabric~utilizedSummaryDetails
Type
utilizedSummaryDetails

(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:
The summaryDetails that is returned module:routers/v8/analytics/fabric~summaryDetails
Type
summaryDetails

Type Definitions

fabricDetails

Type:
  • Object
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:
  • Object
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:
  • Object
Properties:
Name Type Description
locationStock.locationStock.location String The location
locationStock.locationStock.quantity Number The quantity associated with location

locationStock

Type:
  • Object
Properties:
Name Type Description
locationStock.locationStock.location String The location
locationStock.locationStock.quantity Number The quantity associated with location

locationStock

Type:
  • Object
Properties:
Name Type Description
locationStock.locationStock.location String The location
locationStock.locationStock.quantity Number The quantity associated with location

locationStock

Type:
  • Object
Properties:
Name Type Description
locationStock.locationStock.location String The location
locationStock.locationStock.quantity Number The quantity associated with location

receivedSummaryDetails

Type:
  • Object
Properties:
Name Type Description
summaryDetails.totalReceivedQuantity Number The total received quantity

stockSummaryDetails

Type:
  • Object
Properties:
Name Type Description
summaryDetails.totalReceivedQuantity Number The total received quantity

summaryDetails

Type:
  • Object
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/v8/analytics/fabric~locationStock

utilizedSummaryDetails

Type:
  • Object
Properties:
Name Type Description
summaryDetails.totalReceivedQuantity Number The total received quantity