Skip to content

Commit

Permalink
tweak tslr copy
Browse files Browse the repository at this point in the history
  • Loading branch information
asmega committed Oct 2, 2024
1 parent cbf6371 commit eb68695
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion app/models/policies/student_loans.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<%= render("shared/error_summary", instance: journey_session) if journey_session.errors.any? %>

<% if answers.has_student_loan? %>
<h1 class="govuk-heading-l">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</h1>
<h1 class="govuk-heading-l">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</h1>
<p class="govuk-body">This information is provided by the Student Loans Company (SLC).</p>

<p class="govuk-body">If it is not what you expected you can still complete your application and then contact SLC.</p>
Expand Down

0 comments on commit eb68695

Please sign in to comment.