fix(budget): add root_type filter on account field (#55934)

(cherry picked from commit 52b406f5f1)

# Conflicts:
#	erpnext/accounts/doctype/budget/budget.js
This commit is contained in:
Shllokkk
2026-06-16 11:43:52 +05:30
committed by Mergify
parent 2c2adffacf
commit e1fbf78409

View File

@@ -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);
},