diff --git a/app/models/validations/date_validations.rb b/app/models/validations/date_validations.rb index 12697fe21..9ddd1cf7a 100644 --- a/app/models/validations/date_validations.rb +++ b/app/models/validations/date_validations.rb @@ -16,7 +16,7 @@ module Validations::DateValidations def validate_property_void_date(record) if record["property_void_date"].present? && record["startdate"].present? && record["startdate"].to_date - record["property_void_date"].to_date > 3650 - record.errors.add :property_void_date, "Void date cannot be more than 730 days before the tenancy start date" + record.errors.add :property_void_date, "Void date cannot be more than 10 years before the tenancy start date" end if record["property_void_date"].present? && record["startdate"].present? && record["startdate"].to_date < record["property_void_date"].to_date