From 74fb2bec3a5055d6bb76be0d5e3fd80899c642d1 Mon Sep 17 00:00:00 2001 From: Nandhinidevi123 Date: Tue, 25 Apr 2023 20:08:35 +0530 Subject: [PATCH] add if condition for workstation filter --- erpnext/manufacturing/doctype/bom/bom.js | 2 +- erpnext/manufacturing/doctype/routing/routing.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext/manufacturing/doctype/bom/bom.js b/erpnext/manufacturing/doctype/bom/bom.js index 7cdcef9c7a..ad9aafe066 100644 --- a/erpnext/manufacturing/doctype/bom/bom.js +++ b/erpnext/manufacturing/doctype/bom/bom.js @@ -652,7 +652,7 @@ frappe.ui.form.on("BOM Operation", "operation", function(frm, cdt, cdn) { frappe.ui.form.on("BOM Operation", "workstation", function(frm, cdt, cdn) { var d = locals[cdt][cdn]; - + if(!d.workstation) return; frappe.call({ "method": "frappe.client.get", args: { diff --git a/erpnext/manufacturing/doctype/routing/routing.js b/erpnext/manufacturing/doctype/routing/routing.js index b480c70ad5..784e83a4c0 100644 --- a/erpnext/manufacturing/doctype/routing/routing.js +++ b/erpnext/manufacturing/doctype/routing/routing.js @@ -50,7 +50,7 @@ frappe.ui.form.on('BOM Operation', { workstation: function(frm, cdt, cdn) { const d = locals[cdt][cdn]; - + if(!d.workstation) return; frappe.call({ "method": "frappe.client.get", args: {