From 94e74325512c7a24f7ba735d3ea262edf83155ad Mon Sep 17 00:00:00 2001 From: ricardo051199 Date: Wed, 30 Oct 2024 15:10:05 -0400 Subject: [PATCH] #37 Perfil de Personal Administrativo - Listado General de Vacaciones (Modificar estado del empleado) --- .../java/com/primefactorsolutions/views/RequestsListView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/primefactorsolutions/views/RequestsListView.java b/src/main/java/com/primefactorsolutions/views/RequestsListView.java index 43edf84..1694682 100644 --- a/src/main/java/com/primefactorsolutions/views/RequestsListView.java +++ b/src/main/java/com/primefactorsolutions/views/RequestsListView.java @@ -153,7 +153,7 @@ public class RequestsListView extends Main { private String getEmployeeStatus(final Employee employee) { Optional activeRequest = requestService - .findByEmployeeAndState(employee.getId(), TimeOffRequestStatus.TAKEN); + .findByEmployeeAndState(employee.getId(), TimeOffRequestStatus.IN_USE); return activeRequest.isPresent() ? "IDLE" : "ACTIVE"; }