Make text message price dependent on date

So we don’t have to deploy a change on a Saturday.

In the future this could pull from the rates in the database, but while
that code is shifting around I didn’t want to touoch it. We’d also have
to think about caching so as not to have a non-authenticated route
hitting the database.
This commit is contained in:
Chris Hill-Scott
2022-04-28 10:48:44 +01:00
parent dfc37c2371
commit 4a0f5e8a41
5 changed files with 47 additions and 3 deletions

View File

@@ -42,7 +42,7 @@
<h2 class="heading-medium" id="text-messages">Text messages</h2>
<p class="govuk-body">Each unique service you add has an annual allowance of free text messages.</p>
<p class="govuk-body">When a service has used its annual allowance, it costs 1.72 pence (plus VAT) for each text message you send.</p>
<p class="govuk-body">When a service has used its annual allowance, it costs {{ sms_rate }} pence (plus VAT) for each text message you send.</p>
<p class="govuk-body">Youll use more free messages, or pay more for each message, if you send <a class="govuk-link govuk-link--no-visited-state" href="#long-text-messages">text messages longer than 160 characters</a>.</p>
<p class="govuk-body">You may also use more free messages, or pay more for each message, if you:</p>
<ul class="list list-bullet">

View File

@@ -153,7 +153,7 @@
<h3 class="govuk-visually-hidden">Text messages</h3>
<div class="product-page-big-number">Up to 40,000</div>
free text messages a year,<br>
then 1.72 pence per message
then {{ sms_rate }} pence per message
</div>
<div class="govuk-grid-column-one-half">
<h3 class="govuk-visually-hidden">Letters</h3>