From bc9491433899321422e03b7ee771d1d412a509c6 Mon Sep 17 00:00:00 2001 From: Rohit Waghchaure Date: Sat, 20 Jan 2018 17:01:31 +0530 Subject: [PATCH] [Fix] Sales payment summary issue --- .../report/sales_payment_summary/sales_payment_summary.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/accounts/report/sales_payment_summary/sales_payment_summary.py b/erpnext/accounts/report/sales_payment_summary/sales_payment_summary.py index 6ad36f67d6..c2b145683d 100644 --- a/erpnext/accounts/report/sales_payment_summary/sales_payment_summary.py +++ b/erpnext/accounts/report/sales_payment_summary/sales_payment_summary.py @@ -37,7 +37,7 @@ def get_sales_payment_data(filters, columns): def get_conditions(filters): conditions = "1=1" - if filters.get("from_date"): conditions += "a.posting_date >= %(from_date)s" + if filters.get("from_date"): conditions += " and a.posting_date >= %(from_date)s" if filters.get("to_date"): conditions += " and a.posting_date <= %(to_date)s" if filters.get("company"): conditions += " and a.company=%(company)s" if filters.get("customer"): conditions += " and a.customer = %(customer)s"