En-desarrollo #65

Merged
alex merged 29 commits from En-desarrollo into main 2024-11-09 12:15:26 +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 {