summaryrefslogtreecommitdiff
path: root/doc/reference/javascript_reference.rst
diff options
context:
space:
mode:
authorNicolas Martinelli <nim@odoo.com>2020-09-29 10:39:32 +0000
committerNicolas Martinelli <nim@odoo.com>2020-10-14 14:42:30 +0000
commit94353ebd6b47a286157f0559b194ff03ea49ff68 (patch)
tree22bb40118a42427ec83326eab88d8f05e301f367 /doc/reference/javascript_reference.rst
parente1f8d549895cd9c459e6350430f30d541d02838a (diff)
[FIX] account: wrong computation with currency rounding 0.05
- Create a tax: 5% Included in price - Set the currency rounding of the company to 0.05 (e.g. CHF) - Create the following invoice 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% The total amount of the invoice is 64.95 CHF instead of 65.00 CHF, even in a 'Round per line' configuration. It happens because `compute_all` rounds the amounts following the number of digits of the currency instead of using the `rounding` field. Note that there is a discrepancy between the POS computation and the Account computation: the POS already uses the `rounding` field instead of the number of digits: https://github.com/odoo/odoo/blob/80073c5430f0ab562dfc27572c108114161ebb25/addons/point_of_sale/static/src/js/models.js#L1855-L1991 opw-2341566
Diffstat (limited to 'doc/reference/javascript_reference.rst')
0 files changed, 0 insertions, 0 deletions