Module: routers/v8/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
req.body.orderType OrdertatusEnum The order type (i.e, inhouse/jobwork)
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
req.query.orderType OrdertatusEnum The order type (i.e, inhouse/jobwork)
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/v8/fabstitch/defect~categoryDetails
Type
Array.<categoryDetails>

(static) get/fabstitch/defect/detail/location/:location() → {DHUDetailsResponse}

Route to get dhu details associated with location and batch
Parameters:
Name Type Description
req.params.location String The location
req.query.batchNumber String The batch number associated with location
Returns:
DHUDetailsResponse The DHU details module:routers/v8/fabstitch/defect~DHUDetailsResponse
Type
DHUDetailsResponse

(static) get/fabstitch/defect/location/:location/batchNumber/:batchNumber() → {DHUDefectDetailsResponse}

Route to fetch dhu defect details for day associated with location and batch
Parameters:
Name Type Description
req.params.location String The location
req.query.batchNumber String The batch number associated with location
Returns:
Type
DHUDefectDetailsResponse

(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) get/fabstitch/defect/product/qrCode/:qrCode() → {qrCodeDetails}

Route to get product qr code details
Parameters:
Name Type Description
req.params.qrCode String The product qr code
Returns:
qrCodeDetails The qr code details module:routers/v8/fabstitch/defect~qrCodeDetails
Type
qrCodeDetails

(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)
req.body.orderType OrdertatusEnum The order type (i.e, inhouse/jobwork) * @param {string} req.body.poNumber The po Number
req.body.country string The country
categoryDetails Array.<categoryDetailsList> The list of category details module:routers/v8/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

(static) post/fabstitch/defect/product/qrCode/:qrCode(categoryDetails) → {DHUDetailsResponse}

Route to post DHU details based on product qr code details
Parameters:
Name Type Description
req.params.qrCode String The product qr code
req.body.location String The location
req.body.batchNumber String The batch number associated with location
req.body.techPack String | null The techPack
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/v8/fabstitch/defect~categoryDetailsList
Returns:
DHUDetailsPostResponse The DHu details on post module:routers/v8/fabstitch/defect~DHUDetailsResponse
Type
DHUDetailsResponse

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

DHUDefectDetailsResponse

Type:
  • Object
Properties:
Name Type Description
DHUDefectDetailsResponse.ocNumber String The oc number
DHUDefectDetailsResponse.productCode String The product code
DHUDefectDetailsResponse.productDescription String The product description
DHUDefectDetailsResponse.colourCode String The colour code
DHUDefectDetailsResponse.colourDescription String The colour description
DHUDefectDetailsResponse.fitType String The fit type
DHUDefectDetailsResponse.size String The size
DHUDefectDetailsResponse.quantity number The quantity
DHUDefectDetailsResponse.defectType String The defect type to reject
DHUDefectDetailsResponse.entryDate String The rework entry date in format (dd-mm-yyyy)

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

DHUDetailsResponse

Type:
  • Object
Properties:
Name Type Description
DHUDetailsResponse.topDefect String The top defect
DHUDetailsResponse.passedDHUDetails Array.<passedDHUDetails> The DHU passed details module:routers/v8/fabstitch/defect~passedDHUDetails
DHUDetailsResponse.reworkDHUDetails Array.<reworkDHUDetails> The DHU rework details module:routers/v8/fabstitch/defect~reworkDHUDetails
DHUDetailsResponse.rejectedDHUDetails Array.<rejectedDHUDetails> The DHU rejected details module:routers/v8/fabstitch/defect~rejectedDHUDetails

passedDHUDetails

Type:
  • Object
Properties:
Name Type Description
passedDHUDetails.ocNumber String The oc number
passedDHUDetails.productCode String The product code
passedDHUDetails.productDescription String The product description
passedDHUDetails.colourCode String The colour code
passedDHUDetails.colourDescription String The colour description
passedDHUDetails.fitType String The fit type
passedDHUDetails.size String The size
passedDHUDetails.quantity number The quantity

qrCodeDetails

Type:
  • Object
Properties:
Name Type Description
qrCodeDetails.location String The location
qrCodeDetails.ocNumber String The oc Number
qrCodeDetails.productCode String The product code
qrCodeDetails.productDescription String The product description
qrCodeDetails.colourCode String The colour code
qrCodeDetails.colourDescription String The colour description
qrCodeDetails.fitType String The fit Type
qrCodeDetails.size String The size
qrCodeDetails.orderType String The order type (i.e, inhouse/jobwork)

rejectedDHUDetails

Type:
  • Object
Properties:
Name Type Description
rejectedDHUDetails.ocNumber String The oc number
rejectedDHUDetails.productCode String The product code
rejectedDHUDetails.productDescription String The product description
rejectedDHUDetails.colourCode String The colour code
rejectedDHUDetails.colourDescription String The colour description
rejectedDHUDetails.fitType String The fit type
rejectedDHUDetails.size String The size
rejectedDHUDetails.quantity number The quantity
rejectedDHUDetails.productQrCode String The product QR code

reworkDHUDetails

Type:
  • Object
Properties:
Name Type Description
reworkDHUDetails.ocNumber String The oc number
reworkDHUDetails.productCode String The product code
reworkDHUDetails.productDescription String The product description
reworkDHUDetails.colourCode String The colour code
reworkDHUDetails.colourDescription String The colour description
reworkDHUDetails.fitType String The fit type
reworkDHUDetails.size String The size
reworkDHUDetails.quantity number The quantity
reworkDHUDetails.productQrCode String The product QR code
reworkDHUDetails.defectType String The defect type to reject
reworkDHUDetails.entryDate String The rework entry date in format (dd-mm-yyyy)