Module: repository/jobwork/order

Methods

deleteJobWorkOrder(ocNumber, location) → {Number}

Parameters:
Name Type Description
ocNumber String The oc number
location String The location
Returns:
Type
Number

getFitTypeFromJobWorkOrder(location, ocNumber, productCode, colourCode) → {Array.<jobworkOrderfitTypeList>}

Parameters:
Name Type Description
location String The location
ocNumber String The oc number
productCode String The product code associated with oc number
colourCode String The colour code associated with product
Returns:
The list of job work details
Type
Array.<jobworkOrderfitTypeList>

getJobWorkOrder(ocNumber, location, productCode, fitType) → {Array.<fetchJobWorkOrderDetails>}

Parameters:
Name Type Description
ocNumber String The oc number
location String The location
productCode String The product code associated with oc number
fitType String The fit type
Returns:
The list of job work details
Type
Array.<fetchJobWorkOrderDetails>

getSamsFromJobWorkOrder(location, productCodeList) → {Array.<jobworkSamsList>}

Parameters:
Name Type Description
location String The location
productCodeList Array.<String> The product code list
Returns:
The list of sams from job work details
Type
Array.<jobworkSamsList>

getSamsFromJobWorkOrderBasedOnProducts(productCodeList) → {Array.<jobworkSamsListBasedOnProduct>}

Parameters:
Name Type Description
productCodeList Array.<String> The product code list
Returns:
The list of sams from job work details
Type
Array.<jobworkSamsListBasedOnProduct>

getSizesFromJobWorkOrder(location, ocNumber, productCode, colourCode, fitType) → {Array.<jobworkOrderSizesList>}

Parameters:
Name Type Description
location String The location
ocNumber String The oc number
productCode String The product code associated with oc number
colourCode String The colour code associated with product
fitType String The fit type
Returns:
The list of job work details
Type
Array.<jobworkOrderSizesList>

postJobWorkOrder(ocNumber, location, style, customerName, productCode, productDescription, fitType, machineSam, globalSam, colourSizeDetails) → {Number}

Parameters:
Name Type Description
ocNumber String The oc number
location String The location
style String The style associated with oc number
customerName String The buyer name associated with oc number
productCode String The product code
productDescription String The product description
fitType String The fit type
machineSam number The machine sam
globalSam number The global sam
colourSizeDetails Array.<colourSizeDetails> The colour size details
Returns:
Type
Number

validateOcNumberFromJobWorkOrder(ocNumber) → {boolean}

Parameters:
Name Type Description
ocNumber String The ocnumber
Returns:
Returns ocNumber exist status
Type
boolean

Type Definitions

colourSizeDetails

Type:
  • Object
Properties:
Name Type Description
colourSizeDetails.colourCode String The colour code
colourSizeDetails.colourDescription String The colour description
colourSizeDetails.sizeDetails Array.<sizeDetails> The size and quantity details

fetchJobWorkOrderDetails

Type:
  • Object
Properties:
Name Type Description
fetchJobWorkOrderDetails.ocNumber String The oc number
fetchJobWorkOrderDetails.location String The location
fetchJobWorkOrderDetails.style String The style name
fetchJobWorkOrderDetails.customerName String The buyer name
fetchJobWorkOrderDetails.productCode String The product code
fetchJobWorkOrderDetails.productDescription String The product description
fetchJobWorkOrderDetails.fitType String The fit type
fetchJobWorkOrderDetails.machineSam String The machine sam
fetchJobWorkOrderDetails.globalSam String The global
fetchJobWorkOrderDetails.colourCode String The colour code
fetchJobWorkOrderDetails.colourDescription String The colour description
fetchJobWorkOrderDetails.size String The size
fetchJobWorkOrderDetails.quantity String The quantity associated with size

jobworkOrderfitTypeList

Type:
  • Object
Properties:
Name Type Description
jobworkOrderfitTypeList.fitType String The fit type

jobworkOrderSizesList

Type:
  • Object
Properties:
Name Type Description
jobworkOrderSizesList.size String The size

jobworkSamsList

Type:
  • Object
Properties:
Name Type Description
jobworkSamsList.productCode String The product Code
jobworkSamsList.machineSam number The machine sam
jobworkSamsList.globalSam number The global sam

jobworkSamsListBasedOnProduct

Type:
  • Object
Properties:
Name Type Description
jobworkSamsListBasedOnProduct.location String The location
jobworkSamsListBasedOnProduct.productCode String The product Code
jobworkSamsListBasedOnProduct.machineSam number The machine sam
jobworkSamsListBasedOnProduct.globalSam number The global sam

sizeDetails

Type:
  • Object
Properties:
Name Type Description
sizeDetails.size String The size
sizeDetails.quantity number The quantity associated with size