diff --git a/app/controllers/start_controller.rb b/app/controllers/start_controller.rb index a1f584e5c..0d48c00e9 100644 --- a/app/controllers/start_controller.rb +++ b/app/controllers/start_controller.rb @@ -92,4 +92,20 @@ class StartController < ApplicationController type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", ) end + + def download_22_23_sales_bulk_upload_template + send_file( + Rails.root.join("public/files/bulk-upload-sales-template-2022-23.xlsx"), + filename: "2022-23-sales-bulk-upload-template.xlsx", + type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", + ) + end + + def download_22_23_sales_bulk_upload_specification + send_file( + Rails.root.join("public/files/bulk-upload-sales-specification-2022-23.xlsx"), + filename: "2022-23-sales-bulk-upload-specification.xlsx", + type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", + ) + end end diff --git a/app/views/layouts/_collection_resources.html.erb b/app/views/layouts/_collection_resources.html.erb index 76d696dfb..af0b3847d 100644 --- a/app/views/layouts/_collection_resources.html.erb +++ b/app/views/layouts/_collection_resources.html.erb @@ -83,7 +83,7 @@ }, { name: "Sales bulk upload specification (2022/23)", - href: download_23_23_sales_bulk_upload_specification_path, + href: download_22_23_sales_bulk_upload_specification_path, metadata: "Microsoft Excel, 24 KB", }, ]) %>