diff options
| author | Martin Trigaux <mat@odoo.com> | 2018-01-25 13:31:39 +0100 |
|---|---|---|
| committer | Martin Trigaux <mat@odoo.com> | 2018-01-25 13:53:56 +0100 |
| commit | 7ee7262ccbc23a0e4d5fd241d6c740a6c80307c8 (patch) | |
| tree | 86bfdcc4afbedc8b3240e5d9aedd455cc7d0315f /addons/web/static/tests/fields/basic_fields_tests.js | |
| parent | d62a26a4295b1b4ae7755604cdc89c0188f4d41b (diff) | |
[FIX] point_of_sale: include untaxed amounts in tax lines
If some orders have no taxes (e.g. manual reimbursement with a negative amount)
the sum of taxes lines gave a different result than the total amount sold.
e.g.:
order 1: price 10€, including 2€ for taxes
order 2: price -5€, no taxes
report:
taxes:
20%, 2€ taxes, 8€ base amount
total sold:
5€
2+8 != 5
Also change line.price_subtotal as it was computed twice if there was two taxes
on a line (although it will probably never happen in the pos)
opw-805415
Diffstat (limited to 'addons/web/static/tests/fields/basic_fields_tests.js')
0 files changed, 0 insertions, 0 deletions
