"missing_address"=>"- Full address required: The UPRN in some logs is incorrect, so address data was not imported.\n",
"missing_town"=>"- Missing town or city: The town or city in some logs is missing. This data is required in the new version of CORE.\n",
"wrong_uprn"=>"- UPRN may be incorrect: The UPRN in some logs may be incorrect, so wrong address data was imported. We think this is an issue because in some logs the UPRN is the same as the tenant code or property reference, and because your organisation has submitted logs for properties in Bristol for the first time.\n",
}
"Some address data is missing or incorrect. We've detected the following issues in
"Some address data is missing or incorrect. We've detected the following issues in your logs imported to the new version of CORE:\n\n#{issue_types.map{|issue_type|issue_type_explanations[issue_type]}.join('')}"
end
defhow_to_fix(issue_types,link,log_type)
[
"You need to:\n\n",
"- download [this spreadsheet for #{log_type} logs](#{link})\n",
issue_types.include?("missing_address")||issue_types.include?("missing_town")?"- fill in the missing address data\n":"",
ifissue_types==%w[wrong_uprn]
"- check the address data\n"
else
!issue_types.include?("wrong_uprn")?"- check that the existing address data is correct\n":"- check the existing address data\n"
end,
issue_types.include?("wrong_uprn")?"- correct any errors\n":"",
issue_explanation:"Some address data is missing or incorrect. We've detected the following issues in your logs imported to the new version of CORE:\n\n- Missing town or city: The town or city in some logs is missing. This data is required in the new version of CORE.\n",
issue_explanation:"Some address data is missing or incorrect. We've detected the following issues in your logs imported to the new version of CORE:\n\n- UPRN may be incorrect: The UPRN in some logs may be incorrect, so wrong address data was imported. We think this is an issue because in some logs the UPRN is the same as the tenant code or property reference, and because your organisation has submitted logs for properties in Bristol for the first time.\n",