add if condition for workstation filter
This commit is contained in:
parent
f7b50f2ade
commit
74fb2bec3a
@ -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: {
|
||||
|
@ -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: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user