User Tools

Site Tools


en:api_wrkrec

This is an old revision of the document!


Table of Contents

Work Receive

API to submit Work receive. Supported methods are GET, PUT, POST, DELETE.

url: ~/work_receive

JSON Schema

Other reference json schema: object_document, object_variance

{
  "$id": "https://www.igarment.net/schema/json/v1-0/work-receive.json",
  "title": "Work Order Receive",
  "type": "object",
  "required": [ "reference" ],
  "properties": {
      "reference":  { "$ref": "object-document.json#/$defs/reference" }, //delivery note no, trx date, factory code
      "work_order": { "type": "string" }, //work_order_no:extno
      "order_no":   { "type": "string" }, //sales order no in work order
      "style":      { "type": "string" }, //sales style in work order
      "processes":  { "type": "string" }, //process code defined in our system, if more than one, need concat each code with ';'
      "qty_unit":   { "type": "string" },
      "remark":     { "type": "string" },
      "created_user":       { "type": "string" }, //user code defined in our system
      "last_modified_user": { "type": "string" }, //user code defined in our system
      "assortments":        { "$ref": "object-variance.json#/$defs/assortment" } //assortments does not allow repeat color&sizx&dim3; qty>0 -> receive, qty<0 -> return
  }
}

Example

GET: ~/work_receive/A-001/t-0001/BEI-TEST-0002/STY-03/Cut

{
"reference": {
  "no": "t-0001",
  "issue_date": "2018-04-03",
  "party_code": "A-001"
},
"qty_unit": "pcs",
"remark": "",
"created_user": "USER",
"last_modified_user": "USER",
"work_order": "WK17-00242:1",
"order_no": "BEI-TEST-0002",
"style": "STY-03",
"processes": "CUT",
"assortments": [
  {
    "color": "BLUE",
    "size": "M",
    "dim3": "",
    "qty": 20.0
  }
]
}
en/api_wrkrec.1780483957.txt.gzip · Last modified: by administrator