fix: show future payments allocated sales returns is considered as payment
(cherry picked from commit 3381d0d945)
This commit is contained in:
committed by
Mergify
parent
72db656054
commit
803ed904a9
@@ -673,7 +673,7 @@ class ReceivablePayableReport(object):
|
||||
else:
|
||||
future_amount_field = "future_amount_in_base_currency"
|
||||
|
||||
if row.remaining_balance > 0 and future.get(future_amount_field):
|
||||
if row.remaining_balance != 0 and future.get(future_amount_field):
|
||||
if future.get(future_amount_field) > row.outstanding:
|
||||
row.future_amount = row.outstanding
|
||||
future[future_amount_field] = future.get(future_amount_field) - row.outstanding
|
||||
|
||||
Reference in New Issue
Block a user