mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-26 14:41:42 +01:00
fix: show stock entry button only if update stock is enabled
This commit is contained in:
@@ -30,7 +30,7 @@ frappe.ui.form.on('Inpatient Medication Entry', {
|
||||
};
|
||||
});
|
||||
|
||||
if (frm.doc.__islocal || frm.doc.docstatus !== 0)
|
||||
if (frm.doc.__islocal || frm.doc.docstatus !== 0 || !frm.doc.update_stock)
|
||||
return;
|
||||
|
||||
frm.add_custom_button(__('Make Stock Entry'), function() {
|
||||
|
||||
Reference in New Issue
Block a user