From 803ed904a9aa1201af0b7a701861ad03a8306fcd Mon Sep 17 00:00:00 2001 From: Devin Slauenwhite Date: Wed, 28 Feb 2024 20:33:25 -0500 Subject: [PATCH] fix: show future payments allocated sales returns is considered as payment (cherry picked from commit 3381d0d94525cc2900ba23a69be644b6dae7a483) --- .../accounts/report/accounts_receivable/accounts_receivable.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/accounts/report/accounts_receivable/accounts_receivable.py b/erpnext/accounts/report/accounts_receivable/accounts_receivable.py index c3ebb018ae9..609a4abe66f 100644 --- a/erpnext/accounts/report/accounts_receivable/accounts_receivable.py +++ b/erpnext/accounts/report/accounts_receivable/accounts_receivable.py @@ -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