summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_controller.js
diff options
context:
space:
mode:
authorMartin Trigaux <mat@odoo.com>2017-05-17 15:08:37 +0200
committerMartin Trigaux <mat@odoo.com>2017-05-17 15:22:07 +0200
commitae1aec32c249114030f5201bb00c1801a95e87d8 (patch)
tree601c36181975de8065574a8598ef8355c2e0af82 /addons/web/static/src/js/views/basic/basic_controller.js
parent6de2990f8d45074d39917ab132791b3ddc7e6e30 (diff)
[FIX] point_of_sale: round taxes as in amount_tax
amount_tax compute method uses `price * (1 - (discount or 0.0) / 100.0)` _create_account_move_line method used `price * (100.0 - discount) / 100.0` with price = 9.95 and discount = 0.1 it makes a difference >>> 9.95 * 0.9 8.955 >>> 9.95 * 90.0 / 100.0 8.954999999999998 Cumulative errors makes a 1 cent difference between totals of the orders and computed amounts. The session could not be closed as debit != credit opw-743188
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions