openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #10134
[Bug 977300] [NEW] Invoice line subtotal rounding issue
Public bug reported:
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()?
** Affects: openobject-addons
Importance: Undecided
Status: 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
Follow ups
-
[Bug 977300] Re: Invoice line subtotal rounding issue
From: qdp (OpenERP), 2012-07-25
-
[Bug 977300] Re: Invoice line subtotal rounding issue
From: qdp (OpenERP), 2012-07-25
-
[Bug 977300] Re: Invoice line subtotal rounding issue
From: Ravish(OpenERP), 2012-05-01
-
[Bug 977300] Re: Invoice line subtotal rounding issue
From: Ravish(OpenERP), 2012-04-12
-
[Bug 977300] Re: Invoice line subtotal rounding issue
From: Paulius Sladkevičius, 2012-04-11
-
[Bug 977300] Re: Invoice line subtotal rounding issue
From: Paulius Sladkevičius, 2012-04-11
-
[Bug 977300] Re: Invoice line subtotal rounding issue
From: Ravish(OpenERP), 2012-04-11
-
[Bug 977300] Re: Invoice line subtotal rounding issue
From: Ravish(OpenERP), 2012-04-11
-
[Bug 977300] Re: Invoice line subtotal rounding issue
From: Paulius Sladkevičius, 2012-04-10
-
[Bug 977300] Re: Invoice line subtotal rounding issue
From: Ravish(OpenERP), 2012-04-10
-
[Bug 977300] Re: Invoice line subtotal rounding issue
From: Paulius Sladkevičius, 2012-04-09
-
[Bug 977300] [NEW] Invoice line subtotal rounding issue
From: Paulius Sladkevičius, 2012-04-09
References