← Back to team overview

openerp-india team mailing list archive

[Bug 977300] Re: Invoice line subtotal rounding issue

 

Hello,

I have checked further ,But ended with same result.
For your more reference ,I have attached screen-shot.Please have a look.

I have tested with following Revision Number

Server: 4140
client: 2300
Addons: 6734

Thanks!!

-- 
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):
  Incomplete

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