feat: enhance barcode scanner to support warehouse scanning (#48865)

Co-authored-by: Sagar Vora <16315650+sagarvora@users.noreply.github.com>
This commit is contained in:
Soni Karm
2025-08-14 11:32:02 +05:30
committed by GitHub
parent 4cd0db764f
commit 227fadc541
29 changed files with 329 additions and 47 deletions

View File

@@ -6,6 +6,7 @@ erpnext.TransactionController = class TransactionController extends erpnext.taxe
setup() {
super.setup();
let me = this;
this.barcode_scanner = new erpnext.utils.BarcodeScanner({ frm: this.frm });
this.set_fields_onload_for_line_item();
this.frm.ignore_doctypes_on_cancel_all = ["Serial and Batch Bundle"];
@@ -473,8 +474,7 @@ erpnext.TransactionController = class TransactionController extends erpnext.taxe
scan_barcode() {
frappe.flags.dialog_set = false;
const barcode_scanner = new erpnext.utils.BarcodeScanner({frm:this.frm});
barcode_scanner.process_scan();
this.barcode_scanner.process_scan();
}
barcode(doc, cdt, cdn) {