Vacaciones #64

Merged
jesus.pelaez merged 11 commits from Vacaciones into En-desarrollo 2024-11-04 04:25:22 +00:00
Showing only changes of commit cfd5599d32 - Show all commits

View File

@ -240,6 +240,11 @@ public class RequestRegisterView extends VerticalLayout {
int startYear = calculateStartYear(previousRequests); int startYear = calculateStartYear(previousRequests);
startDate = determineStartDate(vacation, startYear); startDate = determineStartDate(vacation, startYear);
if (startDate.isBefore(LocalDate.now())) {
startDate = determineStartDate(vacation, startYear + 1);
}
if (startDate != null) { if (startDate != null) {
endDate = startDate.plusDays(vacation.getExpiration().intValue() - 1); endDate = startDate.plusDays(vacation.getExpiration().intValue() - 1);
} else { } else {