En-desarrollo #65

Merged
alex merged 29 commits from En-desarrollo into main 2024-11-09 12:15:26 +00:00
Showing only changes of commit 94e7432551 - Show all commits

View File

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