mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-23 15:57:23 -04:00
Support variable rates for annual usage stats
Note: I've removed the pricing assertion in the "0_free_allowance" test as it's covered elsewhere - the value of the test is really to check that we don't show the remainder if there never was any.
This commit is contained in:
@@ -33,13 +33,15 @@
|
||||
{% if sms_free_allowance > 0 %}
|
||||
{{ big_number(sms_allowance_remaining, 'free allowance remaining', smaller=True) }}
|
||||
{% endif %}
|
||||
{% if sms_charged %}
|
||||
{{ big_number(
|
||||
sms_charged,
|
||||
'at {:.2f} pence per message'.format(sms_rate * 100),
|
||||
smaller=True
|
||||
) }}
|
||||
{% endif %}
|
||||
{% for row in sms_breakdown %}
|
||||
{% if row.charged_units > 0 %}
|
||||
{{ big_number(
|
||||
row.charged_units,
|
||||
'at {:.2f} pence per message'.format(row.rate * 100),
|
||||
smaller=True
|
||||
) }}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
<div class='govuk-grid-column-one-third'>
|
||||
|
||||
Reference in New Issue
Block a user