codescalers / CSHR

CRM project mainly for the HR department to manage the employees.
Apache License 2.0
1 stars 1 forks source link

There is a problem when calculating vacations including Public holidays #426

Closed Nayer-Sobhy closed 1 month ago

Nayer-Sobhy commented 5 months ago

When I tried to apply a vacation on public day of another office it showed that -2 days

Screenshot 2024-06-11 at 12 18 18 PM

When I changed it to be more than 1 day but the public holiday of another office is included, it showed 0 days

Screenshot 2024-06-11 at 12 18 34 PM

When I applied for a vacation that includes a public holiday of our office it showed 2 days ( the calculations didn't dismiss the public holiday)

Screenshot 2024-06-11 at 12 19 16 PM