Sale total amount exception floating point issue

Bug #1308352 reported by Thomas Rehn
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenERP Connector - Magento
New
Undecided
Unassigned

Bug Description

The sale exceptions check for differing total and tax amounts between Magento and OpenERP. The current check is ... >= 0.01. However, because of floating point arithmetic this threshold does not detect all differences:
In [1]: 20.80-20.81
Out[1]: -0.00999999999999801

A better threshold would probably be 0.009.

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.