fix: Fiter passing fix in get batch query (#18131)

This commit is contained in:
Deepesh Garg
2019-07-02 10:10:55 +05:30
committed by Nabin Hait
parent f949c5ddf7
commit 78a86af7fd
2 changed files with 4 additions and 10 deletions

View File

@@ -296,7 +296,6 @@ def get_batch_no(doctype, txt, searchfield, start, page_len, filters):
order by batch.expiry_date, sle.batch_no desc
limit %(start)s, %(page_len)s""".format(cond, match_conditions=get_match_cond(doctype)), args)
if batch_nos:
return batch_nos
else:
return frappe.db.sql("""select name, concat('MFG-', manufacturing_date), concat('EXP-',expiry_date) from `tabBatch` batch