Merge lp:~therp-nl/banking-addons/ba61-lp1098699-fix_clieop_rounding_issue into lp:banking-addons/6.1
Proposed by
Stefan Rijnhart (Opener)
Status: | Merged |
---|---|
Merged at revision: | 152 |
Proposed branch: | lp:~therp-nl/banking-addons/ba61-lp1098699-fix_clieop_rounding_issue |
Merge into: | lp:banking-addons/6.1 |
Diff against target: |
12 lines (+1/-1) 1 file modified
account_banking_nl_clieop/wizard/clieop.py (+1/-1) |
To merge this branch: | bzr merge lp:~therp-nl/banking-addons/ba61-lp1098699-fix_clieop_rounding_issue |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Guewen Baconnier @ Camptocamp | Approve | ||
Alexandre Fayolle - camptocamp | Approve | ||
Holger Brunn (Therp) | Approve | ||
Review via email:
|
Description of the change
This branch fixes a rounding issue in the "clieop" export, which contains the amount encoded without the comma separator between euros and cents, i.e. as an integer. Amounts like €1,05 come out as €1,04 due to the internal Python representation of 100 * 1,05 as 104,99999999999. Using round() will thus give better results than int().
To post a comment you must log in.
looks good to me