Request Take Out Item (ขอเบิกสินค้า)
| Type | Value |
|---|---|
| URL | /SMLJavaRESTService/restapi/requesttakeoutitem |
| Method | POST |
| Content-Type | Application/json |
Header Request
| Field | Value |
|---|---|
| GUID | GUID สำหรับการเชื่อมต่อ (smlx เสมอ) |
| configFIleName | ชื่อไฟล์เก็บ Server Config |
| databaseName | ชื่อฐานข้อมูล |
Header Example
{
"GUID" : "smlx"
"configFIleName" : "SMLConfigBRSMLST.xml"
"databaseName" : "smlst2016"
}Field
| Field | Type | Description |
|---|---|---|
| doc_no | String | เอกสารเลขที่ |
| doc_format_code | String | รหัสเอกสาร |
| doc_date | String | เอกสารวันที่ Format =YYYY-MM-DD |
| doc_time | String | เวลา Format=hh:mm |
| wh_code | String | คลังสินค้า |
| shelf_code | String | ที่เก็บสินค้า |
| inquiry_type | Number | 0 = เบิกปรกติ, 1 =เบิกไปให้ลูกค้า/ลูกหนี้, 2=เบิกไปให้จ้าหนี้ |
| details | Array | รายละเอียดสินค้า |
| doc_ref_date | String | วันที่เอกสารอ้างอิง Format =YYYY-MM-DD(Optional) |
| doc_ref | String | เอกสารอ้างอิง (Optional) |
| cust_code | String | ลูกหนี้/เจ้าหนี้(Optional) |
| remark | String | หมายเหตุ(Optional) |
Detail Field
| Field | Type | Description |
|---|---|---|
| item_code | String | รหัสสินค้า |
| line_number | Number | หมายเลขบรรทัด |
| unit_code | String | หน่วยนับ |
| wh_code | String | คลังสินค้า |
| shelf_code | String | ที่เก็บสินค้า |
| qty | Number | จำนวน |
| serials | Array | รายการ Serial(Optional) |
Serial Field
| Field | Type | Description |
|---|---|---|
| serial | String | หมายเลข Serial |
Response
| Response Code | Description |
|---|---|
| 201 | Create Success |
| 400 | Failed |
Response Success JSON :
{
"status" : "success",
"message" : "create success"
}Response Failed JSON :
{
"status": "error",
"message": "Message Error"
}Sample Call
{
"doc_no": "WD59120001",
"doc_date": "2016-12-01",
"doc_format_code": "WD",
"doc_time": "09:00",
"wh_code": "CMI01",
"shelf_code": "CMI420",
"details": [
{
"item_code": "1000030",
"line_number": 0,
"unit_code": "TR",
"wh_code": "CMI01",
"shelf_code": "CMI420",
"qty": 100
},
{
"item_code": "1000018",
"line_number": 1,
"unit_code": "TR",
"wh_code": "CMI01",
"shelf_code": "CMI420",
"qty": 300
},
{
"item_code": "1000029",
"line_number": 2,
"unit_code": "TR",
"wh_code": "CMI01",
"shelf_code": "CMI420",
"qty": 100
},
{
"item_code": "1000017",
"line_number": 3,
"unit_code": "TR",
"wh_code": "CMI01",
"shelf_code": "CMI420",
"qty": 2,
"serials": [
{
"serial": "670011-J0001"
},
{
"serial": "670011-J0002"
}
]
}
]
}