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:
Nabin Hait
2019-11-13 18:49:45 +05:30
committed by GitHub
parent 437d3e37d6
commit 3b38a9e418
2 changed files with 8 additions and 1 deletions

View File

@@ -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)

View File

@@ -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