Attendance/Absence Types validation
I have a 2-Hours permission Attendance Type, i would like to restrict it so that no permission could be taken outside the work schedule planned working hours (for example when i give an employee a permission at 00:00 am, the system accepts the entry and creates the attendance !!!, though the work schedule has a 09:00 to 17:00 planned hours/day)
the second thing,
I would like to validate the (Compensation Absence Type) not to be permitted for an employee until he/she has a check in/out in a non working day (as per the work schedule) , so only employees who worked in nonworking days are allowed to create a "Compensation" absence type.
Any Suggestions ?
Thanks in advance