Browse Source

Merge 2e9c7619f7 into 13b2fc61c1

pull/3319/merge
Samuel Young 5 days ago committed by GitHub
parent
commit
4a026ddc9b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      config/locales/validations/lettings/2025/bulk_upload.en.yml
  2. 2
      config/locales/validations/lettings/2026/bulk_upload.en.yml
  3. 2
      config/locales/validations/sales/2025/bulk_upload.en.yml
  4. 2
      config/locales/validations/sales/2026/bulk_upload.en.yml
  5. 4
      spec/services/bulk_upload/lettings/validator_spec.rb

2
config/locales/validations/lettings/2025/bulk_upload.en.yml

@ -12,7 +12,7 @@ en:
wrong_template:
wrong_template: "Incorrect start dates, please ensure you have used the correct template."
no_headers: "Your file does not contain the required header rows. Add or check the header rows and upload your file again. [Read more about using the template headers](%{guidance_link})."
wrong_field_numbers_count: "Incorrect number of fields, please ensure you have used the correct template."
wrong_field_numbers_count: "Incorrect number of fields, please ensure you have used the template for lettings 2025."
over_max_column_count: "Too many columns, please ensure you have used the correct template."
owning_organisation:
not_found: "The owning organisation code is incorrect."

2
config/locales/validations/lettings/2026/bulk_upload.en.yml

@ -12,7 +12,7 @@ en:
wrong_template:
wrong_template: "Incorrect start dates, please ensure you have used the correct template."
no_headers: "Your file does not contain the required header rows. Add or check the header rows and upload your file again. [Read more about using the template headers](%{guidance_link})."
wrong_field_numbers_count: "Incorrect number of fields, please ensure you have used the correct template."
wrong_field_numbers_count: "Incorrect number of fields, please ensure you have used the template for lettings 2026."
over_max_column_count: "Too many columns, please ensure you have used the correct template."
owning_organisation:
not_found: "The owning organisation code is incorrect."

2
config/locales/validations/sales/2025/bulk_upload.en.yml

@ -11,7 +11,7 @@ en:
wrong_template:
over_max_column_count: "Too many columns, please ensure you have used the correct template."
no_headers: "Your file does not contain the required header rows. Add or check the header rows and upload your file again. [Read more about using the template headers](%{guidance_link})."
wrong_field_numbers_count: "Incorrect number of fields, please ensure you have used the correct template."
wrong_field_numbers_count: "Incorrect number of fields, please ensure you have used the template for sales 2025."
wrong_template: "Incorrect sale dates, please ensure you have used the correct template."
numeric:
within_range: "%{field} must be between %{min} and %{max}."

2
config/locales/validations/sales/2026/bulk_upload.en.yml

@ -11,7 +11,7 @@ en:
wrong_template:
over_max_column_count: "Too many columns, please ensure you have used the correct template."
no_headers: "Your file does not contain the required header rows. Add or check the header rows and upload your file again. [Read more about using the template headers](%{guidance_link})."
wrong_field_numbers_count: "Incorrect number of fields, please ensure you have used the correct template."
wrong_field_numbers_count: "Incorrect number of fields, please ensure you have used the template for sales 2026."
wrong_template: "Incorrect sale dates, please ensure you have used the correct template."
numeric:
within_range: "%{field} must be between %{min} and %{max}."

4
spec/services/bulk_upload/lettings/validator_spec.rb

@ -55,7 +55,7 @@ RSpec.describe BulkUpload::Lettings::Validator do
it "is not valid" do
expect(validator).not_to be_valid
expect(validator.errors["base"]).to eql(["Incorrect number of fields, please ensure you have used the correct template."])
expect(validator.errors["base"]).to eql(["Incorrect number of fields, please ensure you have used the template for lettings #{year}."])
end
end
@ -72,7 +72,7 @@ RSpec.describe BulkUpload::Lettings::Validator do
it "is not valid" do
expect(validator).not_to be_valid
expect(validator.errors["base"]).to eql(["Incorrect number of fields, please ensure you have used the correct template."])
expect(validator.errors["base"]).to eql(["Incorrect number of fields, please ensure you have used the template for lettings #{year}."])
end
end
end

Loading…
Cancel
Save