Skip to content
This repository has been archived by the owner on Feb 24, 2021. It is now read-only.

Commit

Permalink
Fix float displays.
Browse files Browse the repository at this point in the history
  • Loading branch information
coderanger committed Jun 10, 2012
1 parent 907ef59 commit 6d5e419
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion antitrust/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def __init__(self, *args, **kwargs):
field_args = {
'label': item.name,
'min_value': 0,
'help_text': 'Price %s ISK'%item.price,
'help_text': 'Price %0.2f ISK'%item.price,
'initial': 0,
'validators': [ItemValidator(item)],
}
Expand Down
4 changes: 2 additions & 2 deletions antitrust/templates/pi_finish.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ <h1>PI Contract Invoice</h1>
<tr>
<td class="name">{{ data.item.name }}</td>
<td class="quantity">{{ data.count }}</td>
<td class="subtotal">{{ data.subtotal }}</td>
<td class="subtotal">{{ data.subtotal|floatformat:2 }}</td>
</tr>
{% endfor %}
<tr>
<td class="total-label" colspan="2">Total</td>
<td class="total">{{ total }}</td>
<td class="total">{{ total|floatformat:2 }}</td>
</tr>
</table>

Expand Down

0 comments on commit 6d5e419

Please sign in to comment.