Module: routers/v7/fabstitch/defect

Methods

(static) get/fabstitch/defect/batch/:batchNumber/techPack() → {String}

Route to fetch tech pack
Parameters:
Name Type Description
req.params.batchNumber String The batch number
req.query.ocNumber String The oc number in the batch
req.query.product String The product in the batch
req.query.fitType String The product fit type in the batch
req.query.size String The size in the batch
req.query.location String The location of the batch
req.query.colourCode String The colour code of product
Returns:
The techPack base64
Type
String

(static) get/fabstitch/defect/batch/:batchNumber/validate() → {DHUDetails}

Route to validate oc number, product, colour, fitType, size and return DHU details(i.e, approvedQuantity, reworkedQuantity, rejectedQuantity, topDefect)
Parameters:
Name Type Description
req.params.batchNumber String The batch number
req.query.ocNumber String The oc number in the batch
req.query.product String The product in the batch
req.query.fitType String The product fit type in the batch
req.query.size String The size in the batch
req.query.location String The location of the batch
req.query.colourCode String The colour code of product
Returns:
Type
DHUDetails

(static) get/fabstitch/defect/categories() → {Array.<categoryDetails>}

Route to return the list of defect categories
Returns:
List of defect category details module:routers/v7/fabstitch/defect~categoryDetails
Type
Array.<categoryDetails>

(static) get/fabstitch/defect/product/:productCode/techPack() → {String}

Route to get product master techPack
Parameters:
Name Type Description
req.params.productCode String The product code
req.body.ocNumber String The oc number for product code
req.body.location String The location
Returns:
The techPack base64
Type
String

(static) post/fabstitch/defect/batch/:batchNumber/product/colour/size(categoryDetails) → {Boolean}

Route to post batch-wise defect details
Parameters:
Name Type Description
req.params.batchNumber String The batch number
req.body.location String The location of the batch
req.body.ocNumber String The oc number in the batch
req.body.productCode String The product code in the batch
req.body.productDescription String The product description
req.body.colourCode String The colour code in the batch
req.body.colourDescription String The colour description in the batch
req.body.fitType String The fit type of product
req.body.techPack String | null The techPack
req.body.size String The size of product
req.body.quantity String The quantity
req.body.status DHUStatusEnum The DHU status (i.e, Approved/Rework/Rejected)
categoryDetails Array.<categoryDetailsList> The list of category details module:routers/v7/fabstitch/defect~categoryDetailsList
Returns:
The boolean status
Type
Boolean

(static) post/fabstitch/defect/product/:productCode/techPack() → {Boolean}

Route to post product techPack
Parameters:
Name Type Description
req.params.productCode String The product code
req.body.ocNumber String The oc number for product code
req.body.location String The location
req.body.productDescription String The product description
req.body.productTechPack String The techPack for product code
Returns:
The boolean status
Type
Boolean

Type Definitions

categoryDetails

Type:
  • Object
Properties:
Name Type Description
categoryDetails.category String The defect category
categoryDetails.defectType Array.<String> The list defect type associated with category

categoryDetailsList

Type:
  • Object
Properties:
Name Type Description
categoryDetailsList.category String The defect category in the batch
categoryDetailsList.defectType String The defect type in the batch

DHUDetails

Type:
  • Object
Properties:
Name Type Description
DHUDetails.approvedQuantity Number The approved quantity
DHUDetails.reworkedQuantity Number The rework quantity
DHUDetails.rejectedQuantity Number The rejected quantity
DHUDetails.topDefect String The top defect