diff --git a/erpnext/stock/doctype/stock_entry/stock_entry.js b/erpnext/stock/doctype/stock_entry/stock_entry.js index 49f0b997f1..82e3dfcecb 100644 --- a/erpnext/stock/doctype/stock_entry/stock_entry.js +++ b/erpnext/stock/doctype/stock_entry/stock_entry.js @@ -798,7 +798,7 @@ erpnext.stock.bind_batch_serial_dialog_qty = (dialog, warehouse_details) => { }); serial_no_list_field.$input.on('input', function() { - serial_list = $(this).get_value().replace(/\s+/g, ' ').split(' '); + serial_list = serial_no_list_field.get_value().replace(/\s+/g, ' ').split(' '); update_quantity(0); }); }