mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-11 09:28:27 -04:00
swap dollar symbols for pound symbols
This commit is contained in:
@@ -300,6 +300,7 @@ def nl2br(value):
|
||||
return ''
|
||||
|
||||
|
||||
# this formatter appears to only be used in the letter module
|
||||
def format_number_in_pounds_as_currency(number):
|
||||
if number >= 1:
|
||||
return f"£{number:,.2f}"
|
||||
|
||||
@@ -182,8 +182,8 @@ def download_organisation_usage_report(org_id):
|
||||
])
|
||||
|
||||
monetary_column_names = OrderedDict([
|
||||
('sms_cost', 'Spent on text messages (£)'),
|
||||
('letter_cost', 'Spent on letters (£)')
|
||||
('sms_cost', 'Spent on text messages ($)'),
|
||||
('letter_cost', 'Spent on letters ($)')
|
||||
])
|
||||
|
||||
org_usage_data = [
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
{{ big_number(
|
||||
sms_cost,
|
||||
'spent on text messages',
|
||||
currency="£",
|
||||
currency="$",
|
||||
smaller=True
|
||||
) }}
|
||||
{% else %}
|
||||
@@ -25,7 +25,7 @@
|
||||
{{ big_number(
|
||||
letter_cost,
|
||||
'spent on letters',
|
||||
currency="£",
|
||||
currency="$",
|
||||
smaller=True
|
||||
) }}
|
||||
</div>
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
{{ big_number(
|
||||
total_sms_cost,
|
||||
'spent',
|
||||
currency="£",
|
||||
currency="$",
|
||||
smaller=True
|
||||
) }}
|
||||
</div>
|
||||
@@ -44,7 +44,7 @@
|
||||
{{ big_number(
|
||||
total_letter_cost,
|
||||
'spent',
|
||||
currency="£",
|
||||
currency="$",
|
||||
smaller=True
|
||||
) }}
|
||||
</div>
|
||||
@@ -82,7 +82,7 @@
|
||||
{{ big_number(
|
||||
service.sms_cost,
|
||||
'spent on text messages',
|
||||
currency="£",
|
||||
currency="$",
|
||||
smallest=True
|
||||
) }}
|
||||
{% else %}
|
||||
@@ -97,7 +97,7 @@
|
||||
{{ big_number(
|
||||
service.letter_cost,
|
||||
'spent on letters',
|
||||
currency="£",
|
||||
currency="$",
|
||||
smallest=True
|
||||
) }}
|
||||
</div>
|
||||
|
||||
@@ -63,7 +63,7 @@
|
||||
{{ big_number(
|
||||
sms_cost,
|
||||
'spent',
|
||||
currency="£",
|
||||
currency="$",
|
||||
smaller=True
|
||||
) }}
|
||||
</div>
|
||||
@@ -73,7 +73,7 @@
|
||||
{{ big_number(
|
||||
letter_cost,
|
||||
'spent',
|
||||
currency="£",
|
||||
currency="$",
|
||||
smaller=True
|
||||
) }}
|
||||
</div>
|
||||
@@ -100,7 +100,7 @@
|
||||
{% call field(align='left') %}
|
||||
{{ big_number(
|
||||
item.sms_cost + item.letter_cost,
|
||||
currency="£",
|
||||
currency="$",
|
||||
smallest=True
|
||||
) }}
|
||||
<ul>
|
||||
|
||||
Reference in New Issue
Block a user