summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js
diff options
context:
space:
mode:
authorDenis Ledoux <dle@odoo.com>2016-10-20 13:41:25 +0200
committerDenis Ledoux <dle@odoo.com>2016-10-20 13:48:01 +0200
commitafc2497a48ac796e50abbbdbda45abff272f80a9 (patch)
tree3520764745bf173bdf106d3c8d12d509ae93bbe4 /addons/web/static/src/js
parente69b0d9876016e6cd8f846c705a0c028cf62defd (diff)
[FIX] account: invoice report, advances counted twice
The below revision force the use of `ABS` on the `price_subtotal_signed` because of a migration issue: 649b289fa10fcfd654a68ef6c923a07475f10296 This leads to issues regarding the advances, in `out_invoice` invoices, where this amount `price_subtotal_signed` is negative, and should remain negative in this report, otherwise the advance is counted twice: Once with the advance invoice, and a second in the actual invoice where the advance is removed with a line with a negative `price_subtotal` e.g. - A sale order of 500€ without taxes - Create an advance invoice for an advance payment of 10%: 50€ without taxes - A second invoice with the remaining: 450€ without taxes In the invoices report, the total without taxes for this customer was displayed as 600€ (50 + 500 + 50) instead of 500€ (50 + 500 - 50) opw-682390
Diffstat (limited to 'addons/web/static/src/js')
0 files changed, 0 insertions, 0 deletions