ERPNext 13 POS - Barcode for Batches

It is important to have a separate Barcode for each of the batches, especially for medical and food outlets.

Cashiers need to scan batch-barcodes instead of item-barcode.

We can just add a field for the barcode on batch form and include a search for batch-barcode on POS.

Please add following lines in /selling/page/point-of-sale/point-of-sale.py

def search_serial_or_batch_or_barcode_number(search_value):

batch_barcode_data = frappe.db.get_value(‘Batch’, {‘barcode’: search_value}, [‘name as batch_no’, ‘item as item_code’,‘barcode as barcode’], as_dict=True)
if batch_barcode_data:
return batch_barcode_data