Merge pull request #5108 from neilLasrado/expense-querry
Fixed bug in get expense query
This commit is contained in:
commit
948ebfef16
@ -362,6 +362,6 @@ def get_expense_account(doctype, txt, searchfield, start, page_len, filters):
|
|||||||
{condition} {match_condition}"""
|
{condition} {match_condition}"""
|
||||||
.format(condition=condition, key=frappe.db.escape(searchfield),
|
.format(condition=condition, key=frappe.db.escape(searchfield),
|
||||||
match_condition=get_match_cond(doctype)), {
|
match_condition=get_match_cond(doctype)), {
|
||||||
'company': filters['company'],
|
'company': filters.get("company", ""),
|
||||||
'txt': "%%%s%%" % frappe.db.escape(txt)
|
'txt': "%%%s%%" % frappe.db.escape(txt)
|
||||||
})
|
})
|
Loading…
x
Reference in New Issue
Block a user