refactor: hide cumulative exp actions if new controller is disabled

This commit is contained in:
ruthra kumar
2025-05-28 09:53:38 +05:30
parent 776688d585
commit 5aaa866205

View File

@@ -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) {