Skip to content

Commit 92331aa

Browse files
fix: add filter for employee in vehicle log (backport #1571) (#1581)
* add filter for employee * chore: fix formatting --------- Co-authored-by: Rucha Mahabal <[email protected]> (cherry picked from commit 0443333) Co-authored-by: NandhiniDevi <[email protected]>
1 parent 4fd79b4 commit 92331aa

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

hrms/hr/doctype/vehicle_log/vehicle_log.js

+9
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@
22
// For license information, please see license.txt
33

44
frappe.ui.form.on("Vehicle Log", {
5+
setup: function (frm) {
6+
frm.set_query("employee", function() {
7+
return {
8+
filters: {
9+
status: "Active",
10+
},
11+
};
12+
});
13+
},
514
refresh: function(frm) {
615
if(frm.doc.docstatus == 1) {
716
frm.add_custom_button(__('Expense Claim'), function() {

0 commit comments

Comments
 (0)