Browse Source

move validation message to locales

pull/1284/head
Phil Lee 3 years ago
parent
commit
3e04ff8167
  1. 2
      app/services/bulk_upload/lettings/row_parser.rb
  2. 1
      config/locales/en.yml

2
app/services/bulk_upload/lettings/row_parser.rb

@ -171,7 +171,7 @@ private
def validate_la_with_local_housing_referral
if field_78 == 3 && owning_organisation && owning_organisation.la?
errors.add(:field_78, "The source of the referral cannot be Nominated by local housing authority as your organisation is a local authority")
errors.add(:field_78, I18n.t("validations.household.referral.nominated_by_local_ha_but_la"))
end
end

1
config/locales/en.yml

@ -356,6 +356,7 @@ en:
other_homeless: "Answer cannot be internal transfer as the tenant was considered homeless by their landlord"
prevten_invalid: "Answer cannot be internal transfer as the household situation immediately before this letting was %{prevten}"
reason_permanently_decanted: "Answer must be internal transfer as the tenant was permanently decanted from another property owned by this landlord"
nominated_by_local_ha_but_la: The source of the referral cannot be Nominated by local housing authority as your organisation is a local authority
la_general_needs:
internal_transfer: "Answer cannot be internal transfer as it’s the same landlord on the tenancy agreement and the household had either a fixed-term or lifetime local authority general needs tenancy immediately before this letting"
prp:

Loading…
Cancel
Save