diff options
| author | Laurent Smet <las@openerp.com> | 2017-10-16 11:35:08 +0200 |
|---|---|---|
| committer | qdp-odoo <qdp@odoo.com> | 2017-10-16 11:35:08 +0200 |
| commit | 5afb5ecd04cf49be6bedb655b187b19a65e1e02d (patch) | |
| tree | 2eda33b5f98ec337bd2ef32442d809e0a824ac31 /addons/web_editor/static/src | |
| parent | dc5bb0d6b2806e81d1dd32839e6a600c8782bad3 (diff) | |
[FIX] account: fix complex tax computations (multiple price included taxes, etc.)
Suppose the correct computation:
seq | amount | incl | incl_base | base | amount
----------------------------------------------------
1 | 10% | t | t | 100.0 | 10.0
2 | 10% | | | 110.0 | 11.0
3 | 10% | t | | 110.0 | 11.0
4 | 10% | | | 110.0 | 11.0
5 | 10% | t | | 110.0 | 11.0
----------------------------------------------------
with an initial amount of 132. Without this commit, the base amount was computed by:
132 / 1.1 / 1.1 = 109.09
instead of:
132 / 1.2 = 110.0
see task: https://www.odoo.com/web#id=34471&view_type=form&model=project.task&action=333&active_id=967&menu_id=4720
Was PR #18275
Diffstat (limited to 'addons/web_editor/static/src')
0 files changed, 0 insertions, 0 deletions
