fix: serial and batch selector
diff --git a/erpnext/public/js/controllers/transaction.js b/erpnext/public/js/controllers/transaction.js
index b10898a..2c8e50c 100644
--- a/erpnext/public/js/controllers/transaction.js
+++ b/erpnext/public/js/controllers/transaction.js
@@ -524,6 +524,8 @@
if (r.message &&
(r.message.has_batch_no || r.message.has_serial_no)) {
frappe.flags.hide_serial_batch_dialog = false;
+ } else {
+ show_batch_dialog = false;
}
});
},
diff --git a/erpnext/public/js/utils/serial_no_batch_selector.js b/erpnext/public/js/utils/serial_no_batch_selector.js
index 0e0ef33..382ae2c 100644
--- a/erpnext/public/js/utils/serial_no_batch_selector.js
+++ b/erpnext/public/js/utils/serial_no_batch_selector.js
@@ -29,6 +29,7 @@
primary_action: () => this.update_ledgers()
});
+ this.dialog.set_value("qty", this.item.qty);
this.dialog.show();
}
@@ -127,7 +128,6 @@
{
fieldtype: 'Float',
fieldname: 'qty',
- default: this.item.qty || 0,
label: __('Qty to Fetch'),
onchange: () => this.get_auto_data()
},