drop old fields, make use of new fields.
display decimal with 0 properly, non scientific
This commit is contained in:
@@ -22,13 +22,19 @@
|
||||
{% for transaction in transactions %}
|
||||
<tr>
|
||||
<td>{{ transaction.date_valid }}</td>
|
||||
<td>{{ transaction.amount_before_fee|floatformat:3 }} {{ transaction.crypto_currency }}</td>
|
||||
<td>{{ transaction.amount|formatcurrency }} {{ transaction.fiat_currency }}</td>
|
||||
<td>{% if transaction.amount < 0 %}
|
||||
<td>{{ transaction.crypto_amount|floatformat:3 }}
|
||||
{% if transaction.crypto_fee > 0 %}Fee: {{ transaction.crypto_fee|floatformat:3 }}{% endif %}
|
||||
{{ transaction.crypto_currency }}
|
||||
</td>
|
||||
<td>{{ transaction.fiat_amount|formatcurrency }}
|
||||
{% if transaction.fiat_fee > 0 %}Fee: {{ transaction.fiat_fee|floatformat:2 }}{% endif %}
|
||||
{{ transaction.fiat_currency }}
|
||||
</td>
|
||||
<td>{% if transaction.transaction_type == 'S' %}
|
||||
{{ transaction.exchange_rate|formatcurrency }} {{ transaction.crypto_currency }}/{{ transaction.fiat_currency }}
|
||||
{% endif %}
|
||||
</td>
|
||||
<td>{% if transaction.amount > 0 %}
|
||||
<td>{% if transaction.transaction_type == 'B' %}
|
||||
{{ transaction.exchange_rate|formatcurrency }} {{ transaction.crypto_currency }}/{{ transaction.fiat_currency }}
|
||||
{% endif %}
|
||||
</td>
|
||||
|
||||
Reference in New Issue
Block a user