diff --git a/erpnext/manufacturing/doctype/job_card/job_card.js b/erpnext/manufacturing/doctype/job_card/job_card.js index f95946a1724..c3b0bb10fe6 100644 --- a/erpnext/manufacturing/doctype/job_card/job_card.js +++ b/erpnext/manufacturing/doctype/job_card/job_card.js @@ -23,6 +23,14 @@ frappe.ui.form.on("Job Card", { }; }); + frm.set_query("item_code", "scrap_items", () => { + return { + filters: { + disabled: 0, + }, + }; + }); + frm.set_indicator_formatter("sub_operation", function (doc) { if (doc.status == "Pending") { return "red";