From 5aaa8662051aa30c5d0fd5d398c320e5ba9b4464 Mon Sep 17 00:00:00 2001 From: ruthra kumar Date: Wed, 28 May 2025 09:53:38 +0530 Subject: [PATCH] refactor: hide cumulative exp actions if new controller is disabled --- erpnext/accounts/doctype/budget/budget.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/erpnext/accounts/doctype/budget/budget.js b/erpnext/accounts/doctype/budget/budget.js index 6e874f7c08c..cfde1e16357 100644 --- a/erpnext/accounts/doctype/budget/budget.js +++ b/erpnext/accounts/doctype/budget/budget.js @@ -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) {