mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-17 16:45:02 +00:00
add if condition for workstation filter
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user