diff options
| author | Nicolas Martinelli <nim@odoo.com> | 2016-09-15 08:54:59 +0200 |
|---|---|---|
| committer | Nicolas Martinelli <nim@odoo.com> | 2016-09-15 11:22:07 +0200 |
| commit | c3f4c7395383856eff92637a8e95eb6535ed9364 (patch) | |
| tree | 424dfa50d83da42294ca91c7509057ddef0ed91b /addons/barcodes/static/src/js/form_view_barcode_handler.js | |
| parent | 143ec3739196f7f69ad678822248850f9a3f6a32 (diff) | |
[FIX] account: monetaryIsZero
An issue arises in the following use case:
- Company rounding policy in "round globally"
- Tax excluded of 20 %
- Create a statement of 3.80 EUR
- Reconcile the statement thanks to the reconciliation widget
- Click on "Choose counterpart" in order to manually create a line to
reconcile with the 3.80 EUR statement
- Add an amount of 3.17 EUR, and choose the 20 % tax
The widget creates an extra line of 0.00EUR . This is because the
remaining amount is 0.004.
The reason lies in the `monetaryIsZero` function. There is a hardcoded
decimal precision of 4, while it should be 2 for EUR.
We add an extra parameter to the function so it is possible to adjust
the decimal precision required. Only the problematic calls are modified
to avoid unnecessary intrusive modification.
Closes #13452
opw-688399
Diffstat (limited to 'addons/barcodes/static/src/js/form_view_barcode_handler.js')
0 files changed, 0 insertions, 0 deletions
