Module: repository/bom/product

Methods

deleteBom(ocNumber, location) → {Number}

Parameters:
Name Type Description
ocNumber String
location String
Returns:
Type
Number

fetchBomDetailsAssociateWithOcNumber(ocNumber, buyerPoNumber) → {Array.<bomDetailsAssociateWithOcAndPO>}

Parameters:
Name Type Description
ocNumber String | null the oc number
buyerPoNumber String | null the buyer po number
Returns:
The label barcode details returned module:repository/bom/product~bomDetailsAssociateWithOcAndPO
Type
Array.<bomDetailsAssociateWithOcAndPO>

fetchScannedQuantityForLabelBarcode(ocNumber, productCode, poNumber, country, colourCode, labelBarcode, location) → {Array.<labelScannedQuantity>}

Parameters:
Name Type Description
ocNumber String
productCode String
poNumber String
country String
colourCode String
labelBarcode String
location String
Returns:
The label barcode details returned module:repository/bom/product~labelScannedQuantity
Type
Array.<labelScannedQuantity>

getBomLabelDetails(labelBarcode) → {Array.<labelBarcodeDetails>}

Parameters:
Name Type Description
labelBarcode String
Returns:
The label barcode details returned module:repository/bom/product~labelBarcodeDetails
Type
Array.<labelBarcodeDetails>

getBomLabelDetailsAssociatedWithLocation(location, filterDateTime) → {Array.<locationLabelBarcodeDetails>}

Parameters:
Name Type Description
location String
filterDateTime String
Returns:
The label barcode details returned module:repository/bom/product~locationLabelBarcodeDetails
Type
Array.<locationLabelBarcodeDetails>

getDropdownDetailsForFinishingOC(location, filterDateTime) → {Array.<locationLabelBarcodeDetails>}

Parameters:
Name Type Description
location String
filterDateTime String
Returns:
The label barcode details returned module:repository/bom/product~locationLabelBarcodeDetails
Type
Array.<locationLabelBarcodeDetails>

getDropdownDetailsForFinishingProduct(location, filterDateTime) → {Array.<locationLabelBarcodeDetails>}

Parameters:
Name Type Description
location String
filterDateTime String
Returns:
The label barcode details returned module:repository/bom/product~locationLabelBarcodeDetails
Type
Array.<locationLabelBarcodeDetails>

getPoDetailsListAssociatedWithOcAndProduct(ocNumber, productCode, location) → {Array.<bomPoDetailsList>}

Parameters:
Name Type Description
ocNumber String the oc number
productCode String the product code
location String the location
Returns:
The bom po details list returned module:repository/bom/product~bomPoDetailsList
Type
Array.<bomPoDetailsList>

getProductListAssociatedWithOc(ocNumber, location) → {Array.<bomProductList>}

Parameters:
Name Type Description
ocNumber String the oc number
location String the location
Returns:
The bom product list returned module:repository/bom/product~bomProductList
Type
Array.<bomProductList>

getValidLabelBarcodeDetailsForTest() → {labelBarcodeDetailsForTest}

Returns:
Type
labelBarcodeDetailsForTest

getValidOcFromBomForTest(ocNumber) → {Array.<ocListFromBom>}

Parameters:
Name Type Description
ocNumber String the oc number
Returns:
A valid Oc number
Type
Array.<ocListFromBom>

postBomDetails(location, ocNumber, merchandiserName, customerName, style, productCode, productDescription, deliveryDate, shipType, remark, poDetails) → {Number}

Parameters:
Name Type Description
location String The oc number
ocNumber String The oc number
merchandiserName String The oc number
customerName String The oc number
style String The oc number
productCode String The oc number
productDescription String The oc number
deliveryDate String The oc number
shipType String The oc number
remark String The oc number
poDetails Array.<poDetails> The bom PO details module:repository/bom/product~poDetails
Returns:
The number of recordes inserted
Type
Number

postScannedBarcodeListAssociatedWithLocation(location, labelBarcodeList) → {Number}

Parameters:
Name Type Description
location String the location
labelBarcodeList Array.<labelBarcodeData> the list of label barcode
Returns:
The number of recordes inserted
Type
Number

updateAndGetBomLabelDetails(labelBarcode, location) → {Array.<labelBarcodeDetails>}

Parameters:
Name Type Description
labelBarcode String
location String
Returns:
The label barcode details returned module:repository/bom/product~labelBarcodeDetails
Type
Array.<labelBarcodeDetails>

validateAndFetchOrderQuantityAssociateWithPoDetails(ocNumber, productCode, poNumber, country, colourCode, labelBarcode, location) → {Array.<labelOrderQuantity>}

Parameters:
Name Type Description
ocNumber String
productCode String
poNumber String
country String
colourCode String
labelBarcode String
location String
Returns:
The label barcode details returned module:repository/bom/product~labelBarcodeDetails
Type
Array.<labelOrderQuantity>

validateBomLabelBarcode(labelBarcode) → {Boolean}

Parameters:
Name Type Description
labelBarcode String
Returns:
Type
Boolean

validateOcNumberFromBom(ocNumber, location) → {boolean}

Parameters:
Name Type Description
ocNumber String the oc number
location String the location
Returns:
The boolean status of oc validation
Type
boolean

validateProductFromBom(ocNumber, productCode, location) → {boolean}

