From d225f5993b94b0dc5b0f36e571ea01b9dab7a6e7 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Wed, 11 Sep 2019 18:40:31 +0530 Subject: [PATCH] Show draft future payments as well --- .../report/accounts_receivable/accounts_receivable.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/erpnext/accounts/report/accounts_receivable/accounts_receivable.py b/erpnext/accounts/report/accounts_receivable/accounts_receivable.py index 8d6d6cb3982..4aec8c2ea53 100755 --- a/erpnext/accounts/report/accounts_receivable/accounts_receivable.py +++ b/erpnext/accounts/report/accounts_receivable/accounts_receivable.py @@ -364,7 +364,7 @@ class ReceivablePayableReport(object): on (ref.parent = payment_entry.name) where - payment_entry.docstatus = 1 + payment_entry.docstatus < 2 and payment_entry.posting_date > %s and payment_entry.party_type = %s """, (self.filters.report_date, self.party_type), as_dict=1) @@ -389,7 +389,7 @@ class ReceivablePayableReport(object): on (jea.parent = je.name) where - je.docstatus = 1 + je.docstatus < 2 and je.posting_date > %s and jea.party_type = %s and jea.reference_name is not null and jea.reference_name != '' @@ -685,4 +685,4 @@ class ReceivablePayableReport(object): 'datasets': rows }, "type": 'percentage' - } \ No newline at end of file + }