fix(pos): Return empty dict if no results found (#16124)

This commit is contained in:
Rohan 2018-12-10 17:16:39 +05:30 committed by Rushabh Mehta
parent 0c3c148316
commit 39b31ece31

View File

@ -125,6 +125,8 @@ def search_serial_or_batch_or_barcode_number(search_value):
if batch_no_data:
return batch_no_data
return {}
def get_conditions(item_code, serial_no, batch_no, barcode):
if serial_no or batch_no or barcode:
return frappe.db.escape(item_code), "i.name = %(item_code)s"