Merge branch 'develop' into multi-barcode

This commit is contained in:
tundebabzy
2018-01-10 21:49:27 +01:00
committed by GitHub
414 changed files with 105304 additions and 77387 deletions

View File

@@ -418,6 +418,6 @@ def get_batch_numbers(doctype, txt, searchfield, start, page_len, filters):
'where (`tabBatch`.expiry_date >= CURDATE() or `tabBatch`.expiry_date IS NULL)'
if filters and filters.get('item_code'):
query += 'where item = %(item_code)s' % filters
query += 'and item = %(item_code)s'
return frappe.db.sql(query)
return frappe.db.sql(query, filters)