Merge pull request #44699 from ruthra-kumar/backport_v14_pr_44676

fix: remove invalid filter in Account Receivable report (backport #44676)
This commit is contained in:
ruthra kumar
2024-12-13 17:53:28 +05:30
committed by GitHub

View File

@@ -529,9 +529,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