From e1fbf78409d788e34c3e2021eebb0bb0e760596a Mon Sep 17 00:00:00 2001 From: Shllokkk <140623894+Shllokkk@users.noreply.github.com> Date: Tue, 16 Jun 2026 11:43:52 +0530 Subject: [PATCH] fix(budget): add root_type filter on account field (#55934) (cherry picked from commit 52b406f5f177a98d8ecefea953fb4af4a55dd8ae) # Conflicts: # erpnext/accounts/doctype/budget/budget.js --- erpnext/accounts/doctype/budget/budget.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/erpnext/accounts/doctype/budget/budget.js b/erpnext/accounts/doctype/budget/budget.js index 6e874f7c08c..587ef11642a 100644 --- a/erpnext/accounts/doctype/budget/budget.js +++ b/erpnext/accounts/doctype/budget/budget.js @@ -22,6 +22,19 @@ frappe.ui.form.on("Budget", { }; }); +<<<<<<< HEAD +======= + frm.set_query("account", function () { + return { + filters: { + is_group: 0, + company: frm.doc.company, + root_type: ["in", ["Income", "Expense"]], + }, + }; + }); + +>>>>>>> 52b406f5f1 (fix(budget): add root_type filter on account field (#55934)) erpnext.accounts.dimensions.setup_dimension_filters(frm, frm.doctype); },