Fiscal rounding error

Bug #955242 reported by Kellogs
6
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€.

Revision history for this message
Alexis de Lattre (alexis-via) wrote :

>>> 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.

Changed in new-report-intrastat:
status: New → Invalid
Revision history for this message
Kellogs (jm-poure) wrote :

I double-checked and you are right.
All my apologies, sorry for the confusion.

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.