#37 Perfil de Personal Administrativo - Listado General de Vacaciones (Modificar estado del empleado)
This commit is contained in:
parent
68c94e6193
commit
94e7432551
@ -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";
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user