Spent amount / withdrawals are negative, #129.

This commit is contained in:
James Cole
2015-12-12 08:14:17 +01:00
parent 8f8e29fc22
commit e044199693
2 changed files with 3 additions and 5 deletions

View File

@@ -24,10 +24,8 @@
<td>
{% if event.amount < 0 %}
<span class="text-danger">{{ trans('firefly.removed_amount', {amount: (event.amount*-1)|formatAmountPlain})|raw }}</span>
<span class="text-danger">{{ trans('firefly.removed_amount', {amount: (event.amount)|formatAmountPlain})|raw }}</span>
{% else %}
<span class="text-success">{{ trans('firefly.added_amount', {amount: (event.amount)|formatAmountPlain})|raw }}</span>
{% endif %}
</td>