openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #10171
[Bug 977300] Re: Invoice line subtotal rounding issue
Ravish,
check invoice screenshot and 3rd invoice line with description "test A"
and you can see that subtotal is not correct. I have tested this on the
v61 stable last revision.
** Attachment added: "photo 2012-04-10 17:35:13.png"
https://bugs.launchpad.net/openobject-addons/+bug/977300/+attachment/3040558/+files/photo%202012-04-10%2017%3A35%3A13.png
** Changed in: openobject-addons
Status: Incomplete => New
--
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