mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-22 06:29:20 +00:00
feat: increment picked_qty on scan_barcode
This commit is contained in:
@@ -158,6 +158,17 @@ frappe.ui.form.on('Pick List', {
|
|||||||
get_query_filters: get_query_filters
|
get_query_filters: get_query_filters
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
},
|
||||||
|
scan_barcode: (frm) => {
|
||||||
|
const opts = {
|
||||||
|
frm,
|
||||||
|
items_table_name: 'locations',
|
||||||
|
qty_field: 'picked_qty',
|
||||||
|
max_qty_field: 'qty',
|
||||||
|
allow_new_row: false
|
||||||
|
};
|
||||||
|
const barcode_scanner = new erpnext.utils.BarcodeScanner(opts);
|
||||||
|
barcode_scanner.process_scan();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user