Wire in the new API method that calculates the total cost and total billable units.

- Used on dashboard to calculate free tier/cost
- Update tests to mock new method
- Two new tests to check output on dashboard page
This commit is contained in:
Martyn Inglis
2017-05-24 10:35:52 +01:00
parent 1c1c5bd758
commit 52326539d6
6 changed files with 84 additions and 2 deletions

View File

@@ -10,7 +10,7 @@
<div class="keyline-block">
{% if sms_chargeable %}
{{ big_number(
(sms_chargeable * sms_rate),
total_sms_cost,
'spent on text messages',
currency="£",
smaller=True