[
{
"id": 24,
"revision_display": "0",
"revision": 0,
"sub_revision": 0,
"user_editable": false,
"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", // NOTE: ISO8601 Datetime
"role": "" // SEE ALSO: Role number meaning
},
{
"approver": 2,
"approved_date": "2017-10-08 10:05:14 UTC",
"role": 2
}
],
"requester": 2,
"requester_name": "Pawarit Saengpreecharutn", // ADDED
"owner": 2,
"owner_name": "Pawarit Saengpreecharutn", // ADDED
"assistant": null,
"assistant_name": "-", // ADDED
"numbering_code": 2,
"reserved_no": "SRR1COM01-0015",
"approved_no": "SOR1COM01-0001",
"company": 1,
"company_name": "Bizinterprise Co.,Ltd.",
"date": "2017-09-30", // MODIFIED, NOTE: ISO8601 Date
"date_long": "30 September 2017", // ADDED, NOTE: Localized date format, could be Thai or English
"sensitivity_level": 1,
// SEE ALSO: Sensitivity level number meaning
"sensitivity_level_name": "Confidential", // ADDED
"external_ref_no": "SR0139284382829",
"customer": 1,
"customer_name": "Bizinterprise Co.,Ltd.", // ADDED
"customer_tax_id": "123456765432345", // MODIFIED, RENAME THE KEY: 'tax_id' -> 'customer_tax_id'
"customer_address": "1234567654 ถ.จรัญสนิทวงศ์", // MODIFIED, RENAME THE KEY: 'address' -> 'customer_address'
"contract": 1,
"contract_name": "Contract A", // ADDED
"contract_person": { // ADDED
"name": "Pawarit Saengpreecharutn",
"email": "su.psr.92@gmail.com",
"phone": "086-048-4881"
},
"payment_term": 4,
"payment_term_name": "N/30", // ADDED
"export_warehouse": 1,
"export_warehouse_name": "W0001 - ห้วยขวาง", // ADDED
"business_unit": 2,
"business_unit_name": "02 - ฝ่ายจัดส่ง",
"delivery_term": "FCA",
"delivery_point": {
"type": 1,
"id": 2
}, // MODIFIED, CHANGE FROM STRING TO SELECT FIELD
"final_destination": 1, // MODIFIRED, MOVE THE OLD VALUE TO `final_destination_address` AND CHANGED TO SELECT FIELD
"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",
"items": [ // MODIFIED, RENAME THE KEY: 'sale_order_product_quantities' -> 'items'
{
"id": 32,
"product": 1,
"product_name": "Product 1",
"pricing_type": 1,
"pricing_type_name": "Main Pricing type",
"quantity": "1.00",
"uom": "PCS",
"tax": "6.00",
"unit_price": "1200.00",
"unit_discount": "10.00",
"unit_discount_display_type": "percent", // ADDED, NOTE: It could be either "percent" or "net".
"amount": "1080.00",
"required_date": "2017-10-08",
// "sale_order": 24, // REMOVED
}
],
"grand_total": 1155.6, // ADDED
"grand_total_in_words": "One thousand, one hundred and fifty-five point six baht" // ADDED
}
]
The Sample API Result
Module name: Sale Order
Sample view: List view
Module name: Sale Order
Sample view: List view
3 Responses
items -> product_quantities //I think the name "item" is very confusing.
Write a 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.