Merge pull request #25107 from deepeshgarg007/stock_entry_serial_batch_selector
fix: Hide serial and batch selector in Stock Entry
This commit is contained in:
commit
232c127295
@ -100,6 +100,13 @@ frappe.ui.form.on('Stock Entry', {
|
|||||||
|
|
||||||
frm.add_fetch("bom_no", "inspection_required", "inspection_required");
|
frm.add_fetch("bom_no", "inspection_required", "inspection_required");
|
||||||
erpnext.accounts.dimensions.setup_dimension_filters(frm, frm.doctype);
|
erpnext.accounts.dimensions.setup_dimension_filters(frm, frm.doctype);
|
||||||
|
|
||||||
|
frappe.db.get_single_value('Stock Settings', 'disable_serial_no_and_batch_selector')
|
||||||
|
.then((value) => {
|
||||||
|
if (value) {
|
||||||
|
frappe.flags.hide_serial_batch_dialog = true;
|
||||||
|
}
|
||||||
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
setup_quality_inspection: function(frm) {
|
setup_quality_inspection: function(frm) {
|
||||||
@ -721,7 +728,7 @@ frappe.ui.form.on('Stock Entry Detail', {
|
|||||||
no_batch_serial_number_value = !d.batch_no;
|
no_batch_serial_number_value = !d.batch_no;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (no_batch_serial_number_value) {
|
if (no_batch_serial_number_value && !frappe.flags.hide_serial_batch_dialog) {
|
||||||
erpnext.stock.select_batch_and_serial_no(frm, d);
|
erpnext.stock.select_batch_and_serial_no(frm, d);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user