Fiscal rounding error
Bug #955242 reported by
Kellogs
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
New report intrastat |
Invalid
|
Undecided
|
Unassigned |
Bug Description
In France, fiscal rounding is as such:
* between 0 and 0,5 => rounded to 0
* between 0,5 and 1 => rounded to 1
As a result ... each line is false.
For example: 4,99 € becomre 4 euros.
When it should be 5€.
To post a comment you must log in.
>>> int(round(4.99))
5
>>> int(round(4.49))
4
THat's what's in the code, cf l10n_fr_ intrastat_ product/ intrastat_ product. py
So, for me, the current implementation is OK : a value of 4.99 will become 5 in DEB.