diff --git a/app/models/forms/bulk_upload_lettings/prepare_your_file.rb b/app/models/forms/bulk_upload_lettings/prepare_your_file.rb index a2d59a370..a2dfcd8e4 100644 --- a/app/models/forms/bulk_upload_lettings/prepare_your_file.rb +++ b/app/models/forms/bulk_upload_lettings/prepare_your_file.rb @@ -41,6 +41,8 @@ module Forms case year when 2023 "/files/bulk-upload-lettings-template-2023-24.xlsx" + when 2024 + "/files/bulk-upload-lettings-template-2024-25.xlsx" end end @@ -48,6 +50,8 @@ module Forms case year when 2023 "/files/bulk-upload-lettings-specification-2023-24.xlsx" + when 2024 + "/files/bulk-upload-lettings-specification-2024-25.xlsx" end end diff --git a/app/models/forms/bulk_upload_sales/prepare_your_file.rb b/app/models/forms/bulk_upload_sales/prepare_your_file.rb index 227137d72..f72e41d55 100644 --- a/app/models/forms/bulk_upload_sales/prepare_your_file.rb +++ b/app/models/forms/bulk_upload_sales/prepare_your_file.rb @@ -39,14 +39,17 @@ module Forms case year when 2023 "/files/bulk-upload-sales-template-2023-24.xlsx" + when 2024 + "/files/bulk-upload-sales-template-2024-25.xlsx" end end def specification_path case year - when 2023 "/files/bulk-upload-sales-specification-2023-24.xlsx" + when 2024 + "/files/bulk-upload-sales-specification-2024-25.xlsx" end end diff --git a/app/views/bulk_upload_lettings_logs/forms/prepare_your_file_2024.html.erb b/app/views/bulk_upload_lettings_logs/forms/prepare_your_file_2024.html.erb index 618c2ab4c..8bc375450 100644 --- a/app/views/bulk_upload_lettings_logs/forms/prepare_your_file_2024.html.erb +++ b/app/views/bulk_upload_lettings_logs/forms/prepare_your_file_2024.html.erb @@ -13,26 +13,17 @@
Use one of these templates to upload logs for 2024/25:
-There are 7 or 8 rows of content in the templates. These rows are called the ‘headers’. They contain the CORE form questions and guidance about which questions are required and how to format your answers.
+<%= govuk_link_to "Download the lettings bulk upload template (2024 to 2025)", @form.template_path %>
+There are 8 rows of content in the templates. These rows are called the ‘headers’. They contain the CORE form questions and guidance about which questions are required and how to format your answers.
Use one of these templates to upload logs for 2024/25:
-There are 7 or 8 rows of content in the templates. These rows are called the ‘headers’. They contain the CORE form questions and guidance about which questions are required and how to format your answers.
+<%= govuk_link_to "Download the sales bulk upload template (2024 to 2025)", @form.template_path %>: In this template, the questions are in the same order as the 2024/25 paper form and web form.
+There are 8 rows of content in the templates. These rows are called the ‘headers’. They contain the CORE form questions and guidance about which questions are required and how to format your answers.
For each collection year, we publish a bulk upload template and specification.
-The bulk upload templates contain 7 or 8 rows of ‘headers’ with information about how to fill in the template, including:
+ <% if @form.year == 2023 %> +The bulk upload templates contain 7 or 8 rows of ‘headers’ with information about how to fill in the template, including:
+ <% else %> +The bulk upload templates contain 8 rows of ‘headers’ with information about how to fill in the template, including:
+ <% end %>You can paste your data below the headers or copy the headers and insert them above the data in your file. The bulk upload fields start at column B. Leave column A blank.
Make sure that each column of data aligns with the corresponding question in the headers. We recommend ordering your data to match the headers, but you can also reorder the headers to match your data. When processing the file, we check what each column of data represents based on the headers above.
-For 2023/24 uploads, there are 2 templates to choose from, a new template and a legacy template. They outline suggested ways of ordering your data.
-You must include the headers in your file when you upload, unless your data matches the exact order of the legacy template. If you choose to remove the headers, you must also remove the blank column A.
+ <% if @form.year == 2023 %> +For 2023/24 uploads, there are 2 templates to choose from, a new template and a legacy template. They outline suggested ways of ordering your data.
+You must include the headers in your file when you upload, unless your data matches the exact order of the legacy template. If you choose to remove the headers, you must also remove the blank column A.
-New template: In this template, the questions are in the same order as the 2023/24 paper form and web form. Use this template if your organisation is new to bulk upload or if your housing management system matches the new column ordering.
-<%= govuk_link_to "Download the lettings bulk upload template (2023 to 2024) – New question ordering", @form.lettings_template_path %>
-<%= govuk_link_to "Download the sales bulk upload template (2023 to 2024) – New question ordering", @form.sales_template_path %>
+New template: In this template, the questions are in the same order as the 2023/24 paper form and web form. Use this template if your organisation is new to bulk upload or if your housing management system matches the new column ordering.
+<%= govuk_link_to "Download the lettings bulk upload template (2023 to 2024) – New question ordering", @form.lettings_template_path %>
+<%= govuk_link_to "Download the sales bulk upload template (2023 to 2024) – New question ordering", @form.sales_template_path %>
-Legacy template: In this template, the questions are in the same order as the 2022/23 template, with new questions added on to the end. Use this template if you have not updated your system to match the new template yet.
-<%= govuk_link_to "Download the lettings bulk upload template (2023 to 2024) - Legacy version", @form.lettings_legacy_template_path %>
-<%= govuk_link_to "Download the sales bulk upload template (2023 to 2024) – Legacy version", @form.sales_legacy_template_path %>
+Legacy template: In this template, the questions are in the same order as the 2022/23 template, with new questions added on to the end. Use this template if you have not updated your system to match the new template yet.
+<%= govuk_link_to "Download the lettings bulk upload template (2023 to 2024) - Legacy version", @form.lettings_legacy_template_path %>
+<%= govuk_link_to "Download the sales bulk upload template (2023 to 2024) – Legacy version", @form.sales_legacy_template_path %>
+ <% else %> +<%= govuk_link_to "Download the lettings bulk upload template (2024 to 2025)", @form.lettings_template_path %>
+<%= govuk_link_to "Download the sales bulk upload template (2024 to 2025)", @form.sales_template_path %>
+ <% end %> <% end %> <%= accordion.with_section(heading_text: "Using the bulk upload specification") do %>The bulk upload specification contains the same information as the template headers, as well as more details about the accepted responses for each question. For multiple-choice questions, we use number or letter codes to represent each option, and the specification shows what answer each code represents.
There is a separate specification for lettings and sales:
-<%= govuk_link_to "Download the lettings bulk upload specification (2023 to 2024)", @form.lettings_specification_path, target: "_blank" %>
-<%= govuk_link_to "Download the sales bulk upload specification (2023 to 2024)", @form.sales_specification_path, target: "_blank" %>
+<%= govuk_link_to "Download the lettings bulk upload specification (#{@form.year} to #{@form.year + 1})", @form.lettings_specification_path, target: "_blank" %>
+<%= govuk_link_to "Download the sales bulk upload specification (#{@form.year} to #{@form.year + 1})", @form.sales_specification_path, target: "_blank" %>
If your upload fails because there are errors in the data, you can use the specification to help correct the errors. Having your file, the error report, and the specification open at the same time will make it easy to cross-reference field numbers and check accepted responses.
<% end %> diff --git a/spec/requests/bulk_upload_lettings_logs_controller_spec.rb b/spec/requests/bulk_upload_lettings_logs_controller_spec.rb index f901cdb7e..afc5577c3 100644 --- a/spec/requests/bulk_upload_lettings_logs_controller_spec.rb +++ b/spec/requests/bulk_upload_lettings_logs_controller_spec.rb @@ -49,7 +49,7 @@ RSpec.describe BulkUploadLettingsLogsController, type: :request do it "shows guidance page with correct title" do Timecop.freeze(2022, 1, 1) do - get "/lettings-logs/bulk-upload-logs/guidance", params: {} + get "/lettings-logs/bulk-upload-logs/guidance?form%5Byear%5D=2022", params: {} expect(response.body).to include("How to upload logs in bulk") end @@ -59,7 +59,7 @@ RSpec.describe BulkUploadLettingsLogsController, type: :request do context "when in crossover period" do it "shows guidance page with correct title" do Timecop.freeze(2023, 6, 1) do - get "/lettings-logs/bulk-upload-logs/guidance", params: {} + get "/lettings-logs/bulk-upload-logs/guidance?form%5Byear%5D=2023", params: {} expect(response.body).to include("How to upload logs in bulk") end diff --git a/spec/requests/bulk_upload_sales_logs_controller_spec.rb b/spec/requests/bulk_upload_sales_logs_controller_spec.rb index 3220ff885..c603ec821 100644 --- a/spec/requests/bulk_upload_sales_logs_controller_spec.rb +++ b/spec/requests/bulk_upload_sales_logs_controller_spec.rb @@ -49,7 +49,7 @@ RSpec.describe BulkUploadSalesLogsController, type: :request do it "shows guidance page with correct title" do Timecop.freeze(2022, 1, 1) do - get "/sales-logs/bulk-upload-logs/guidance", params: {} + get "/sales-logs/bulk-upload-logs/guidance?form%5Byear%5D=2022", params: {} expect(response.body).to include("How to upload logs in bulk") end @@ -59,7 +59,7 @@ RSpec.describe BulkUploadSalesLogsController, type: :request do context "when in crossover period" do it "shows guidance page with correct title" do Timecop.freeze(2023, 6, 1) do - get "/sales-logs/bulk-upload-logs/guidance", params: {} + get "/sales-logs/bulk-upload-logs/guidance?form%5Byear%5D=2023", params: {} expect(response.body).to include("How to upload logs in bulk") end