Skip to content

Commit 37b68a0

Browse files
fix(manufacturing): apply work order status filter in job card (backport #53766) (#53768)
Co-authored-by: Pandiyan P <[email protected]> fix(manufacturing): apply work order status filter in job card (#53766)
1 parent 1872dcc commit 37b68a0

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

erpnext/manufacturing/doctype/job_card/job_card.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,14 @@ frappe.ui.form.on("Job Card", {
4040
};
4141
});
4242

43+
frm.set_query("work_order", function () {
44+
return {
45+
filters: {
46+
status: ["not in", ["Cancelled", "Closed", "Stopped"]],
47+
},
48+
};
49+
});
50+
4351
frm.events.set_company_filters(frm, "target_warehouse");
4452
frm.events.set_company_filters(frm, "source_warehouse");
4553
frm.events.set_company_filters(frm, "wip_warehouse");

0 commit comments

Comments
 (0)