การเปลี่ยนแปลงการปัดเศษทศนิยม
ประกาศการเปลี่ยนแปลงการปัดเศษทศนิยม
ขอแจ้งให้ทราบว่า ทางทีมพัฒนา FlowAccount ได้มีการเปลี่ยนแปลงการปัดเศษทศนิยม เมื่อมีการดำเนินการเกี่ยวกับเอกสาร เพื่อให้นำค่าไปใช้งานต่อได้อย่างถูกต้อง โดยมีผลบังคับใช้ในเอกสารที่ไม่มีส่วนลดหรือภาษีแยกรายการ (Simple Document) และเอกสารที่มีส่วนลดหรือภาษีแยกรายการ (Inline Document) รวมไปถึงเอกสารที่เกี่ยวข้องกับการเก็บเงิน (Payment)
ผู้ใช้งานสามารถทดลองได้บน Sandbox ได้ตั้งแต่วันที่ 15/05/2025 เป็นต้นไป
Sandbox API url: https://openapi.flowaccount.com/test
เริ่มมีผลบน Production Environment: 30/05/2025 เวลา 11:00
Field เอกสารที่ได้รับผลกระทบ
subTotal- 2 decimaldiscountAmount- 2 decimaldiscountPercentage- 4 decimaltotalAfterDiscount- 2 decimalgrandTotal- 2 decimaldocumentWithholdingTaxAmount- 2 decimalvatAmount- 2 decimalexemptAmount- 2 decimal (สำหรับเอกสารแบบ Inline Document)vatableAmount- 2 decimal (สำหรับเอกสารแบบ Inline Document)
Field สินค้าที่ได้รับผลกระทบ
pricePerUnit- 4 decimalquantity- 4 decimaltotal- 2 decimaldiscountAmount- 2 decimal (สำหรับเอกสารแบบ Inline Document)
Field ที่เกี่ ยวข้องกับการเก็บเงิน ที่ได้รับผลกระทบ
collected- 2 decimalwithheldAmount- 2 decimalwithheldPercentage- 4 decimalpaymentDeductionAmount- 2 decimalremainingCollected- 2 decimalpaymentCharge- 4 decimal (สำหรับเอกสารที่มีการเก็บเงินด้วยเช็ค หรือการโอนเงิน)
เอกสารแบบ Simple Document, APIs ที่จะได้รับผลกระทบ
- POST /quotations
- POST /billing-notes
- POST /upgrade/billing-notes
- POST /tax-invoices
- POST /upgrade/tax-invoices
- POST /cash-invoices
- POST /upgrade/cash-invoices
- POST /upgrade/receipts
- POST /purchases-orders
- POST /upgrade/purchases-orders
- POST /purchases
- POST /upgrade/purchases
- POST /expenses
เอกสารแบบ Inline Document, APIs ที่จะได้รับผลกระทบ
- POST /quotations/inline
- POST /billing-notes/inline
- POST /upgrade/billing-notes/inline
- POST /tax-invoices/inline
- POST /upgrade/tax-invoices/inline
- POST /cash-invoices/inline
- POST /upgrade/cash-invoices/inline
- POST /upgrade/receipts/inline
- POST /purchases-orders/inline
- POST /upgrade/purchases-orders/inline
- POST /purchases/inline
- POST /upgrade/purchases/inline
- POST /expenses/inline
อัปเดตเอกสาร, APIs ที่จะได้รับผลกระทบ
- PUT /quotations/{id}
- PUT /billing-notes/{id}
- PUT /tax-invoices/{id}
- PUT /receipts/{id}
- PUT /purchases-orders/{id}
- PUT /purchases/{id}
เอกสารแบบ Simple Document พร้อมเก็บเงิน, APIs ที่จะได้รับผลกระทบ
- POST /tax-invoices/with-payment
- POST /upgrade/tax-invoices/with-payment
- POST /cash-invoices/with-payment
- POST /upgrade/cash-invoices/with-payment
- POST /upgrade/receipts/with-payment
- POST /purchases/with-payment
- POST /upgrade/purchases/with-payment
- POST /expenses/with-payment
เอกสารแบบ Inline Document พร้อมเก็บเงิน, APIs ที่จะได้รับผลกระทบ
- POST /tax-invoices/inline/with-payment
- POST /upgrade/tax-invoices/inline/with-payment
- POST /cash-invoices/inline/with-payment
- POST /upgrade/cash-invoices/inline/with-payment
- POST /upgrade/receipts/inline/with-payment
- POST /purchases/inline/with-payment
- POST /upgrade/purchases/inline/with-payment
- POST /expenses/inline/with-payment
เปลี่ยนสถานะเอกสารเป็น เก็บเงินแล้ว (paid), APIs ที่จะได้รับผลกระทบ
- POST /tax-invoices/payment
- POST /cash-invoices/payment
- POST /receipts/payment
- POST /purchases/payment
- POST /expenses/payment
APIs ที่จะได้รับผลกระทบในอนาคต (TBC)
- PUT /cash-invoices/{id}
- PUT /expenses/{id}