deduct off days if it falls between annual leave
Summary:
Hi,
We have this requirement:
If an employee applies for leave and a calendar event (public holiday) falls within that period, it should not be deducted. For example, if a public holiday is on the 3rd and 4th of the month, and the employee applies for leave from the 1st to the 5th, the system should deduct only 3 days.
Additionally, if an employee's off days fall within the leave period, those days should be deducted. For example, if the employee's off days are on the 3rd and 4th, and they apply for leave from the 1st to the 5th, the system should deduct 5 days.