From d1969563071af34f44845897d73ab1d05cf00807 Mon Sep 17 00:00:00 2001 From: Pandiyan5273 Date: Sat, 17 Jan 2026 20:28:04 +0530 Subject: [PATCH] fix: prevent UOM from updating incorrectly while scanning barcode (cherry picked from commit 30263b26a5f4a87585d6b2576effe7c9375f2916) --- erpnext/public/js/utils/barcode_scanner.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/public/js/utils/barcode_scanner.js b/erpnext/public/js/utils/barcode_scanner.js index 9f83f04b53f..0d93fd21382 100644 --- a/erpnext/public/js/utils/barcode_scanner.js +++ b/erpnext/public/js/utils/barcode_scanner.js @@ -138,7 +138,6 @@ erpnext.utils.BarcodeScanner = class BarcodeScanner { frappe.run_serially([ () => this.set_selector_trigger_flag(data), - () => this.set_barcode_uom(row, uom), () => this.set_serial_no(row, serial_no), () => this.set_batch_no(row, batch_no), () => this.set_barcode(row, barcode), @@ -148,6 +147,7 @@ erpnext.utils.BarcodeScanner = class BarcodeScanner { this.show_scan_message(row.idx, !is_new_row, qty); }), () => this.clean_up(), + () => this.set_barcode_uom(row, uom), () => this.revert_selector_flag(), () => resolve(row), ]);