mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-09 08:02:51 +00:00
feat: Accounts Payable report based on payment terms (#19672)
This commit is contained in:
@@ -318,7 +318,7 @@ class ReceivablePayableReport(object):
|
||||
self.append_payment_term(row, d, term)
|
||||
|
||||
def append_payment_term(self, row, d, term):
|
||||
if self.filters.get("customer") and d.currency == d.party_account_currency:
|
||||
if (self.filters.get("customer") or self.filters.get("supplier")) and d.currency == d.party_account_currency:
|
||||
invoiced = d.payment_amount
|
||||
else:
|
||||
invoiced = flt(flt(d.payment_amount) * flt(d.conversion_rate), self.currency_precision)
|
||||
|
||||
Reference in New Issue
Block a user