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);