From 89f6f0f46f97d8847254f387744eb6723e50a1ff Mon Sep 17 00:00:00 2001 From: Mihir Kandoi Date: Fri, 30 Jan 2026 11:37:21 +0530 Subject: [PATCH] fix(barcode): failing request when item has both batch and serial --- erpnext/public/js/utils/barcode_scanner.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext/public/js/utils/barcode_scanner.js b/erpnext/public/js/utils/barcode_scanner.js index 9ee1029f345..dd585041d71 100644 --- a/erpnext/public/js/utils/barcode_scanner.js +++ b/erpnext/public/js/utils/barcode_scanner.js @@ -138,14 +138,14 @@ erpnext.utils.BarcodeScanner = class BarcodeScanner { frappe.run_serially([ () => this.set_selector_trigger_flag(data), - () => this.set_serial_no(row, serial_no), - () => this.set_batch_no(row, batch_no), () => this.set_barcode(row, barcode), () => this.set_warehouse(row), () => this.set_item(row, item_code, barcode, batch_no, serial_no).then((qty) => { this.show_scan_message(row.idx, !is_new_row, qty); }), + () => this.set_serial_no(row, serial_no), + () => this.set_batch_no(row, batch_no), () => this.clean_up(), () => this.set_barcode_uom(row, uom), () => this.revert_selector_flag(),