mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-14 02:04:17 +00:00
fix: prevent UOM from updating incorrectly while scanning barcode
(cherry picked from commit 30263b26a5)
This commit is contained in:
@@ -138,7 +138,6 @@ erpnext.utils.BarcodeScanner = class BarcodeScanner {
|
|||||||
|
|
||||||
frappe.run_serially([
|
frappe.run_serially([
|
||||||
() => this.set_selector_trigger_flag(data),
|
() => this.set_selector_trigger_flag(data),
|
||||||
() => this.set_barcode_uom(row, uom),
|
|
||||||
() => this.set_serial_no(row, serial_no),
|
() => this.set_serial_no(row, serial_no),
|
||||||
() => this.set_batch_no(row, batch_no),
|
() => this.set_batch_no(row, batch_no),
|
||||||
() => this.set_barcode(row, barcode),
|
() => 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.show_scan_message(row.idx, !is_new_row, qty);
|
||||||
}),
|
}),
|
||||||
() => this.clean_up(),
|
() => this.clean_up(),
|
||||||
|
() => this.set_barcode_uom(row, uom),
|
||||||
() => this.revert_selector_flag(),
|
() => this.revert_selector_flag(),
|
||||||
() => resolve(row),
|
() => resolve(row),
|
||||||
]);
|
]);
|
||||||
|
|||||||
Reference in New Issue
Block a user