mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-14 15:57:41 +00:00
fix: add filter for cost center in expense table
Added filter for cost center in expense table (company and group_node filter)
This commit is contained in:
@@ -154,6 +154,14 @@ frappe.ui.form.on("Expense Claim", {
|
||||
}
|
||||
};
|
||||
});
|
||||
frm.set_query("cost_center", "expenses", function() {
|
||||
return {
|
||||
filters: {
|
||||
"company": frm.doc.company,
|
||||
"is_group": 0
|
||||
}
|
||||
};
|
||||
});
|
||||
frm.set_query("account_head", "taxes", function(doc) {
|
||||
return {
|
||||
filters: [
|
||||
|
||||
Reference in New Issue
Block a user