[6.1]Rounding issues with invoices

Bug #1045851 reported by ThinkOpen Solutions
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Confirmed
Low
OpenERP Publisher's Warranty Team

Bug Description

We're trying to integrate the invoices of the account module with another platform, but we've been having many problems related to the calculation of totals and subtotals.

I've reproduced the problem with a very simple invoice on a clean database, with just the base modules + account installed. Attached is a screenshot, but the situation is simple: we have a product with a price of 5.35€ and a 50% discount, so OpenERP calculates a line subtotal of 2.67€.

Unfortunately, this is not a reasonable value, since 5.35/2 is 2.675€, which should be - and is on the platform we're trying to integrate - 2.68€.

(You can check on WolframAlpha: http://www.wolframalpha.com/input/?i=%2850%25+of+5.35%29+rounded+to+3+significant+digits)

While the difference seems small, the accumulation of such errors is enough to cause problems, especially since accounting and payments are involved.

Tags: 6.1
Revision history for this message
ThinkOpen Solutions (tkodev) wrote :
Revision history for this message
Serpent Consulting Services (serpent-consulting-services) wrote :

ThinkOpen,

We just faced this issue suddenly on a live database where we started applying x.y% discounts via pricelist.

We actually faced them on bank statements.

You will always get such errors if your amounts are x.33333, x.6666.

In order to fix, we propose these ways:
1. Set Account decimal accuracy to be 4, which is an accurate solution.
-- We could not move on with this solution because our accountants do not need 4accuracy on reports and also on view.

2. Round every ugly looking float value to 4 (when its a price subtotal) and when used in making accounting entries, get them rounded by 2.
-- We could not enjoy the solution because our values are uglier.

3. Have an account that stores your difference, could it be 0.01,0.002, etc. Knowingly you wanna reconcile them, let them through validated and reconciled.

Hope this helps.

Thanks.

Changed in openobject-server:
status: New → Confirmed
status: Confirmed → New
Amit Parik (amit-parik)
affects: openobject-server → openobject-addons
Revision history for this message
DJ Patel (OpenERP) (mdi-openerp) wrote :

Hello,

I have checked your issue with latest trunk, 7.0 and its working fine with trunk as well as 7.0.
The issue is only reproduced in 6.1.

As per the bug management policy we are consider only blocking point on stable version. This issue is also need to fix on stable that's why I am assiging this to OPW team.

Thanks,
Divyesh

Changed in openobject-addons:
status: New → Confirmed
summary: - Rounding issues with invoices
+ [6.1]Rounding issues with invoices
tags: added: 6.1
removed: accounting rounding
Amit Parik (amit-parik)
Changed in openobject-addons:
assignee: nobody → OpenERP Publisher's Warranty Team (openerp-opw)
importance: Undecided → Low
Revision history for this message
Michael Karrer (michaelkarrer81) wrote :

Also this bug stops payments of pos

I think it is also related to:

https://bugs.launchpad.net/openobject-addons/+bug/1266969

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.