mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-02 19:59:12 +00:00
fix: Batch/Serial Selector for Batched Item
This commit is contained in:
@@ -675,7 +675,13 @@ frappe.ui.form.on('Stock Entry Detail', {
|
||||
});
|
||||
refresh_field("items");
|
||||
|
||||
if (!d.serial_no) {
|
||||
let no_batch_serial_number_value = !d.serial_no;
|
||||
if (d.has_batch_no && !d.has_serial_no) {
|
||||
// check only batch_no for batched item
|
||||
no_batch_serial_number_value = !d.batch_no;
|
||||
}
|
||||
|
||||
if (no_batch_serial_number_value) {
|
||||
erpnext.stock.select_batch_and_serial_no(frm, d);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user