[minor] Packing Slip get_query

This commit is contained in:
Anand Doshi 2015-01-27 13:18:01 +05:30
parent 8147f74e4e
commit 6f701b3b6a

View File

@ -166,4 +166,4 @@ def item_details(doctype, txt, searchfield, start, page_len, filters):
and %s like "%s" %s
limit %s, %s """ % ("%s", searchfield, "%s",
get_match_cond(doctype), "%s", "%s"),
(filters["delivery_note"], "%%%s%%" % txt, start, page_len))
((filters or {}).get("delivery_note"), "%%%s%%" % txt, start, page_len))