Merge pull request #12539 from rohitwaghchaure/minor_sales_payment_summary_issue

[Fix] Sales payment summary issue
This commit is contained in:
rohitwaghchaure 2018-01-19 11:34:48 +05:30 committed by GitHub
commit 39e0d1b7d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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"