Fixed bug in get expense query

This commit is contained in:
Neil Trini Lasrado 2016-03-31 23:10:13 +05:30
parent 45c6b550f0
commit 30b97b0b45

View File

@ -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)
}) })