Hi,
Pass the worker table recID to hcmEmployment and get hcmEmployment recID to WorkCalenderEmployement recID
In that WorkCalenderEmployement table you can find the CalenderId
hcmEmployment = HcmEmployment::getActiveEmploymentsByWorker(HcmWorker.RecId);
workCalendarEmployment = workCalendarEmployment::findByEmploymentRecId(hcmEmployment.RecId);
return workCalendarEmployment.CalendarId;
regards,
No comments:
Post a Comment