I’ve created 4 new fields in the Attendance Module.
Work In, Work Out (which I set to Read Only and retrieve using the following script)
// set work_in field to work_in value from employee link field
// function add_fetch(link_fieldname, source_fieldname, target_fieldname)
cur_frm.add_fetch(‘employee’,‘work_in’,‘work_in’)
cur_frm.add_fetch(‘employee’,‘work_out’,‘work_out’)
Time In, Time Out (which I plan to import from my biometrics system).
My question is that every time I import, the Work In, Work Out fields do not immediately autofill - just stays blank. I want to discourage placing this in the import file since it gives the user a change to modify the intended time an employee is expected to be at work.
How do I have my read only fields autofill every time I upload?
Now using employee do this: (I’m assuming the work_in and work_out are already fields in Employee doctype and have been populated before you are making this attendance)