Parameters:
Name Type Description
ocNumber String the oc number
productCode String the product
location String the location
Returns:
The boolean status of product validation
Type
boolean

validatescannedBarcodeList(ocNumber, productCode, poNumber, country, colourCode, location) → {boolean}

Parameters:
Name Type Description
ocNumber String the oc number
productCode String the product code
poNumber String the po number
country String the country
colourCode String the colour code
location String the location
labelBarcodes.labelBarcode String The barcode value
Returns:
The validate status
Type
boolean

Type Definitions

bomPoDetailsList

Type:
  • Object
Properties:
Name Type Description
bomPoDetailsList.poNumber String The po number
bomPoDetailsList.country String The country
bomPoDetailsList.colour String The colour

bomProductList

Type:
  • Object
Properties:
Name Type Description
bomProductList.productCode String The product code
bomProductList.productDescripton String The product description

bomSizeDetails

Type:
  • Object
Properties:
Name Type Description
bomSizeDetails.size String The customer name
bomSizeDetails.quantity Number The style number/name

labelBarcodeData

Type:
  • Object
Properties:
Name Type Description
labelBarcodeData.ocNumber String The oc number
labelBarcodeData.productCode String The product code
labelBarcodeData.poNumber String The po number
labelBarcodeData.country String The country
labelBarcodeData.colourCode String The colour code
labelBarcodeData.barcode String The barcode
labelBarcodeData.quantity String The quantity

labelBarcodeDetails

Type:
  • Object
Properties:
Name Type Description
labelBarcodeDetails.ocNumber String The oc number
labelBarcodeDetails.location String The location
labelBarcodeDetails.merchandiserName String The merchandiser Name
labelBarcodeDetails.customerName String The customer name
labelBarcodeDetails.style String The style
labelBarcodeDetails.productCode String The product code
labelBarcodeDetails.productDescription String The product description
labelBarcodeDetails.shipType String The ship type
labelBarcodeDetails.remarks String The remarks
labelBarcodeDetails.deliveryDate String The delivery date
labelBarcodeDetails.poNumber String The po number
labelBarcodeDetails.shipTo String The ship to
labelBarcodeDetails.colourCode String The colour code
labelBarcodeDetails.packType String The pack type
labelBarcodeDetails.extraPercentage Number The extra percentage
labelBarcodeDetails.poRemarks String The po remarks
labelBarcodeDetails.exfactoryDate String The ex factory date
labelBarcodeDetails.size String The size
labelBarcodeDetails.quantity Number The quantity
labelBarcodeDetails.labelBarcode String The label barcode

labelBarcodeDetails

Type:
  • Object
Properties:
Name Type Description
labelBarcodeDetails.ocNumber String The oc number
labelBarcodeDetails.location String The location
labelBarcodeDetails.merchandiserName String The merchandiser Name
labelBarcodeDetails.customerName String The customer name
labelBarcodeDetails.style String The style
labelBarcodeDetails.productCode String The product code
labelBarcodeDetails.productDescription String The product description
labelBarcodeDetails.shipType String The ship type
labelBarcodeDetails.remarks String The remarks
labelBarcodeDetails.deliveryDate String The delivery date
labelBarcodeDetails.poNumber String The po number
labelBarcodeDetails.shipTo String The ship to
labelBarcodeDetails.colourCode String The colour code
labelBarcodeDetails.packType String The pack type
labelBarcodeDetails.extraPercentage Number The extra percentage
labelBarcodeDetails.poRemarks String The po remarks
labelBarcodeDetails.exfactoryDate String The ex factory date
labelBarcodeDetails.size String The size
labelBarcodeDetails.quantity Number The quantity
labelBarcodeDetails.labelBarcode String The label barcode

labelBarcodeDetailsForTest

Type:
  • Object
Properties:
Name Type Description
labelBarcodeDetailsForTest.ocNumber Number The oc number
labelBarcodeDetailsForTest.productCode Number The produt code
labelBarcodeDetailsForTest.poNumber Number The po number
labelBarcodeDetailsForTest.shipTo Number The ship to (country)
labelBarcodeDetailsForTest.colourCode Number The colour code
labelBarcodeDetailsForTest.location Number The location
labelBarcodeDetailsForTest.labelBarcode Number The label barcode

labelOrderQuantity

Type:
  • Object
Properties:
Name Type Description
labelOrderQuantity.orderQuantity Number The label order quantity

labelScannedQuantity

Type:
  • Object
Properties:
Name Type Description
labelScannedQuantity.scannedQuantity Number The label scanned quantity

ocListFromBom

Type:
  • Object
Properties:
Name Type Description
ocListFromBom.ocNumber String The oc number
ocListFromBom.location String The location
ocListFromBom.productCode String The productCode

poDetails

Type:
  • Object
Properties:
Name Type Description
poDetails.poNumber String The customer name
poDetails.shipTo String The style number/name
poDetails.colourCode String The fabric shrinkage
poDetails.coinPocket boolean The fit type
poDetails.PackType String The approved consumption
poDetails.extraPercentage Number The location of the factory
poDetails.exfactoryDate String The unique marker google id
poDetails.bomRemark String The size and ratio details
poDetails.barcodeLinked.Size String The size
poDetails.bomSizeDetails Array.<bomSizeDetails> The bom size details module:repository/bom/product~bomSizeDetails