How to restrict attendance in OTL when leave exist for a day.
Summary:
we need to implement a validation in OTL. This validation will prevent employees from entering their attendance (time in and time out) for a day on which they have already applied for leave. If an employee attempts to log their attendance on a day with an existing leave request, the system will raise an error, indicating that attendance cannot be recorded for that day due to the presence of approved leave.
Content (please ensure you mask any confidential information):
Version (include the version you are using, if applicable):
Version : 24A (11.13.24.01.0)
Code Snippet (add any code snippets that support your topic, if applicable):