diff options
| author | Nicolas Lempereur <nle@odoo.com> | 2016-08-11 11:54:40 +0200 |
|---|---|---|
| committer | Nicolas Lempereur <nle@odoo.com> | 2016-08-11 15:33:40 +0200 |
| commit | 1924fb4bb95b7dd9ca25d55da56297084355a9c2 (patch) | |
| tree | e25f2932f8896ae1dc4f2dfb554dd46b38a474cc /addons/web_editor/static/src/js/snippets.editor.js | |
| parent | cba50c30aba5ba37a9a58d2cf57ee34f3c963b61 (diff) | |
[FIX] account: don't use abs price in invoice report
The field price_subtotal_signed on an invoice line contains the line
subtotal:
- untouched if the invoice is of in_refund or out_invoice type,
- negated if the invoice is of in_invoice or out_refund type
At one point in time (not found), commit 649b289f using absolute value
of price_subtotal was introduced because price_subtotal_signed sometimes
had the wrong sign.
But this is source of an issue since it is possible to have an invoice with
two lines such as : 100€ and -20€, the report would then display 120, whilst
80 should have appeared.
This commit remove the use of absolute value, and if some old report data
(pre saas-6 migration with wrong migration script) are reported wrong
for an instance, it should be corrected manually.
opw-683952
closes #13118
Diffstat (limited to 'addons/web_editor/static/src/js/snippets.editor.js')
0 files changed, 0 insertions, 0 deletions
