summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_model.js
diff options
context:
space:
mode:
authorXavier Morel <xmo@odoo.com>2017-04-21 17:21:21 +0200
committerNicolas Martinelli <nim@odoo.com>2017-04-24 11:58:42 +0200
commit577d9863919d5b1a9d8a21db81123f90949e1342 (patch)
tree6a120b481f38ff027a5071b630f0e7a0b963be7a /addons/web/static/src/js/views/basic/basic_model.js
parent5b502841276dda0dbc0161fd0fa080d1790086bb (diff)
[FIX] account: subtract refund amount from "awaiting payments" total
Currently the amounts of all invoices (linked to sale or purchase journals) is summed regardless of these invoices being bills or refunds, this means e.g. if you create an invoice for 1000 then a refund for 500 on this invoice, the dashboard will display an "awaiting payment" total of 1500 which while technically correct is not really logical or helpful from a user's POV. Fix summation to take in account the invoice type (invoice or refund) and remove refund amount from the total amount. Intent validated by @lap-odoo, also not ignoring or removing refunds from count to avoid situations like "0 Awaiting Payments [for] $-1200" which would be really strange. OPW-728860
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_model.js')
0 files changed, 0 insertions, 0 deletions