En-desarrollo #71

Merged
alex merged 10 commits from En-desarrollo into main 2024-11-15 00:24:15 +00:00
2 changed files with 4 additions and 2 deletions
Showing only changes of commit 5ba432079b - Show all commits

View File

@ -156,7 +156,8 @@ public class RequestEmployeeView extends Div implements HasUrlParameter<String>
if (vacationPreviousRequests != null && !vacationPreviousRequests.isEmpty()) { if (vacationPreviousRequests != null && !vacationPreviousRequests.isEmpty()) {
utilizedVacationPreviousDays = vacationPreviousRequests.getLast().getDaysBalance(); utilizedVacationPreviousDays = vacationPreviousRequests.getLast().getDaysBalance();
} }
double totalVacationPreviousDays = vacationDays.getFirst() - (vacationDays.getFirst() - utilizedVacationPreviousDays); double totalVacationPreviousDays = vacationDays.getFirst()
- (vacationDays.getFirst() - utilizedVacationPreviousDays);
double utilizedFixedAndMovableHolidays = calculateHolidayUtilizedDays(currentYear); double utilizedFixedAndMovableHolidays = calculateHolidayUtilizedDays(currentYear);
double utilizedPersonalDays = calculatePersonalDaysUtilized(isMale, currentYear); double utilizedPersonalDays = calculatePersonalDaysUtilized(isMale, currentYear);

View File

@ -181,7 +181,8 @@ public class RequestsListView extends Main {
if (vacationPreviousRequests != null && !vacationPreviousRequests.isEmpty()) { if (vacationPreviousRequests != null && !vacationPreviousRequests.isEmpty()) {
utilizedVacationPreviousDays = vacationPreviousRequests.getLast().getDaysBalance(); utilizedVacationPreviousDays = vacationPreviousRequests.getLast().getDaysBalance();
} }
double totalVacationPreviousDays = vacationDays.getFirst() - (vacationDays.getFirst() - utilizedVacationPreviousDays); double totalVacationPreviousDays = vacationDays.getFirst()
- (vacationDays.getFirst() - utilizedVacationPreviousDays);
double totalUtilized = calculateTotalUtilized(employeeRequests); double totalUtilized = calculateTotalUtilized(employeeRequests);