diff options
| author | Denis Ledoux <dle@odoo.com> | 2015-08-19 18:20:21 +0200 |
|---|---|---|
| committer | Denis Ledoux <dle@odoo.com> | 2015-08-19 18:21:00 +0200 |
| commit | cfbd086b09faa77f44505e1ba952841e77da6002 (patch) | |
| tree | c825b0883f229a662b0ce2fb246022557e12cb9d /addons/web/controllers | |
| parent | 37a2f426a9b2ae6db40a68f3abef529fed11ee74 (diff) | |
[FIX] account: invoice lines to journal entries currency rounding
When converting an invoice in journal entries,
the invoice lines amounts must be currency rounded
not only when the invoice currency is different
than the company invoice,
but also when they are the same.
Otherwise, a rounding issue can happen
if the `Account` decimal accuracy is greater
than the currency rounding, the journal entries
total and the invoice total could be different.
e.g.
- Set decimal accuracy of Account and product to 4
- Create a supplier invoice, any supplier
- Add a line as follow:
- Product: None
- Quantity: 2057
- Price unit: 11.9150
- Tax: 16% (create a new tax with 0.16 as percentage)
- Validate the invoice
- In the other information tab of the invoice,
click on the journal entry
- Notice that the first line has as credit amount 28430.6150
While the invoice total is 28430.6200
- Now if you try to create a bank statement with one line
of -28430.6200 and as partner the supplier you chose
in the second step of this explanation, and try
to reconciliate it to the invoice created above,
the above won't be marked as paid, while it should.
opw-647639
Fixes #8135
Diffstat (limited to 'addons/web/controllers')
0 files changed, 0 insertions, 0 deletions
