diff --git a/app/services/bulk_upload/lettings/year2023/row_parser.rb b/app/services/bulk_upload/lettings/year2023/row_parser.rb index 1b15ceb0f..5c726b8fa 100644 --- a/app/services/bulk_upload/lettings/year2023/row_parser.rb +++ b/app/services/bulk_upload/lettings/year2023/row_parser.rb @@ -120,8 +120,8 @@ class BulkUpload::Lettings::Year2023::RowParser field_114: "Reasonable preference reason They needed to move to avoid hardship to themselves or others", field_115: "Reasonable preference reason Don't know", field_116: "Was the letting made under the Choice-Based Lettings (CBL)?", - field_117: "Was the letting made under the Common Housing Register (CHR)?", - field_118: "Was the letting made under the Common Allocation Policy (CAP)?", + field_117: "Was the letting made under the Common Allocation Policy (CAP)?", + field_118: "Was the letting made under the Common Housing Register (CHR)?", field_119: "What was the source of referral for this letting?", field_120: "Do you know the household's combined total income after tax?", field_121: "How often does the household receive income?", @@ -673,8 +673,8 @@ private def validate_lettings_allocation if cbl.blank? && cap.blank? && chr.blank? errors.add(:field_116, I18n.t("validations.not_answered", question: "was the letting made under the Choice-Based Lettings (CBL)?")) - errors.add(:field_117, I18n.t("validations.not_answered", question: "was the letting made under the Common Housing Register (CHR)?")) - errors.add(:field_118, I18n.t("validations.not_answered", question: "was the letting made under the Common Allocation Policy (CAP)?")) + errors.add(:field_117, I18n.t("validations.not_answered", question: "was the letting made under the Common Allocation Policy (CAP)?")) + errors.add(:field_118, I18n.t("validations.not_answered", question: "was the letting made under the Common Housing Register (CHR)?")) end end diff --git a/spec/services/bulk_upload/lettings/year2023/row_parser_spec.rb b/spec/services/bulk_upload/lettings/year2023/row_parser_spec.rb index 26c082bd1..90bdbed71 100644 --- a/spec/services/bulk_upload/lettings/year2023/row_parser_spec.rb +++ b/spec/services/bulk_upload/lettings/year2023/row_parser_spec.rb @@ -1223,8 +1223,8 @@ RSpec.describe BulkUpload::Lettings::Year2023::RowParser do it "sets correct errors" do expect(parser.errors[:field_116]).to include("You must answer was the letting made under the Choice-Based Lettings (CBL)?") - expect(parser.errors[:field_117]).to include("You must answer was the letting made under the Common Housing Register (CHR)?") - expect(parser.errors[:field_118]).to include("You must answer was the letting made under the Common Allocation Policy (CAP)?") + expect(parser.errors[:field_117]).to include("You must answer was the letting made under the Common Allocation Policy (CAP)?") + expect(parser.errors[:field_118]).to include("You must answer was the letting made under the Common Housing Register (CHR)?") end end end