[
{
"id": 34,
"revision_display": "B",
"revision": -1,
"sub_revision": 2,
"user_editable": false,
"revision_editable": true,
"status": 1,
"status_name": "Pending Approval",
"approval_status": 3,
"approval_status_name": "Partially Approved",
"approval_flow": [
{
"role": 1,
"approved_date": "2017-10-08 09:11:00 UTC", // NOTE: ISO8601 Datetime
"approver": 3
},
{
"role": 2,
"approved_date": "",
"approver": 3
}
],
"preparer": 3,
"preparer_name": "Pawarit Saengpreecharutn", // ADDED
"owner": 3,
"owner_name": "Pawarit Saengpreecharutn", // ADDED
"assistant": null,
"assistant_name": "-", // ADDED
"numbering_code": 2,
"no": "SDR0139284382829", // ADDED
"company": 1,
"company_name": "Bizinterprise Co.,Ltd.", // ADDED
"company_address": "79/182 Life@Ratchadapisek Huaykwang Huaykwang Bangkok 10310", // ADDED
"company_tax_id": "1234567890123", // ADDED
"date": "2017-09-30",
"date_long": "30 September 2017", // ADDED
"sensitivity_level": 1, // SEE ALSO: Sensitivity level number meaning
"sensitivity_level_name": "Confidential", // ADDED
"external_ref_no": "SR0139284382829",
"ref_document_id": 8,
"ref_document_no": "SRR1COM01-0015", // ADDED
"ref_document_type": 31, // NOTE: It's always 31 which refers to sale_order
"customer": 1,
"customer_name": "Bizinterprise Co.,Ltd.", // ADDED
"customer_tax_id": "123456765432345", // ADDED
"customer_address": "1234567654 ถ.จรัญสนิทวงศ์", // ADDED
"delivery_point": { // ADDED
"address_type": 1, // ADDED
"address_id": 2,
"address": "1234567654 ถ.จรัญสนิทวงศ์"
},
"payment_term": 4,
"payment_term_name": "N/30", // ADDED
"delivery_term": "FCA", // ADDED
"type": 1,
"type_name": "Delivery Note | Payment Receipt | Tax invoice", // ADDED
"document_payment_amounts": [
{
"id": 19,
"cash_account": 1,
"cash_account_name": "1234567890 - CASH_AC", // ADDED
"method": "1",
"method_name": "Cash", // ADDED
"amount": "600000.00"
}
],
"payment_received_date": "2017-09-30",
"payment_received_date_long": "30 September 2017", // ADDED
"remark": "",
"document_product_quantities": [
{
"id": 69,
"product": 1,
"storage_bins": [ // MODIFIED, in case of document whose type requires `storage_bins` to pick, see next object for the another case, otherwise.
{
"storage_bin": 1,
"quantity": 3
},
{
"storage_bin": 2,
"quantity": 2
}
]
},
{
"id": 70,
"product": 2,
"quantity": 2, // MODIFIED, in case of document whose type doesn't require `storage_bins`, user could send the quantity instantly without wrapping it to `storage_bins` field
}
],
"discount": 123.00, // ADDED
"sub_total": 1234.00, // ADDED
"tax": 12.00, // ADDED
"grand_total": 1234.00, // ADDED
"grand_total_in_words": "One thousand two hundred and thirty four baht"
},
]
The Sample API Result
Module name: Documents
Sample view: List view
Module name: Documents
Sample view: List view
6 Responses
"approved_date": "2017-10-08 09:11:00 UTC" -> "2017-10-08"
document_payment_amounts -> document_payments
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.