mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-06-01 20:10:16 -04:00
@@ -178,7 +178,10 @@ def get_dashboard_partials(service_id):
|
||||
}
|
||||
|
||||
|
||||
def calculate_usage(usage, sms_free_allowance=250000, sms_rate=0.018):
|
||||
def calculate_usage(usage):
|
||||
# TODO: Don't hardcode these - get em from the API
|
||||
sms_free_allowance = 250000
|
||||
sms_rate = 0.0165
|
||||
|
||||
sms_sent = usage.get('sms_count', 0)
|
||||
emails_sent = usage.get('email_count', 0)
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
<li>Up to 306 characters = 2 text messages</li>
|
||||
<li>Up to 459 characters = 3 text messages</li>
|
||||
</ul></li>
|
||||
<li>Standard text message rate: 1.8p + VAT</li>
|
||||
<li>Standard text message rate: 1.65p + VAT</li>
|
||||
</ul>
|
||||
|
||||
<p>
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
{% if sms_chargeable %}
|
||||
{{ big_number(
|
||||
sms_chargeable,
|
||||
'at {:.1f}p per message'.format(sms_rate * 100),
|
||||
'at {:.2f}p per message'.format(sms_rate * 100),
|
||||
smaller=True
|
||||
) }}
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user