Sale total amount exception floating point issue
Bug #1308352 reported by
Thomas Rehn
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.009999999999
A better threshold would probably be 0.009.
To post a comment you must log in.