diff --git a/app/models/validations/sales/sale_information_validations.rb b/app/models/validations/sales/sale_information_validations.rb index 8e1e52885..ff6677a25 100644 --- a/app/models/validations/sales/sale_information_validations.rb +++ b/app/models/validations/sales/sale_information_validations.rb @@ -11,7 +11,8 @@ module Validations::Sales::SaleInformationValidations return if record.exdate.blank? || record.hodate.blank? unless record.exdate > record.hodate - record.errors.add :hodate, "Practical completion or handover date must be before exchange date" + record.errors.add :exdate, I18n.t("validations.sale_information.handover_before_exchange") + record.errors.add :hodate,I18n.t("validations.sale_information.handover_before_exchange") end end diff --git a/config/locales/en.yml b/config/locales/en.yml index e757e30f7..f64d0c443 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -417,6 +417,7 @@ en: property_type_bedsit: "Bedsit bedroom maximum 1" previous_property_type: property_type_bedsit: "A bedsit can not have more than 1 bedroom" + handover_before_exchange: "Practical completion or handover date must be before exchange date" soft_validations: net_income: