Merge pull request #5108 from neilLasrado/expense-querry

Fixed bug in get expense query
This commit is contained in:
Rushabh Mehta 2016-04-01 11:44:11 +05:30
commit 948ebfef16

View File

@ -362,6 +362,6 @@ def get_expense_account(doctype, txt, searchfield, start, page_len, filters):
{condition} {match_condition}"""
.format(condition=condition, key=frappe.db.escape(searchfield),
match_condition=get_match_cond(doctype)), {
'company': filters['company'],
'company': filters.get("company", ""),
'txt': "%%%s%%" % frappe.db.escape(txt)
})