|
@ -62,6 +62,7 @@ frappe.ui.form.on('Special Tool Information', { |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
|
|
|
frm.doc.name = frm.doc.vehicle + "-" + frm.doc.tool_type + "-" + frm.doc.category + "-" + frm.doc.aggregate_name |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
category: function (frm, cdt, cdn) { |
|
|
category: function (frm, cdt, cdn) { |
|
@ -137,6 +138,7 @@ function set_display_order(frm){ |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
frappe.ui.form.on('Instructions', { |
|
|
frappe.ui.form.on('Instructions', { |
|
|
|
|
|
// child table depends_on based on main doctype
|
|
|
instructions_add: function (frm, cdt, cdn) { |
|
|
instructions_add: function (frm, cdt, cdn) { |
|
|
refresh_field("instructions") |
|
|
refresh_field("instructions") |
|
|
var child = locals[cdt][cdn]; |
|
|
var child = locals[cdt][cdn]; |
|
|