I need to fetch full name of employee in supplier page
ASSIGNED TO IS EMPLOYEE ID , Its fetching employee list
i do this but not working
I need to fetch full name of employee in supplier page
ASSIGNED TO IS EMPLOYEE ID , Its fetching employee list
i do this but not working
Hi,
Write everything in small case:
employee.employee_name
Thanks,
Divyesh Mangroliya
In Version 14, I tried add fetch but it’s not working.
Please try
frappe.ui.form.on('Material Request', {
refresh(frm) {
cur_frm.cscript.emp = function(doc) {.
return frappe.call({
method: "frappe.client.get_value",
args: {
'doctype' : 'Employee',
'filters' : cur_frm.doc.emp,
'fieldname' : ['employee_name']
},
callback: function(r) {
var get_emp_name = (r.message.employee_name);
frm.set_value("emp_name", get_emp_name);
}
});
}