[Sale Order] - List view

[ { "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", // NOTE: Changed from datetime to date "role": 1 // NOTE: INTEGER }, { "approver": 2, "approved_date": "2017-10-08", // NOTE: Changed from datetime to date "role": 2 // NOTE: INTEGER } ], "requester": 2, "requester_name": "Pawarit Saengpreecharutn", "owner": 2, "owner_name": "Pawarit Saengpreecharutn", "assistant": null, "assistant_name": "-", "numbering_code": 2, "reserved_no": "SRR1COM01-0015", "approved_no": "SOR1COM01-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", // NOTE: Changed the attr name from "date_long" "sensitivity_level": 1, "sensitivity_level_name": "Confidential", "external_ref_no": "SR0139284382829", "customer": 1, "customer_name": "Bizinterprise Co.,Ltd.", "customer_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", "export_warehouse": 1, "export_warehouse_name": "W0001 - ห้วยขวาง", "business_unit": 2, "business_unit_name": "02 - ฝ่ายจัดส่ง", "delivery_term": "FCA", // NOTE: Of the `delivery_point_warehouse` and `delivery_point_shipping_address` fields, there's only one field will be NULL. "delivery_point_warehouse": 1, "delivery_point_warehouse_display": "W0001 - ห้วยขวาง", // ADDED "delivery_point_shipping_address": 1, "delivery_point_shipping_address_display": null, // ADDED "final_destination": "2", // NOTE: Refer to a customer shipping address PK "final_destination_display": "25/6 ถ.บางนา-ตราด แขวงบางนา เขตบางนา กทม. 16500", // ADDED "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: Sale Order
Sample view: List view

3 Responses

date_long -> date_display //I have discussed with P'A and he told me that only "01/01/2018" would be fine.
items -> product_quantities //I think the name "item" is very confusing.
According to what I discussed with P'A (1/1/2018), delivery_point and final_destination will remain the same na kub

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.