diff options
| author | Nicolas Martinelli <nim@odoo.com> | 2018-05-15 12:14:02 +0200 |
|---|---|---|
| committer | Nicolas Martinelli <nim-odoo@users.noreply.github.com> | 2018-05-16 11:10:58 +0200 |
| commit | 6fce298d7013379c4383e8368c40ee06d6146423 (patch) | |
| tree | ac487b39f62003eaf5abeb926781a77e72b9a164 /addons/web/static/src/js/views/basic/basic_controller.js | |
| parent | 25548eb7e963632668438f939401403431201904 (diff) | |
[FIX] account: tax computation at reconciliation
- Create a tax included of 7.7%
- Set the company rounding to 'Round Globally'
- Create a bank statement of 10.70, reconcile
- Add a manual line with the 7.7% tax
An extra line of 0.01 remains.
The remaining amount after subtracting the tax is `0.00499...`, which
is rounded to `0.005` by `Math.round(total*1000)/1000`, and finally
displayed as `0.01`.
The 'Round Globally' setting makes sense for objects containing multiple
lines, such as SO, PO or invoice. In the case of a reconciliation, we
can switch to the 'Round per line' config.
opw-1837986
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions
