[Fix] Sales payment summary issue

This commit is contained in:
Rohit Waghchaure 2018-01-18 17:20:21 +05:30
parent c8e016522d
commit de420322b5

View File

@ -36,7 +36,7 @@ def get_sales_payment_data(filters, columns):
return data
def get_conditions(filters):
conditions = ""
conditions = "1=1"
if filters.get("from_date"): conditions += "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"