tax base rounding issue

Bug #994445 reported by Ferdinand
20
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

Tags: maintenance

Related branches

Revision history for this message
Ferdinand (office-chricar) wrote :
Revision history for this message
Ravish(OpenERP) (rmu-openerp) wrote :

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!!

Amit Parik (amit-parik)
Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3)
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Ravish(OpenERP) (rmu-openerp) wrote :

Hello,

Please ignore comment #3 , This is the Right fix

 It has been fixed on lp:~openerp-dev/openobject-addons/trunk-bug-994445-rmu branch with Following Revision Number and Revision ID.

Revision Number:6779
Revision ID: <email address hidden>

This will soon merge with trunk

 Thank you!

Changed in openobject-addons:
status: Confirmed → Fix Committed
tags: added: maintenance
Revision history for this message
Kirti Savalia(OpenERP) (ksa-openerp) wrote :

Hello ,

This issue has been fixed in https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-opw-574683-ksa
revision-id: <email address hidden>
revno: 5222

It will be soon merged in the stable.

Thanks

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.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.