fix: dont reset barcode in scan mode
This commit is contained in:
parent
1736ab57ac
commit
f83a1c1989
@ -226,7 +226,7 @@ frappe.ui.form.on("Stock Reconciliation Item", {
|
||||
|
||||
warehouse: function(frm, cdt, cdn) {
|
||||
var child = locals[cdt][cdn];
|
||||
if (child.batch_no) {
|
||||
if (child.batch_no && !frm.doc.scan_mode) {
|
||||
frappe.model.set_value(child.cdt, child.cdn, "batch_no", "");
|
||||
}
|
||||
|
||||
@ -235,7 +235,7 @@ frappe.ui.form.on("Stock Reconciliation Item", {
|
||||
|
||||
item_code: function(frm, cdt, cdn) {
|
||||
var child = locals[cdt][cdn];
|
||||
if (child.batch_no) {
|
||||
if (child.batch_no && !frm.doc.scan_mode) {
|
||||
frappe.model.set_value(cdt, cdn, "batch_no", "");
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user