Module: repository/barcode

Methods

getFabricBarcodeId(barcode) → {Object}

This function is responsible to get the fabric barcode id
Parameters:
Name Type Description
barcode String The fabric barcode
Returns:
Type
Object

getFabricBarcodeId(barcode) → {Object}

This function is responsible to get the fabric barcode id
Parameters:
Name Type Description
barcode String The fabric barcode
Returns:
Type
Object

isFabricBarcode(barcode) → {Boolean}

This function is responsible to validate fabric barcode
Parameters:
Name Type Description
barcode String The fabric barcode
Returns:
Type
Boolean

isFabricBarcode(barcode) → {Boolean}

This function is responsible to validate fabric barcode
Parameters:
Name Type Description
barcode String The fabric barcode
Returns:
Type
Boolean

isFabricBarcode(userName) → {Boolean}

This function is responsible to validate fabric barcode
Parameters:
Name Type Description
userName String The userName * @param {String} password The password
Returns:
Type
Boolean

isRackBarcode(barcode) → {Boolean}

Parameters:
Name Type Description
barcode String
Returns:
Type
Boolean

isRackBarcode(barcode) → {Boolean}

* This function is responsible to validate Rack barcode
Parameters:
Name Type Description
barcode String
Returns:
Type
Boolean

totalFabric(barcode) → {Boolean}

This function is responsible to validate fabric barcode
Parameters:
Name Type Description
barcode String The fabric barcode
Returns:
Type
Boolean

Type Definitions

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

topDefect

Type:
  • Object
Properties:
Name Type Description
topDefect.topDefect String The top defect for the day in batch

Methods

getFabricBarcodeId(barcode) → {Object}

This function is responsible to get the fabric barcode id
Parameters:
Name Type Description
barcode String The fabric barcode
Returns:
Type
Object

getFabricBarcodeId(barcode) → {Object}

This function is responsible to get the fabric barcode id
Parameters:
Name Type Description
barcode String The fabric barcode
Returns:
Type
Object

isFabricBarcode(barcode) → {Boolean}

This function is responsible to validate fabric barcode
Parameters:
Name Type Description
barcode String The fabric barcode
Returns:
Type
Boolean

isFabricBarcode(barcode) → {Boolean}

This function is responsible to validate fabric barcode
Parameters:
Name Type Description
barcode String The fabric barcode
Returns:
Type
Boolean

isFabricBarcode(userName) → {Boolean}

This function is responsible to validate fabric barcode
Parameters:
Name Type Description
userName String The userName * @param {String} password The password
Returns:
Type
Boolean

isRackBarcode(barcode) → {Boolean}

Parameters:
Name Type Description
barcode String
Returns:
Type
Boolean

isRackBarcode(barcode) → {Boolean}

* This function is responsible to validate Rack barcode
Parameters:
Name Type Description
barcode String
Returns:
Type
Boolean

totalFabric(barcode) → {Boolean}

This function is responsible to validate fabric barcode
Parameters:
Name Type Description
barcode String The fabric barcode
Returns:
Type
Boolean

Type Definitions

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

topDefect

Type:
  • Object
Properties:
Name Type Description
topDefect.topDefect String The top defect for the day in batch

Methods

getFabricBarcodeId(barcode) → {Object}

This function is responsible to get the fabric barcode id
Parameters:
Name Type Description
barcode String The fabric barcode
Returns:
Type
Object

getFabricBarcodeId(barcode) → {Object}

This function is responsible to get the fabric barcode id
Parameters:
Name Type Description
barcode String The fabric barcode
Returns:
Type
Object

isFabricBarcode(barcode) → {Boolean}

This function is responsible to validate fabric barcode
Parameters:
Name Type Description
barcode String The fabric barcode
Returns:
Type
Boolean

isFabricBarcode(barcode) → {Boolean}

This function is responsible to validate fabric barcode
Parameters:
Name Type Description
barcode String The fabric barcode
Returns:
Type
Boolean

isFabricBarcode(userName) → {Boolean}

This function is responsible to validate fabric barcode
Parameters:
Name Type Description
userName String The userName * @param {String} password The password
Returns:
Type
Boolean

isRackBarcode(barcode) → {Boolean}

Parameters:
Name Type Description
barcode String
Returns:
Type
Boolean

isRackBarcode(barcode) → {Boolean}

* This function is responsible to validate Rack barcode
Parameters:
Name Type Description
barcode String
Returns:
Type
Boolean

totalFabric(barcode) → {Boolean}

This function is responsible to validate fabric barcode
Parameters:
Name Type Description
barcode String The fabric barcode
Returns:
Type
Boolean

Type Definitions

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

topDefect

Type:
  • Object
Properties:
Name Type Description
topDefect.topDefect String The top defect for the day in batch