mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-20 01:55:01 +00:00
fix: serial_no_selector showing for non serialized batched item (#20851)
This commit is contained in:
@@ -964,10 +964,8 @@ erpnext.stock.select_batch_and_serial_no = (frm, item) => {
|
||||
}
|
||||
}
|
||||
|
||||
if(item && item.has_serial_no
|
||||
&& frm.doc.purpose === 'Material Receipt') {
|
||||
return;
|
||||
}
|
||||
if(item && !item.has_serial_no && item.has_batch_no) return;
|
||||
if (frm.doc.purpose === 'Material Receipt') return;
|
||||
|
||||
frappe.require("assets/erpnext/js/utils/serial_no_batch_selector.js", function() {
|
||||
new erpnext.SerialNoBatchSelector({
|
||||
|
||||
Reference in New Issue
Block a user