We enter an absence line in the result tab of time card for 4h with the tag “not removable” because the employee takes half a day of.
Then on the day itself the employee will add a line “in normal” in the clocking tab and a line “out absence” total of 4h.
After that we use a scheduled task that uses TIME_PERS_DIARY_UTIL_API.geerate_hours that calculates the result tab.
But then we see that the calculated result gives us 3 lines:
- 4h absence that we entered manually
- 4h work time as recorded
- 4h absence that was calculated to reach the 8h of their schedule
The 3rd line should’t be added because we already put in 4h of absence.
This looks like a bug to me or am I forgetting to add a parameter?