[
{
"id": 24,
"revision_display": "0",
"revision": 0,
"sub_revision": 0,
"user_editable": true,
"revision_editable": true,
"status": 2,
"status_name": "Pending Delivery",
"approval_status": 4,
"approval_status_name": "Fully Approved",
"approval_flow": [
{
"approver": 2,
"approved_date": "2017-10-08 09:11:00 UTC",
"role": ""
},
{
"approver": 2,
"approved_date": "2017-10-08 10:05:14 UTC",
"role": 2
}
],
"requester": 2,
"requester_name": "Pawarit Saengpreecharutn",
"owner": 2,
"owner_name": "Pawarit Saengpreecharutn",
"assistant": null,
"assistant_name": "-",
"numbering_code": 2,
"reserved_no": "PRR1COM01-0015",
"approved_no": "POR1COM01-0001",
"company": 1,
"company_name": "Bizinterprise Co.,Ltd.",
"company_address": "79/182 Life@Ratchadapisek Huaykwang Huaykwang Bangkok 10310",
"company_tax_id": "1234567890123",
"date": "2017-09-30",
"date_display": "30/09/2017",
"sensitivity_level": 1,
"sensitivity_level_name": "Confidential",
"external_ref_no": "SR0139284382829",
"supplier": 1,
"supplier_name": "Bizinterprise Co.,Ltd.",
"supplier_tax_id": "123456765432345",
"customer_address": "1234567654 ถ.จรัญสนิทวงศ์",
"contract": 1,
"contract_name": "Contract A",
"contact_person": {
"name": "Pawarit Saengpreecharutn",
"email": "su.psr.92@gmail.com",
"phone": "086-048-4881"
},
"payment_term": 4,
"payment_term_name": "N/30",
"import_warehouse": 1,
"import_warehouse_name": "W0001 - ห้วยขวาง",
"business_unit": 2,
"business_unit_name": "02 - ฝ่ายจัดส่ง",
"delivery_term": "FCA",
"delivery_point": {
"address_type": 1, // NOTE: 13 for warehouse address, 20 for shipping address
"address_id": 2,
"address": "1234567654 ถ.จรัญสนิทวงศ์"
},
"final_destination": 1,
"final_destination_address": "17/4 Village No.5 Bamroongrat Road, Pibulsongkram Sub-district, Muang District, Bangkok, 10400", // ADDED, MOVE FROM THE OLD `final_destination`
"remark": "Just testing revision",
"price_inclusive_tax": false,
"currency": "THB",
"order_products": [ // NOTE: Changed the attr name from "items"
{
"id": 32,
"product": { // NOTE: Merged from `product` itself , `uom` and `product_name`
"id": 1,
"name": "Oreo",
"uom": "ชิ้น"
},
"pricing_type": 1,
"pricing_type_name": "Main Pricing type",
"quantity": "1.00", // NOTE: STRING
"tax": "6.00", // NOTE: STRING
"unit_price": "1200.00", // NOTE: STRING
"unit_discount": "10.00", // NOTE: STRING
"unit_discount_display_type": "percent",
"amount": "1080.00", // NOTE: STRING
"required_date": "2017-10-08",
}
],
"grand_total": "1155.6", // NOTE: STRING
"grand_total_in_words": "One thousand, one hundred and fifty-five point six baht" // ADDED
}
]
The Sample API Result
Module name: Purchase Order
Sample view: List view
Module name: Purchase Order
Sample view: List view
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.