tax base rounding issue
Bug #994445 reported by
Ferdinand
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Committed
|
Medium
|
OpenERP Publisher's Warranty Team |
Bug Description
the tax base (price_unit * qty ) must be rounded not the price_unit itself
currently there are differences between line subtotal and tax base especially if Account precision and currency precision are different
Related branches
lp:~openerp-dev/openobject-addons/trunk-bug-994445-rmu
- Amit Parik (community): Approve
- OpenERP Core Team: Pending requested
-
Diff: 20 lines (+2/-2)1 file modifiedaccount/account_invoice.py (+2/-2)
lp:~openerp-dev/openobject-addons/6.0-opw-574683-ksa
- Niels Huylebroeck (community): Approve
- Naresh(OpenERP): Pending requested
-
Diff: 12 lines (+1/-1)1 file modifiedaccount/invoice.py (+1/-1)
lp:~credativ/openobject-addons/6.1-fix-tax-baseamount-differ-invoice
- Richard Lewis (community): Approve
-
Diff: 21 lines (+2/-3)1 file modifiedaccount/account_invoice.py (+2/-3)
Changed in openobject-addons: | |
assignee: | nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3) |
importance: | Undecided → Medium |
status: | New → Confirmed |
tags: | added: maintenance |
Changed in openobject-addons: | |
assignee: | OpenERP R&D Addons Team 3 (openerp-dev-addons3) → OpenERP Publisher's Warranty Team (openerp-opw) |
To post a comment you must log in.
Hello,
I have checked this issue .It's good improvement.
Let me explain
Suppose my qty =4.25 and unit price =5.60 .Now with current behavior it will take subtotal =24 and base=26 .
As per current code it will take values like below.
First it will round the value of price unit 6(rounding of 5.60) then it will multiply by qty ,So the value is (4.25*6=26(After float rounding).
After the fix the correct values is 5.6*4.25 = 23.8 and After the rounding takes the base amount 24 which is same as a Subtotal
Thanks!!