diff options
| author | Joren Van Onder <jov@odoo.com> | 2018-11-05 12:24:23 -0800 |
|---|---|---|
| committer | De Paoli Quentin <qdp@odoo.com> | 2018-11-07 09:25:29 +0100 |
| commit | b9e6adcaf7dd87f8a625588a03690e4a9f9cbc02 (patch) | |
| tree | b8f76c22079234c9f20f3ab164762780cad670d6 /addons/web/static/src | |
| parent | dc35de9d30bb39f87b1554e214dd2f22eb6bc202 (diff) | |
[FIX] account: reconcile payments against min date_maturity journal item
1. Create a payment term with:
- 50% due now
- balance due in 14 days
2. Validate an invoice with this payment term and partner Agrolait
3. Create a payment from Agrolait with the 50% due
4. Add this outstanding credit to the invoice
It is reconciled with the balance due in 14 days instead of what is
due now. Because of this e.g. the Aged Receivable report will show the
customer being overdue with a payment.
This issue was first fixed in 9.0 at
adad192cc0018ce6838feb2a954044ee0b623841. It was then reintroduced in
saas-11.4 at d3d26120614139fd7d7e888bd66d21de5158a034. This commit
adds a test to avoid regressions like this.
To fix the issue this sorts journal items by their Due Date if there
is one. Otherwise we use the date from the journal entry as before.
Note that before this commit journal items were not sorted at all by
the two 'sorted' statements. sorted returns a sorted recordset, it
doesn't modify the recordset it's called on.
opw-1906665
Diffstat (limited to 'addons/web/static/src')
0 files changed, 0 insertions, 0 deletions
