From eb68695b58a6c21eea0b93e233692f7559d6384d Mon Sep 17 00:00:00 2001 From: Phil Lee Date: Wed, 2 Oct 2024 13:05:22 +0100 Subject: [PATCH] tweak tslr copy --- app/models/policies/student_loans.rb | 5 ++++- app/views/student_loans/claims/student_loan_amount.html.erb | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/app/models/policies/student_loans.rb b/app/models/policies/student_loans.rb index 9edd71f051..ce4f4d374f 100644 --- a/app/models/policies/student_loans.rb +++ b/app/models/policies/student_loans.rb @@ -136,8 +136,11 @@ def current_financial_year(format = :default) end_year = Journeys::TeacherStudentLoanReimbursement.configuration.current_academic_year.start_year start_year = end_year - 1 - if format == :short + case format + when :short "#{start_year}/#{end_year}" + when :to + "6 April #{start_year} to 5 April #{end_year}" else "6 April #{start_year} and 5 April #{end_year}" end diff --git a/app/views/student_loans/claims/student_loan_amount.html.erb b/app/views/student_loans/claims/student_loan_amount.html.erb index 0130cb66e1..c6ba35a939 100644 --- a/app/views/student_loans/claims/student_loan_amount.html.erb +++ b/app/views/student_loans/claims/student_loan_amount.html.erb @@ -5,7 +5,7 @@ <%= render("shared/error_summary", instance: journey_session) if journey_session.errors.any? %> <% if answers.has_student_loan? %> -

Your student loan repayment amount is <%= number_to_currency(answers.student_loan_repayment_amount, precision: 2, strip_insignificant_zeros: true) %> for the <%= Policies::StudentLoans.current_financial_year %> financial year

+

Your student loan repayment amount is <%= number_to_currency(answers.student_loan_repayment_amount, precision: 2, strip_insignificant_zeros: true) %> for the <%= Policies::StudentLoans.current_financial_year(:to) %> financial year

This information is provided by the Student Loans Company (SLC).

If it is not what you expected you can still complete your application and then contact SLC.