#37 Perfil de Personal Administrativo - Listado General de Vacaciones (Modificar estado del empleado)

This commit is contained in:
jesus.pelaez 2024-10-30 15:10:05 -04:00
parent 68c94e6193
commit 94e7432551

View File

@ -153,7 +153,7 @@ public class RequestsListView extends Main {
private String getEmployeeStatus(final Employee employee) {
Optional<TimeOffRequest> activeRequest = requestService
.findByEmployeeAndState(employee.getId(), TimeOffRequestStatus.TAKEN);
.findByEmployeeAndState(employee.getId(), TimeOffRequestStatus.IN_USE);
return activeRequest.isPresent() ? "IDLE" : "ACTIVE";
}