arreglar-funcionalidad #84

Merged
alex merged 14 commits from arreglar-funcionalidad into main 2024-11-28 02:52:23 +00:00
Showing only changes of commit c9f2e0900a - Show all commits

View File

@ -184,7 +184,7 @@ public class EmployeeView extends BeanValidationForm<Employee> implements HasUrl
LocalDate selectedDate = event.getValue(); LocalDate selectedDate = event.getValue();
if (selectedDate != null && ChronoUnit.YEARS.between(selectedDate, LocalDate.now()) < 18) { if (selectedDate != null && ChronoUnit.YEARS.between(selectedDate, LocalDate.now()) < 18) {
birthday.setInvalid(true); birthday.setInvalid(true);
birthday.setErrorMessage("El empleado debe ser mayor de 18 años"); birthday.setErrorMessage("El empleado debe ser mayor o tener 18 años");
} else { } else {
birthday.setInvalid(false); birthday.setInvalid(false);
} }