The system was not considering the leaves sent to approve for the unblocking of the user when users were having fully filled hours.
Prevent Future Issues
To prevent the futures issues, the calculation of the missing hours has into account the leaves pending for approval.
- The user must have timesheet required
- Weekly or daily timesheet block
- Enter with a blocked User, preferably with one day to fill (as it is simpler to test)
- Add a Leave on that unfilled day
- Send Leaves to Approve
- Verify that the User is now unblocked.
Users that were blocked, but their hours are fully filled when having leaves pending for approval, will be automatically unblocked.