Closed sodik82 closed 3 years ago
Do you have an example of erroneous report ? If yes, please post it.
These are the data from other app using the API:
i.e. reporting D8
(full anual vacation) also for Sat-Sun.
I am not familiar with exact API nor the other app itself - thus I am suggesting to check the over-weekend vacation reporting case.
Current implementation marks every day between start and end of vacation as vacation day (including weekends or public holidays). Change it to not include weekends is easy, problem could be with public holidays (if there is no usable library for it).
I don't know what API is provided by the application, but the core mechanism already counts with weekends and public holidays:
Proper reuse of that code should do the trick.
UI already accounts these...
example with weekend and public holiday. (there is some 3rd party library used)
check if vacation over weekend (or public holiday) is correctly reported.