mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-17 11:52:38 +00:00
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:
@@ -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);
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user