Vacaciones #64
@ -240,6 +240,11 @@ public class RequestRegisterView extends VerticalLayout {
|
||||
int startYear = calculateStartYear(previousRequests);
|
||||
|
||||
startDate = determineStartDate(vacation, startYear);
|
||||
|
||||
if (startDate.isBefore(LocalDate.now())) {
|
||||
startDate = determineStartDate(vacation, startYear + 1);
|
||||
}
|
||||
|
||||
if (startDate != null) {
|
||||
endDate = startDate.plusDays(vacation.getExpiration().intValue() - 1);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user