diff options
| author | Nicolas Martinelli <nim@odoo.com> | 2020-09-29 10:39:56 +0000 |
|---|---|---|
| committer | Nicolas Martinelli <nim@odoo.com> | 2020-10-14 14:43:19 +0000 |
| commit | dad5e2a575448b68cc1b59880fecfe48dbe30a4e (patch) | |
| tree | 6bd76323aca8a08d7f0f41a095afd0b6fcef3124 /doc/reference/javascript_reference.rst | |
| parent | 94353ebd6b47a286157f0559b194ff03ea49ff68 (diff) | |
[FIX] account: wrong rounding with multi-currency
- Create a tax:
5%
Included in price
- Set the company currency to USD
- Set the currency rounding of CHF to 0.05
- Set the rate for CHF to 0.654065014
- Create the following invoice in CHF:
Set a payment term
Prod 1, 1 unit, 5.0 CHF, tax 5%
Prod 2, 1 unit, 10.0 CHF, tax 5%
Prod 3, 1 unit, 50.0 CHF, tax 5%
It is not possible to save the invoice because of an unbalanced journal
entry.
Indeed, the Receivable line is $99.30 while it should be $99.29. This
happens because we round the `total_balance` with the rounding precision
of the invoice currency while it is in the company currency.
closes odoo/odoo#58798
closes odoo/odoo#59978
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
Diffstat (limited to 'doc/reference/javascript_reference.rst')
0 files changed, 0 insertions, 0 deletions
