mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-09 00:01:18 +00:00
Accounts Receivable report fixes (#19575)
* fix: Set due date in accounts receivable based on payment terms * fix: Show AR summary based on outstanding
This commit is contained in:
@@ -187,7 +187,11 @@ class ReceivablePayableReport(object):
|
||||
self.data.append(row)
|
||||
|
||||
def set_invoice_details(self, row):
|
||||
row.update(self.invoice_details.get(row.voucher_no, {}))
|
||||
invoice_details = self.invoice_details.get(row.voucher_no, {})
|
||||
if row.due_date:
|
||||
invoice_details.pop("due_date", None)
|
||||
row.update(invoice_details)
|
||||
|
||||
if row.voucher_type == 'Sales Invoice':
|
||||
if self.filters.show_delivery_notes:
|
||||
self.set_delivery_notes(row)
|
||||
|
||||
@@ -36,6 +36,9 @@ class AccountsReceivableSummary(ReceivablePayableReport):
|
||||
self.filters.report_date) or {}
|
||||
|
||||
for party, party_dict in iteritems(self.party_total):
|
||||
if party_dict.outstanding <= 0:
|
||||
continue
|
||||
|
||||
row = frappe._dict()
|
||||
|
||||
row.party = party
|
||||
|
||||
Reference in New Issue
Block a user