From 578ca230feb1cba07d89a81f15ffa35b70d80bf0 Mon Sep 17 00:00:00 2001 From: ljain112 Date: Thu, 12 Dec 2024 15:15:07 +0530 Subject: [PATCH] fix: remove invalid filter in Account Receivable report --- .../report/accounts_receivable/accounts_receivable.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/erpnext/accounts/report/accounts_receivable/accounts_receivable.py b/erpnext/accounts/report/accounts_receivable/accounts_receivable.py index 755bf37af631..4b6edc397d0e 100644 --- a/erpnext/accounts/report/accounts_receivable/accounts_receivable.py +++ b/erpnext/accounts/report/accounts_receivable/accounts_receivable.py @@ -551,9 +551,7 @@ def get_payment_terms(self, row): self.append_payment_term(row, d, term) def append_payment_term(self, row, d, term): - if ( - self.filters.get("customer") or self.filters.get("supplier") - ) and d.currency == d.party_account_currency: + if d.currency == d.party_account_currency: invoiced = d.payment_amount else: invoiced = d.base_payment_amount