Resolver errores de checkstyle
All checks were successful
PR Builder / Build-PR (pull_request) Successful in 2m46s

This commit is contained in:
jesus.pelaez 2024-11-28 02:10:22 -04:00
parent 8616cd0f28
commit 9e92dc5342

View File

@ -477,9 +477,9 @@ public class RequestEmployeeView extends BaseView implements HasUrlParameter<Str
Employee employee = employeeService.getEmployee(employeeId);
List<TimeOffRequest> filteredRequests = requests.stream()
.filter(request ->
(request.getStartDate() == null || Year.from(request.getStartDate()).equals(Year.now())) ||
request.getCategory() == TimeOffRequestType.VACACION_GESTION_ACTUAL ||
request.getCategory() == TimeOffRequestType.VACACION_GESTION_ANTERIOR)
(request.getStartDate() == null || Year.from(request.getStartDate()).equals(Year.now()))
|| request.getCategory() == TimeOffRequestType.VACACION_GESTION_ACTUAL
|| request.getCategory() == TimeOffRequestType.VACACION_GESTION_ANTERIOR)
.toList();
PDPageContentStream contentStream = null;
@ -577,8 +577,8 @@ public class RequestEmployeeView extends BaseView implements HasUrlParameter<Str
contentStream.newLineAtOffset(0, -20);
contentStream.showText("Total vacaciones pendientes de uso: " + remainingVacationDays);
contentStream.newLineAtOffset(0, -20);
contentStream.showText("TOTAL GENERAL DE DÍAS DISPONIBLES: " +
(remainingHolidayDays + remainingPersonalDays + remainingVacationDays));
contentStream.showText("TOTAL GENERAL DE DÍAS DISPONIBLES: "
+ (remainingHolidayDays + remainingPersonalDays + remainingVacationDays));
contentStream.endText();
} finally {
@ -653,7 +653,10 @@ public class RequestEmployeeView extends BaseView implements HasUrlParameter<Str
addComponentAsFirst(new H3("Nombre del empleado: " + employeeName));
addComponentAtIndex(1, new H3("Equipo: " + employeeTeam));
if (dateOfExit != null) {
addComponentAtIndex(2, new H3("Descontado a cero en fecha " + dateOfExit + " por pago de finiquito incluidas duodecima."));
addComponentAtIndex(
2, new H3("Descontado a cero en fecha "
+ dateOfExit
+ " por pago de finiquito incluidas duodecima."));
}
}
}