Module: routers/v7/fabcut/cutting/end-bits

Express router for tablet app related routes

Methods

(static) delete/fabcut/cutting/end-bits/jobs/:endBitJobId() → {Boolean}

The route to cancel/delete the end bit job assigned by the leader to follower
Parameters:
Name Type Description
req.params.endBitJobId Number The unique end bit job id
req.body.deviceId String The follower device id
req.body.location String The location
Returns:
Type
Boolean

(static) delete/fabcut/cutting/end-bits/jobs/:endBitJobId/barcodes/:barcode() → {Boolean}

The route to remove barcode from an assigned end bit job
Parameters:
Name Type Description
req.params.endBitJobId Number The unique end bit job id
req.params.barcode String The barcode to be removed from assigned job
req.query.partName String The part name for which the barcode is being scanned
req.body.deviceId String The follower device id
req.body.location Number The location
Returns:
Type
Boolean

(static) get/fabcut/cutting/end-bits/jobs/:deviceId() → {Object}

This route is used to fetch the end bits job details assigned to a follower device
Parameters:
Name Type Description
req.params.deviceId String The follower device id
req.query.location String The location of the device
Returns:
The object returned routers/v7/fabcut/cutting/end-bits~followerJobDetails
Type
Object

(static) get/fabcut/cutting/end-bits/lay-numbers/:markerId() → {Array.<Number>}

Route for fetching lay numbers under OC - fit type - item code combination
Parameters:
Name Type Description
req.params.markerId String The unique id of the marker used
req.body.itemCode String The item code of the fabric
req.body.location String the location of the device
Returns:
Type
Array.<Number>

(static) post/fabcut/cutting/end-bits/jobs/:deviceId() → {Boolean}

Route for assigning a cutting job for end-bits
Parameters:
Name Type Description
req.params.deviceId String The follower device id
req.body.markerId String The unique marker id to link assigned job to marker
req.body.location String The location of the master device
req.body.layNumber Number The lay number of the completed job
req.body.itemCode String The item code of the fabric
req.body.itemDesc String The item description of the fabric
req.body.jobDetails Array The job details sent from the client routers/v7/fabcut/cutting/end-bits~jobDetails
Returns:
Type
Boolean

(static) post/fabcut/cutting/end-bits/jobs/:endBitJobId/barcodes/:barcode() → {Object}

The route to scan a barcode for end bits job in the follower UI
Parameters:
Name Type Description
req.params.endBitJobId Number The unique end bit job id
req.params.barcode String The barcode scanned by follower
req.query.partName String The part name for which the barcode is being scanned
req.body.deviceId String The follower device id
req.body.location String The location
Returns:
Type
Object

(static) put/fabcut/cutting/end-bits/jobs/:endBitJobId() → {Boolean}

The route to complete an end bit job
Parameters:
Name Type Description
req.params.endBitJobId Number The unique end bit job id
req.body.deviceId String The follower device id
req.body.location Number The location
Returns:
Type
Boolean

(static) put/fabcut/cutting/end-bits/jobs/:endBitJobId/barcodes/:barcode() → {Boolean}

The route to update actual plies for a scanned barcode for an assigned end bit job
Parameters:
Name Type Description
req.params.endBitJobId Number The unique end bit job id
req.params.barcode String The scanned barcode
req.query.partName String The part name for which the barcode is being scanned
req.body.deviceId String The follower device id
req.body.location Number The location
req.body.actualPlies Number Actual number of plies entered by the user for the barcode
Returns:
Type
Boolean

Type Definitions

barcodeDetails

Type:
  • Object
Properties:
Name Type Description
barcodeDetails.length Number The roll length of barcode
barcodeDetails.plies Number The number of plies for the roll(barcode)

followerJobDetails

Type:
  • Object
Properties:
Name Type Description
followerJobDetails.endBitJobId Array.<Number> The end-bits job id
followerJobDetails.ocNumber String The oc number of the job
followerJobDetails.itemCode String The item code
followerJobDetails.itemDesc String The item description
followerJobDetails.jobDetails Array.<Object> The job details for the job
Properties
Name Type Description
partName String The part to be cut
layLength String The lay length assigned
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

jobDetails

Type:
  • Array
Properties:
Name Type Description
jobDetails Array.<Object>
partName String The part name to be cut
layLength String The lay length assigned to this job
ratioDetails Array.<Object>
jobDetails.ratioDetails.size String The size of the garment
jobDetails.ratioDetails.quantity Number The quantity associated with this size