mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-06 03:52:15 +00:00
refactor: hide cumulative exp actions if new controller is disabled
This commit is contained in:
@@ -23,6 +23,11 @@ frappe.ui.form.on("Budget", {
|
||||
});
|
||||
|
||||
erpnext.accounts.dimensions.setup_dimension_filters(frm, frm.doctype);
|
||||
frappe.db.get_single_value("Accounts Settings", "use_new_budget_controller").then((value) => {
|
||||
if (!value) {
|
||||
frm.get_field("control_action_for_cumulative_expense_section").hide();
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
refresh: function (frm) {
|
||||
|
||||
Reference in New Issue
Block a user