How to display "data of joining" field value from EMPLOYEE doctype to salaryslip field value

Hi friends,

  i want a display a DOJ of an employee from employee doctype to salary slip doctype(i created a DOJ field in salary slip,it is readonly property)

cur_frm.cscript.date_of_joining = function(doc,cdt,cdn){
doc.date_of_joining = doc.date_of_joining;
refresh_field(‘date_of_joining’);
}
This is correct way to display DOJ of an particular employee in salary slip

@kittusai
You created field date of joining in Salary Slip in that you should set option as employee.date_of_joining

1 Like