Module: repository/end-bits

Methods

assignEndBitJob(jobId, jobItemId, followerDeviceId, tableNum, totalQuantity, jobDetails)

Parameters:
Name Type Description
jobId Number The job id for which end bits are required to be cut
jobItemId Number The corresponding job item ID
followerDeviceId String The follower device ID
tableNum Number The table number of the follower device
totalQuantity Number The total job quantity
jobDetails Array.<Object> the job details sent from the client repository/end-bits~jobDetails

completeEndBitJob(endBitJobId) → {Number}

Parameters:
Name Type Description
endBitJobId Number The end bit job id
Returns:
Type
Number

deleteBarcodeForEndBitJob(endBitJobId, barcode, partName) → {Number}

Parameters:
Name Type Description
endBitJobId Number The end bit job id
barcode String The barcode
partName String The part name
Returns:
Type
Number

deleteEndBitJob(endBitJobId) → {Boolean}

Parameters:
Name Type Description
endBitJobId Number The unique end bit job id
Returns:
Type
Boolean

fetchAllBarcodesForEndBitJob(endBitJobId) → {Array.<EndBitBarcode>}

Parameters:
Name Type Description
endBitJobId Number The end bit job id
Returns:
Type
Array.<EndBitBarcode>

fetchEndBitJob(deviceId, location) → {Array.<Object>}

Parameters:
Name Type Description
deviceId String The follower device id
location String The location
Returns:
The result object repository/end-bits~fetchEndBitJob
Type
Array.<Object>

fetchLayLengthPerPart(endBitJobId)

Parameters:
Name Type Description
endBitJobId Number

getLayNumbersWithJobIds(ocNumber, fitType, itemCode, location) → {Array.<Object>}

Parameters:
Name Type Description
ocNumber String The OC number
fitType String The fit type
itemCode String The item code
location String The location
Returns:
The object returned repository/end-bits~layNumbersWithJobIds
Type
Array.<Object>

insertBarcodeForEndBitJob(endBitJobId, barcode, rollQuantity) → {Number}

Parameters:
Name Type Description
endBitJobId Number The end bit job id
barcode String The barcode
rollQuantity Number The roll quantity for the barcode
Returns:
Type
Number

updateBarcodeForEndBitJob(endBitJobId, barcode, actualQuantity, partName) → {Number}

Parameters:
Name Type Description
endBitJobId Number The end bit job id
barcode String The barcode
actualQuantity Number The actual quantity used
partName String The part name
Returns:
Type
Number

validateBarcodeForEndBitJob(endBitJobId, barcode, partName) → {EndBitBarcode}

Parameters:
Name Type Description
endBitJobId Number The end bit job id
barcode String The barcode
partName String The part name
Returns:
Type
EndBitBarcode

validateEndBitJob(endBitJobId) → {EndBitJob}

Parameters:
Name Type Description
endBitJobId Number The unique end bit job id
Returns:
Type
EndBitJob

Type Definitions

fetchEndBitJob

Type:
  • Object
Properties:
Name Type Description
fetchEndBitJob.endJobId Number The end bits job id
fetchEndBitJob.ocNumber String The corresponding OC number
fetchEndBitJob.layLength String The lay length
fetchEndBitJob.itemCode String The item code
fetchEndBitJob.itemDesc String The item description
fetchEndBitJob.partName String The part to be cut
fetchEndBitJob.size String The size of the part to be cut
fetchEndBitJob.quanity String The quantity to be cut

jobDetails

Type:
  • Array.<Object>
Properties:
Name Type Description
jobDetails Array.<Object> inside jobdetails multiple objects based on number of item code by client request
Properties
Name Type Description
partName String The part name
layLength String The lay length assigned to this job
ratioDetails Array.<Object> The ratios and corresponding sizes
Properties
Name Type Description
size String The size of the garment
quantity Number The quantity associated with this size

layNumbersWithJobIds

Type:
  • Object
Properties:
Name Type Description
layNumbersWithJobIds.layNumber Number The lay number
layNumbersWithJobIds.jobId String The job ID of the corresponding lay
layNumbersWithJobIds.jobItemId String The job item ID corresponding to jobId and lay