Merge branch 'develop' into fix-margin-for-filter
This commit is contained in:
commit
c798c6abbd
@ -611,7 +611,7 @@ def get_partywise_advanced_payment_amount(party_type, posting_date = None, futur
|
|||||||
cond = "posting_date <= '{0}'".format(posting_date)
|
cond = "posting_date <= '{0}'".format(posting_date)
|
||||||
|
|
||||||
if company:
|
if company:
|
||||||
cond += "and company = '{0}'".format(frappe.db.escape(company))
|
cond += "and company = {0}".format(frappe.db.escape(company))
|
||||||
|
|
||||||
data = frappe.db.sql(""" SELECT party, sum({0}) as amount
|
data = frappe.db.sql(""" SELECT party, sum({0}) as amount
|
||||||
FROM `tabGL Entry`
|
FROM `tabGL Entry`
|
||||||
|
@ -90,7 +90,7 @@ class PayrollEntry(Document):
|
|||||||
cond = ''
|
cond = ''
|
||||||
for f in ['company', 'branch', 'department', 'designation']:
|
for f in ['company', 'branch', 'department', 'designation']:
|
||||||
if self.get(f):
|
if self.get(f):
|
||||||
cond += " and t1." + f + " = '" + self.get(f).replace("'", "\'") + "'"
|
cond += " and t1." + f + " = " + frappe.db.escape(self.get(f))
|
||||||
|
|
||||||
return cond
|
return cond
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user