fix: remove invalid filter in Account Receivable report

This commit is contained in:
ljain112
2024-12-12 15:15:07 +05:30
committed by ruthra kumar
parent bdb60a51c3
commit fdfbb57779

View File

@@ -551,9 +551,7 @@ class ReceivablePayableReport:
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