Merge lp:~synerpgy/openobject-addons/addons_61_fix into lp:openobject-addons/6.1
Status: | Needs review |
---|---|
Proposed branch: | lp:~synerpgy/openobject-addons/addons_61_fix |
Merge into: | lp:openobject-addons/6.1 |
Diff against target: |
11 lines (+0/-1) 1 file modified
account/account_invoice.py (+0/-1) |
To merge this branch: | bzr merge lp:~synerpgy/openobject-addons/addons_61_fix |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
OpenERP Core Team | Pending | ||
Review via email: mp+139263@code.launchpad.net |
Description of the change
Hi guys,
I want to point out a rounding issue I think I have found in tax line computation. As you can see, my patch is very simple.
Here is my real case :
price unit : 102.50, quantity 2, tax 7% included
In account.
round(102.50 * 2 / 1.07)
But in tax line, base field, I have the value 191.58. After some research I found the computation made :
round(round(102.50 / 1.07) * 2)
which is wrong for me.
My MP remove this useless round. Why did you made it? It's clearly a voluntary act.
I may be wrong in my computation and round(round(102.50 / 1.07) * 2) would be the correct one.
But in this case : the subtotal account.
Regards,
Yannick.
Unmerged revisions
- 7100. By yannick <yannick@serveur-perso>
-
Correct tax rounding issue