API to submit Work Order. Supported methods are
GET, PUT, POST, DELETE.
url: ~/work_receive
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
}
}
GET: https://trial4315.igx.biz/api/jdoc/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
}
]
}