From 6a03fc6edecf93e9ff43e8bdf0724cb5c1f2905c Mon Sep 17 00:00:00 2001 From: khushi8112 Date: Wed, 10 Dec 2025 00:41:39 +0530 Subject: [PATCH] fix: add company-based filter to account field --- erpnext/accounts/doctype/budget/budget.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/erpnext/accounts/doctype/budget/budget.js b/erpnext/accounts/doctype/budget/budget.js index 968700ede4c..4ab94ed0f55 100644 --- a/erpnext/accounts/doctype/budget/budget.js +++ b/erpnext/accounts/doctype/budget/budget.js @@ -12,6 +12,15 @@ frappe.ui.form.on("Budget", { }; }); + frm.set_query("account", function () { + return { + filters: { + is_group: 0, + company: frm.doc.company, + }, + }; + }); + erpnext.accounts.dimensions.setup_dimension_filters(frm, frm.doctype); frappe.db.get_single_value("Accounts Settings", "use_legacy_budget_controller").then((value) => { if (value) {