Methods
deleteDefectOcProduct(ocNumber, location) → {number}
This function is responsible to delete defect OC and product associated to location
Parameters:
| Name | Type | Description |
|---|---|---|
ocNumber |
String | The oc number of product code |
location |
String | The location |
Returns:
The records affected
- Type
- number
getDefectCategoriesList() → {Array.<categoryDetails>}
This function is responsible to fetch list of defect type associated with categories
Returns:
List of defect category details module:fabstitch/repository/defect~categoryDetails
- Type
- Array.<categoryDetails>
getDefectMarkedTechPackPath(batchNumber, location, ocNumber, productCode, colourCode, date, size, fitType) → {Array.<defectMarkedTechPackList>}
This function is responsible to fetch defect marked techPack path in batch for present date
Parameters:
| Name | Type | Description |
|---|---|---|
batchNumber |
String | The batch number |
location |
String | The location of the batch |
ocNumber |
String | The oc number in the batch |
productCode |
String | The product code in the batch |
colourCode |
String | The colour code in the batch |
date |
String | Formatted Today's date i.e, yyyymmdd |
size |
String | The size in the batch |
fitType |
String | The fit type of product |
Returns:
List of defecte marked techPack path module:fabstitch/repository/defect~defectMarkedTechPackList
- Type
- Array.<defectMarkedTechPackList>
getDHUDefecttTotalCountForRework(location, batchNumber, date) → {number}
This function is responsible to fetch total defect count for day
Parameters:
| Name | Type | Description |
|---|---|---|
location |
String | The location |
batchNumber |
String | The batch number in location |
date |
String | The date in format of yyyymmdd |
Returns:
Total defect count in return
- Type
- number
getDHUDefecttTotalCountForRework(location, batchNumber, date) → {number}
This function is responsible to fetch total defect count for day
Parameters:
| Name | Type | Description |
|---|---|---|
location |
String | The location |
batchNumber |
String | The batch number in location |
date |
String | The date in format of yyyymmdd |
Returns:
Total defect count in return
- Type
- number
getDHUDefecttTotalCountForReworkQuantity(location, batchNumber, date) → {number}
This function is responsible to fetch total defect count for day
Parameters:
| Name | Type | Description |
|---|---|---|
location |
String | The location |
batchNumber |
String | The batch number in location |
date |
String | The date in format of yyyymmdd |
Returns:
Total defect count in return
- Type
- number
getDHUDetailsForPassedQuantity(location, batchNumber, date) → {Array.<defectForPassedRecords>}
This function is responsible to fetch defect details by location and batch for passed quantity
Parameters:
| Name | Type | Description |
|---|---|---|
location |
String | The location |
batchNumber |
String | The batch number in location |
date |
String | The date in format of yyyymmdd |
Returns:
defectDetailRecords The list of defect details module:fabstitch/repository/defect~defectForPassedRecords
- Type
- Array.<defectForPassedRecords>
getDHUDetailsForPassedQuantity(location, batchNumber, date) → {Array.<defectForPassedRecords>}
This function is responsible to fetch defect details by location and batch for passed quantity
Parameters:
| Name | Type | Description |
|---|---|---|
location |
String | The location |
batchNumber |
String | The batch number in location |
date |
String | The date in format of yyyymmdd |
Returns:
defectDetailRecords The list of defect details module:fabstitch/repository/defect~defectForPassedRecords
- Type
- Array.<defectForPassedRecords>
getDHUDetailsForRejectedQuantity(location, batchNumber, date) → {Array.<defectForRejectedRecords>}
This function is responsible to fetch defect details by location and batch for rejected quantity
Parameters:
| Name | Type | Description |
|---|---|---|
location |
String | The location |
batchNumber |
String | The batch number in location |
date |
String | The date in format of yyyymmdd |
Returns:
defectDetailRecords The list of defect details module:fabstitch/repository/defect~defectForRejectedRecords
- Type
- Array.<defectForRejectedRecords>
getDHUDetailsForRejectedQuantity(location, batchNumber, date) → {Array.<DHUDefectDetails>}
This function is responsible to fetch total defect count for day
Parameters:
| Name | Type | Description |
|---|---|---|
location |
String | The location |
batchNumber |
String | The batch number in location |
date |
String | The date in format of yyyymmdd |
Returns:
defectDetailRecords The list of defect details module:fabstitch/repository/defect~DHUDefectDetails
- Type
- Array.<DHUDefectDetails>
getDHUDetailsForReworkQuantity(location, batchNumber) → {Array.<defectForReworkRecords>}
This function is responsible to fetch defect details by location and batch for rework quantity
Parameters:
| Name | Type | Description |
|---|---|---|
location |
String | The location |
batchNumber |
String | The batch number in location |
Returns:
defectDetailRecords The list of defect details module:fabstitch/repository/defect~defectForReworkRecords
- Type
- Array.<defectForReworkRecords>
getDHUQuantityDetails(batchNumber, location, ocNumber, productCode, colourCode, date, size, fitType) → {Array.<DHUDetailsList>}
This is responsible to fetch DHU details includes quantity for status i.e, Approve/Rework/Rejected
Parameters:
| Name | Type | Description |
|---|---|---|
batchNumber |
String | The batch number |
location |
String | The location of the batch |
ocNumber |
String | The oc number in the batch |
productCode |
String | The product code in the batch |
colourCode |
String | The colour code in the batch |
date |
String | Formatted Today's date i.e, yyyymmdd |
size |
String | The size in the batch |
fitType |
String | The fit type of product |
Returns:
List of DHU details includes quantity for Approve/Rework/Rejected module:fabstitch/repository/defect~DHUDetailsList
- Type
- Array.<DHUDetailsList>
getKanbanOutputDHU(location, batchNumber) → {Array.<defectForReworkRecords>}
This function is responsible to fetch defect details by location and batch for rework quantity
Parameters:
| Name | Type | Description |
|---|---|---|
location |
String | The location |
batchNumber |
String | The batch number in location |
Returns:
defectDetailRecords The list of defect details module:fabstitch/repository/defect~defectForReworkRecords
- Type
- Array.<defectForReworkRecords>
getKnabanDHUDetailsForReworkQuantity(location, batchNumber) → {Array.<defectForReworkRecords>}
This function is responsible to fetch defect details by location and batch for rework quantity
Parameters:
| Name | Type | Description |
|---|---|---|
location |
String | The location |
batchNumber |
String | The batch number in location |
Returns:
defectDetailRecords The list of defect details module:fabstitch/repository/defect~defectForReworkRecords
- Type
- Array.<defectForReworkRecords>
getMasterTechPackPath(location, ocNumber, productCode) → {Array.<masterTechPackList>}
This function is responsible to fetch master techPack path
Parameters:
| Name | Type | Description |
|---|---|---|
location |
String | The location of the batch |
ocNumber |
String | The oc number in the batch |
productCode |
String | The product code in the batch |
Returns:
List of master techPack path module:fabstitch/repository/defect~masterTechPackList
- Type
- Array.<masterTechPackList>
getProductsWithTechPack() → {ProductsWithTechPack}
This function is responsible to fetch products who have tech pack uploaded
Returns:
The list of products module:fabstitch/repository/defect~ProductsWithTechPack
- Type
- ProductsWithTechPack
getTopDefect(batchNumber, location, ocNumber, productCode, colourCode, date, size, fitType) → {Array.<topDefect>}
This function is responsible to fetch top defect in batch for present date
Parameters:
| Name | Type | Description |
|---|---|---|
batchNumber |
String | The batch number |
location |
String | The location of the batch |
ocNumber |
String | The oc number in the batch |
productCode |
String | The product code in the batch |
colourCode |
String | The colour code in the batch |
date |
String | Formatted Today's date i.e, yyyymmdd |
size |
String | The size in the batch |
fitType |
String | The fit type of product |
Returns:
The top defect module:fabstitch/repository/defect~topDefect
- Type
- Array.<topDefect>
getTopDefectBasedOnProductQrCode(batchNumber, location, date) → {Array.<topDefect>}
This function is responsible to fetch top defect in batch for present date
Parameters:
| Name | Type | Description |
|---|---|---|
batchNumber |
String | The batch number |
location |
String | The location of the batch |
date |
String | Formatted Today's date i.e, yyyymmdd |
Returns:
The top defect module:fabstitch/repository/defect~topDefect
- Type
- Array.<topDefect>
getTopDefectBasedOnProductQrCode(batchNumber, location, date) → {Array.<topDefect>}
This function is responsible to fetch top defect in batch for present date
Parameters:
| Name | Type | Description |
|---|---|---|
batchNumber |
String | The batch number |
location |
String | The location of the batch |
date |
String | Formatted Today's date i.e, yyyymmdd |
Returns:
The top defect module:fabstitch/repository/defect~topDefect
- Type
- Array.<topDefect>
getValidDHUDetailsForTest() → {DHUDetailsForTest}
This function is responsible to fetch DHU details for test
Returns:
The DHU details for test module:fabstitch/repository/defect~DHUDetailsForTest
- Type
- DHUDetailsForTest
getValidProductQrForTest() → {BundleBarcodeForTest}
This function is responsible to fetch parts bundle barcode for test
Returns:
The DHU details for test module:fabstitch/repository/defect~BundleBarcodeForTest
- Type
- BundleBarcodeForTest
postDHUDetails(batchNumber, location, ocNumber, productCode, productDescription, colourCode, colourDescription, fitType, techPackPath, size, quantity, status, orderType, categoryDetails, qrCode) → {number}
This function is responsible to post DHU process details (i.e, location, OC number, product, fit type, category, defect type, size, quantity)
Parameters:
| Name | Type | Description |
|---|---|---|
batchNumber |
String | The batch number |
location |
String | The location of the batch |
ocNumber |
String | The oc number in the batch |
productCode |
String | The product code in the batch |
productDescription |
String | The product description |
colourCode |
String | The colour code in the batch |
colourDescription |
String | The colour description in the batch |
fitType |
String | The fit type of product |
techPackPath |
String | null | The techPack path |
size |
String | The size in the batch |
quantity |
number | The quantity |
status |
DHUStatusEnum | The DHU status (i.e, Approved/Rework/Rejected) |
orderType |
jobworkOrderStatusEnum | The order type (i.e, inhouse/jobwork) |
categoryDetails |
Array.<categoryDetailsList> | The list of category details module:fabstitch/repository/defect~categoryDetailsList |
qrCode |
String | The product qr code |
Returns:
The records affected
- Type
- number
postProductTechPack(productCode, productDescription, ocNumber, location, productTechPackPath) → {number}
This function is responsible to post product techPack path along with oc number and location
Parameters:
| Name | Type | Description |
|---|---|---|
productCode |
String | The product code |
productDescription |
String | The product description |
ocNumber |
String | The oc number of product code |
location |
String | The location |
productTechPackPath |
String | The product techPack path |
Returns:
The records affected
- Type
- number
validateBatchSchedule(date, location, batchNumber) → {Boolean}
This function is responsible to validate batch schedule
Parameters:
| Name | Type | Description |
|---|---|---|
date |
String | The date to validate schedule |
location |
String | The location to validate schedule |
batchNumber |
String | The batch number to validate schedule |
Returns:
- Type
- Boolean
validateCategoryAndDefectType(defectCategory, defectType) → {Boolean}
This function is responsible to validate defect category and defect type
Parameters:
| Name | Type | Description |
|---|---|---|
defectCategory |
String | The product code |
defectType |
String | The product description |
Returns:
- Type
- Boolean
validateQrCodeIfAlreadyScanned(qrCode, status) → {Array.<Boolean>}
This function is responsible to check if Qr Code already scanned
Parameters:
| Name | Type | Description |
|---|---|---|
qrCode |
String | The Qr Code |
status |
String | The status of qr Code (i.e, Approved, Rework, Rejected) |
Returns:
The status of qrCode validation
- Type
- Array.<Boolean>
Type Definitions
BundleBarcodeForTest
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
DHUDetailsForTest.qrCode |
String | The product qr code |
categoryDetails
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
categoryDetails.category |
String | The defect category |
categoryDetails.defectType |
String | The 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 |
defectForPassedRecords
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
defectForPassedRecords.ocNumber |
String | The oc number |
defectForPassedRecords.productCode |
String | The product code |
defectForPassedRecords.productDescription |
String | The product description |
defectForPassedRecords.colourCode |
String | The colour code |
defectForPassedRecords.colourDescription |
String | The colour description |
defectForPassedRecords.fitType |
String | The fit type |
defectForPassedRecords.size |
String | The size |
defectForPassedRecords.quantity |
number | The quantity |
defectForRejectedRecords
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
defectForRejectedRecords.ocNumber |
String | The oc number |
defectForRejectedRecords.productCode |
String | The product code |
defectForRejectedRecords.productDescription |
String | The product description |
defectForRejectedRecords.colourCode |
String | The colour code |
defectForRejectedRecords.colourDescription |
String | The colour description |
defectForRejectedRecords.fitType |
String | The fit type |
defectForRejectedRecords.size |
String | The size |
defectForRejectedRecords.quantity |
number | The quantity |
defectForRejectedRecords.productQrCode |
String | The product QR code |
defectForReworkRecords
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
defectForReworkRecords.ocNumber |
String | The oc number |
defectForReworkRecords.productCode |
String | The product code |
defectForReworkRecords.productDescription |
String | The product description |
defectForReworkRecords.colourCode |
String | The colour code |
defectForReworkRecords.colourDescription |
String | The colour description |
defectForReworkRecords.fitType |
String | The fit type |
defectForReworkRecords.size |
String | The size |
defectForReworkRecords.quantity |
number | The quantity |
defectForReworkRecords.productQrCode |
String | The product QR code |
defectForReworkRecords.defectType |
String | The defect type to reject |
defectForReworkRecords.entryDate |
String | The rework entry date in format (dd-mm-yyyy) |
defectForReworkRecords
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
defectForReworkRecords.ocNumber |
String | The oc number |
defectForReworkRecords.productCode |
String | The product code |
defectForReworkRecords.productDescription |
String | The product description |
defectForReworkRecords.colourCode |
String | The colour code |
defectForReworkRecords.colourDescription |
String | The colour description |
defectForReworkRecords.fitType |
String | The fit type |
defectForReworkRecords.size |
String | The size |
defectForReworkRecords.quantity |
number | The quantity |
defectForReworkRecords.productQrCode |
String | The product QR code |
defectForReworkRecords.defectType |
String | The defect type to reject |
defectForReworkRecords.entryDate |
String | The rework entry date in format (dd-mm-yyyy) |
defectForReworkRecords
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
defectForReworkRecords.ocNumber |
String | The oc number |
defectForReworkRecords.productCode |
String | The product code |
defectForReworkRecords.productDescription |
String | The product description |
defectForReworkRecords.colourCode |
String | The colour code |
defectForReworkRecords.colourDescription |
String | The colour description |
defectForReworkRecords.fitType |
String | The fit type |
defectForReworkRecords.size |
String | The size |
defectForReworkRecords.quantity |
number | The quantity |
defectForReworkRecords.productQrCode |
String | The product QR code |
defectForReworkRecords.defectType |
String | The defect type to reject |
defectForReworkRecords.entryDate |
String | The rework entry date in format (dd-mm-yyyy) |
defectMarkedTechPackList
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
defectMarkedTechPackList.defectMarkedTechPackPath |
String | The defect marked techPack path for present date |
DHUDefectDetails
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
DHUDefectDetails.ocNumber |
String | The oc number |
DHUDefectDetails.productCode |
String | The product code |
DHUDefectDetails.productDescription |
String | The product description |
DHUDefectDetails.colourCode |
String | The colour code |
DHUDefectDetails.colourDescription |
String | The colour description |
DHUDefectDetails.fitType |
String | The fit type |
DHUDefectDetails.size |
String | The size |
DHUDefectDetails.quantity |
number | The quantity |
DHUDefectDetails.defectType |
String | The defect type to reject |
DHUDefectDetails.entryDate |
String | The rework entry date in format (dd-mm-yyyy) |
DHUDetailsForTest
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
DHUDetailsForTest.ocNumber |
String | The oc number |
DHUDetailsForTest.productCode |
String | The product code associated with oc number |
DHUDetailsForTest.productDescription |
String | The product description |
DHUDetailsForTest.colourCode |
String | The colour code |
DHUDetailsForTest.colourDescription |
String | The colour description |
DHUDetailsForTest.fitType |
String | The fit type |
DHUDetailsForTest.size |
String | The size |
DHUDetailsList
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
DHUDetailsList.status |
DHUStatusEnum | The status (i.e, Approve/Rework/Rejected) |
DHUDetailsList.quantity |
number | The quantity associated with status |
getDHUForKanban
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
defectForReworkRecords.ocNumber |
String | The oc number |
defectForReworkRecords.productCode |
String | The product code |
defectForReworkRecords.productDescription |
String | The product description |
defectForReworkRecords.colourCode |
String | The colour code |
defectForReworkRecords.colourDescription |
String | The colour description |
defectForReworkRecords.fitType |
String | The fit type |
defectForReworkRecords.size |
String | The size |
defectForReworkRecords.quantity |
number | The quantity |
defectForReworkRecords.productQrCode |
String | The product QR code |
defectForReworkRecords.defectType |
String | The defect type to reject |
defectForReworkRecords.entryDate |
String | The rework entry date in format (dd-mm-yyyy) |
masterTechPackList
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
masterTechPackList.masterTechPackPath |
String | The master techPack path |
ProductsWithTechPack
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
ProductsWithTechPack.productCode |
String | The product code associated with oc number |
ProductsWithTechPack.productDescription |
String | The product description |
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 fitType |
qrCodeDetails.size |
String | The size |
qrCodeDetails.numberingSerial |
number | The product numbering |
qrCodeDetails.uniqueId |
number | The qr Code unique id |
topDefect
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
topDefect.topDefect |
String | The top defect for the day in batch |
topDefect
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
topDefect.topDefect |
String | The top defect for the day in batch |