From 0e631d130d3e4b6b806416742065b293fd394853 Mon Sep 17 00:00:00 2001 From: fproldan Date: Thu, 7 Mar 2024 11:22:39 -0300 Subject: [PATCH] feat: exclude closed work orders --- inventory_tools/public/js/job_card_custom.js | 1 + 1 file changed, 1 insertion(+) diff --git a/inventory_tools/public/js/job_card_custom.js b/inventory_tools/public/js/job_card_custom.js index e1776c7..91a10ac 100644 --- a/inventory_tools/public/js/job_card_custom.js +++ b/inventory_tools/public/js/job_card_custom.js @@ -40,6 +40,7 @@ function add_swith_work_order_action(frm) { return { filters: [ ['docstatus', '=', '1'], + ['status', '!=', 'Closed'], ['bom_no', '=', frm.doc.bom_no], ['company', '=', frm.doc.company], ['name', '!=', frm.doc.work_order],