[Fix] Sales payment summary issue
This commit is contained in:
parent
c8e016522d
commit
de420322b5
@ -36,7 +36,7 @@ def get_sales_payment_data(filters, columns):
|
|||||||
return data
|
return data
|
||||||
|
|
||||||
def get_conditions(filters):
|
def get_conditions(filters):
|
||||||
conditions = ""
|
conditions = "1=1"
|
||||||
if filters.get("from_date"): conditions += "a.posting_date >= %(from_date)s"
|
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("to_date"): conditions += " and a.posting_date <= %(to_date)s"
|
||||||
if filters.get("company"): conditions += " and a.company=%(company)s"
|
if filters.get("company"): conditions += " and a.company=%(company)s"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user