#55 Perfil de Personal Administrativo - Añadir Vacaciones del Empleado (Actualizar automaticamente fechas)

This commit is contained in:
jesus.pelaez 2024-10-20 15:11:24 -04:00
parent a37b93591f
commit 2c30bed91f

View File

@ -91,11 +91,8 @@ public class RequestRegisterView extends VerticalLayout {
endDatePicker.setMin(startDate); endDatePicker.setMin(startDate);
endDatePicker.setMax(endDate); endDatePicker.setMax(endDate);
startDatePicker.clear(); startDatePicker.setValue(startDate);
endDatePicker.clear(); endDatePicker.setValue(startDate.plusDays(vacation.getDuration().intValue() - 1));
getUI().ifPresent(ui -> ui.access(() -> {
startDatePicker.setInitialPosition(startDate);
}));
} }
private void updateDatePickerMinValues() { private void updateDatePickerMinValues() {