mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-27 00:44:45 +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) {
|
frm.set_query("account_head", "taxes", function(doc) {
|
||||||
return {
|
return {
|
||||||
filters: [
|
filters: [
|
||||||
|
|||||||
Reference in New Issue
Block a user