openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #10136
[Bug 977300] Re: Invoice line subtotal rounding issue
Here is simple patch.
** Patch added: "patch.diff"
https://bugs.launchpad.net/openobject-addons/+bug/977300/+attachment/3035085/+files/patch.diff
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/977300
Title:
Invoice line subtotal rounding issue
Status in OpenERP Addons (modules):
New
Bug description:
I have faced rounding issue with quantity 2.5 and price 4.83.
[RESULT OBSERVED]
2.5 x 4.83 = 12.07
[RESULT EXPECTED]
2.5 x 4.83 = 12.08
I found that issue came from the account compute_all() method
http://bazaar.launchpad.net/~openerp/openobject-
addons/trunk/view/head:/account/account.py#L2072. For currency OpenERP
use float_round() function to "fix" rounding issue, but here python
default round() function used and of course it don't round correctly.
And from here comes, why in the other accounting parts float_round()
is not used instead round()?
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/977300/+subscriptions
References