|
|
|
@ -369,6 +369,7 @@ module Validations::Sales::SaleInformationValidations |
|
|
|
|
|
|
|
|
|
|
|
def validate_mortgage_used_dont_know(record) |
|
|
|
def validate_mortgage_used_dont_know(record) |
|
|
|
return unless record.mortgage_use_unknown? |
|
|
|
return unless record.mortgage_use_unknown? |
|
|
|
|
|
|
|
return if record.form.start_year_2026_or_later? |
|
|
|
|
|
|
|
|
|
|
|
if record.discounted_ownership_sale? |
|
|
|
if record.discounted_ownership_sale? |
|
|
|
record.errors.add :mortgageused, I18n.t("validations.invalid_option", question: "was a mortgage used for the purchase of this property?") |
|
|
|
record.errors.add :mortgageused, I18n.t("validations.invalid_option", question: "was a mortgage used for the purchase of this property?") |
|
|
|
|