Skip to content

Commit

Permalink
feat: add company filter for department
Browse files Browse the repository at this point in the history
  • Loading branch information
rs-rethik authored and venkat102 committed Jan 7, 2025
1 parent 0dd82b6 commit 50d8041
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions hrms/hr/doctype/expense_claim/expense_claim.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,14 @@ frappe.ui.form.on("Expense Claim", {
query: "erpnext.controllers.queries.employee_query",
};
});

frm.set_query("department", function () {
return {
filters: {
company: frm.doc.company,
},
};
});
},

onload: function (frm) {
Expand Down

0 comments on commit 50d8041

Please sign in to comment.