From 5ba432079b68e3b9cff75dfe1c60b92408a85495 Mon Sep 17 00:00:00 2001 From: ricardo051199 Date: Thu, 14 Nov 2024 04:15:29 -0400 Subject: [PATCH] Resolver errores de checkstyle --- .../com/primefactorsolutions/views/RequestEmployeeView.java | 3 ++- .../java/com/primefactorsolutions/views/RequestsListView.java | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/primefactorsolutions/views/RequestEmployeeView.java b/src/main/java/com/primefactorsolutions/views/RequestEmployeeView.java index 2fcaaf6..6737dc5 100644 --- a/src/main/java/com/primefactorsolutions/views/RequestEmployeeView.java +++ b/src/main/java/com/primefactorsolutions/views/RequestEmployeeView.java @@ -156,7 +156,8 @@ public class RequestEmployeeView extends Div implements HasUrlParameter if (vacationPreviousRequests != null && !vacationPreviousRequests.isEmpty()) { utilizedVacationPreviousDays = vacationPreviousRequests.getLast().getDaysBalance(); } - double totalVacationPreviousDays = vacationDays.getFirst() - (vacationDays.getFirst() - utilizedVacationPreviousDays); + double totalVacationPreviousDays = vacationDays.getFirst() + - (vacationDays.getFirst() - utilizedVacationPreviousDays); double utilizedFixedAndMovableHolidays = calculateHolidayUtilizedDays(currentYear); double utilizedPersonalDays = calculatePersonalDaysUtilized(isMale, currentYear); diff --git a/src/main/java/com/primefactorsolutions/views/RequestsListView.java b/src/main/java/com/primefactorsolutions/views/RequestsListView.java index 25d91cd..4b770e1 100644 --- a/src/main/java/com/primefactorsolutions/views/RequestsListView.java +++ b/src/main/java/com/primefactorsolutions/views/RequestsListView.java @@ -181,7 +181,8 @@ public class RequestsListView extends Main { if (vacationPreviousRequests != null && !vacationPreviousRequests.isEmpty()) { utilizedVacationPreviousDays = vacationPreviousRequests.getLast().getDaysBalance(); } - double totalVacationPreviousDays = vacationDays.getFirst() - (vacationDays.getFirst() - utilizedVacationPreviousDays); + double totalVacationPreviousDays = vacationDays.getFirst() + - (vacationDays.getFirst() - utilizedVacationPreviousDays); double totalUtilized = calculateTotalUtilized(employeeRequests);