swap dollar symbols for pound symbols

This commit is contained in:
stvnrlly
2022-10-12 20:16:22 +00:00
parent 40dacb61c9
commit 067b4b3742
7 changed files with 28 additions and 27 deletions

View File

@@ -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}"

View File

@@ -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 = [

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>