|
|
|
@ -684,12 +684,10 @@ private |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
def validate_reasonable_preference_homeless |
|
|
|
def validate_reasonable_preference_homeless |
|
|
|
if field_69 == 1 |
|
|
|
if field_69 == 1 && homeless == 1 && field_70 == 1 |
|
|
|
if homeless == 1 && field_70 == 1 |
|
|
|
|
|
|
|
errors.add(:field_70, I18n.t("validations.household.reasonpref.not_homeless")) |
|
|
|
errors.add(:field_70, I18n.t("validations.household.reasonpref.not_homeless")) |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def validate_lettings_type_matches_bulk_upload |
|
|
|
def validate_lettings_type_matches_bulk_upload |
|
|
|
if [1, 3, 5, 7, 9, 11].include?(field_1) && !bulk_upload.general_needs? |
|
|
|
if [1, 3, 5, 7, 9, 11].include?(field_1) && !bulk_upload.general_needs? |
|
|
|
|