mirror of
https://github.com/frappe/erpnext.git
synced 2025-12-03 18:35:36 +00:00
Merge pull request #50850 from aerele/support-53932
fix(barcode_scanner): set serial and batch before item to prevent FIFO override
This commit is contained in:
@@ -138,15 +138,15 @@ 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_item(row, item_code, barcode, batch_no, serial_no).then((qty) => {
|
|
||||||
this.show_scan_message(row.idx, !is_new_row, qty);
|
|
||||||
}),
|
|
||||||
() => this.set_barcode_uom(row, uom),
|
() => 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),
|
||||||
() => this.set_warehouse(row),
|
() => 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.clean_up(),
|
() => this.clean_up(),
|
||||||
() => this.revert_selector_flag(),
|
() => this.revert_selector_flag(),
|
||||||
() => resolve(row),
|
() => resolve(row),
|
||||||
|
|||||||
Reference in New Issue
Block a user