diff options
| author | Nicolas Martinelli <nim@odoo.com> | 2017-10-11 09:50:15 +0200 |
|---|---|---|
| committer | Nicolas Martinelli <nim@odoo.com> | 2017-10-11 09:56:59 +0200 |
| commit | 02dffa45ae1119c813931c0ed19fa92db3096209 (patch) | |
| tree | 5a7324c41bd41b627e2ff5137b9a8a03a0f4903f /addons/web/static/src/js/views/basic/basic_controller.js | |
| parent | c7e9a8f74f2a825eb4107b31fe283687331d17a6 (diff) | |
[FIX] hr_expense: included tax and round globally
- Set 'Tax calculation rounding method' to 'Round Globally'
- Create a expense product with a tax of 20% included in the price
- Create a expense of 19.99
- Submit the expense in a expense sheet
- Validate the expense
- Post the expense
- Register a payment of 19.99
The expense is not set as paid.
The source of the issue is that the tax line is created without being
rounded. In the specific example, two lines are created with amounts:
- 16.658
- 3.33166667 (Tax)
This introduces rounding error in the computation of the matched
percentage, and the expense is not set as paid.
We force the rounding of the taxes since the 'Round Globally' option has
no impact on an expense report.
opw-773908
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions
