summaryrefslogtreecommitdiff
path: root/addons/web/static/tests/fields/basic_fields_tests.js
diff options
context:
space:
mode:
authorPierre Masereel <pim@odoo.com>2020-10-14 14:15:29 +0000
committerPierre Masereel <pim@odoo.com>2020-10-19 18:45:51 +0000
commitf8737b4676ea86abc0f39e448849453f28d4b10f (patch)
tree6ce5c4a4d458dc2e499130508f8ec08cd7140f1b /addons/web/static/tests/fields/basic_fields_tests.js
parent43e6f95b8d320854a84489a7007820a49be48cd2 (diff)
[FIX] point_of_sale: fix price computation for tax included
When you hava a fiscal position that that map one tax included into the price to another, the new amount is wrong. I we have a fiscal position that map a tax of 10% included to 20% included, and a product at 110$ having 10% included. When we map the tax from 10% to 20%, the new price is 100$ but should be 120$. This is because for now, the price is fixed to get the amount without tax, which perfectly works when destination tax is tax excluded. But when you call compute_all from a price with a tax included (20%) it keep the price and compute the tax amount out of this price. So to fix this issue, whent the origin tax and destination tax are included, we are computing the base amount (like before) and then we compute the new tax amount wihtout trying to find the tax amount out of the price. This will lead to have the same behavior between accounting and POS closes odoo/odoo#60237 X-original-commit: a0baa3751e1d8825c657464097f77f1957149065 Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
Diffstat (limited to 'addons/web/static/tests/fields/basic_fields_tests.js')
0 files changed, 0 insertions, 0 deletions