This page contains examples of issues with Data consistency in Folio. The issues could fall into one of the following categories:
- There is no logic to make sure a data is consistent across a set of modules
- There is a logic to perform data consistency, but it isn't reliable and can lead to inconsistent data in a set of modules
Business Flows
Approve invoice
Pay invoice
- Fetch invoice (mod-invoice)
Process prorated adjustment (mod-invoice)
2.1. Fetch invoice lines by invoice id (mod-invoice → mod-invoice-storage)
2.2. Store invoice lines (mod-invoice → mod-invoice-storage)- Handle payment and credits transactions (mod-finance → mod-finance-storage)
- Store invoice with new status (mod-invoice → mod-invoice-storage)
- Update voucher (mod-invoice)
5.1. Fetch voucher lines by invoice id (mod-invoice → mod-invoice-storage)
5.2. Fetch invoice lines by invoice id (mod-invoice → mod-invoice-storage)
5.3. Store voucher (mod-invoice → mod-invoice-storage)
5.4. Store voucher lines (mod-invoice → mod-invoice-storage)