Skip to content
This repository has been archived by the owner on Jun 12, 2018. It is now read-only.

Commit

Permalink
Change billing statement template to format credit values
Browse files Browse the repository at this point in the history
  • Loading branch information
justinvdm committed Jan 14, 2015
1 parent 0f9f5f8 commit 73d687e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions go/billing/templates/billing/invoice.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ <h2>{{ biller.name }}{% if biller.channel_type != None %} ({{ biller.channel_typ
<tr>
<td>{% if item.description != None %}{{ item.description }}{% endif %}</th>
<td>{{ item.units }}</th>
<td>{% if item.credits != None %}{{ item.credits }}{% endif %}</th>
<td>{% if item.credits != None %}{{ item.credits|format_credits }}{% endif %}</th>
<td>{{ item.unit_cost|format_cents }}</th>
<td>{{ item.cost|format_cents }}
</tr>
Expand All @@ -71,7 +71,7 @@ <h2>{{ biller.name }}{% if biller.channel_type != None %} ({{ biller.channel_typ
<tr>
<td>Total</td>
<td></td>
<td>{{ section.totals.credits }}</td>
<td>{{ section.totals.credits|format_credits }}</td>
<td></td>
<td>{{ section.totals.cost|format_cents }}</td>
</tr>
Expand All @@ -93,7 +93,7 @@ <h2>{{ biller.name }}{% if biller.channel_type != None %} ({{ biller.channel_typ
<tfoot>
<td>Grand Total</td>
<td></td>
<td>{{ totals.credits }}</td>
<td>{{ totals.credits|format_credits }}</td>
<td></td>
<td>{{ totals.cost|format_cents }}</td>
</tfoot>
Expand Down
2 changes: 1 addition & 1 deletion go/billing/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def test_statement_costs(self):
user = self.user_helper.get_django_user()
response = self.get_statement(user, statement)

self.assertContains(response, '>200<')
self.assertContains(response, '>200.00<')
self.assertContains(response, '>1.234<')
self.assertContains(response, '>6.790<')

Expand Down

0 comments on commit 73d687e

Please sign in to comment.