Skip to content

Firefly III: a personal finances manager

Clean up overview.

James Cole453ccd32710b
diff --git a/resources/views/list/periods.twig b/resources/views/list/periods.twig
index 2fde0b1c41..489ba2abe1 100644
--- a/resources/views/list/periods.twig
+++ b/resources/views/list/periods.twig
@@ -32,7 +32,11 @@
<td style="width:33%;">{{ 'earned'|_ }}</td>
<td style="text-align: right;">
<span title="{{ entry.count }}">
- {{ formatAmountBySymbol(entry.amount*-1, entry.currency_symbol, entry.currency_decimal_places) }}
+ {% if entry.amount < 0 %}
+ {{ formatAmountBySymbol(entry.amount*-1, entry.currency_symbol, entry.currency_decimal_places) }}
+ {% else %}
+ {{ formatAmountBySymbol(entry.amount, entry.currency_symbol, entry.currency_decimal_places) }}
+ {% endif %}
</span>
</td>
</tr>
@@ -58,7 +62,11 @@
<td style="width:33%;">{{ 'transferred_away'|_ }}</td>
<td style="text-align: right;">
<span title="{{ entry.count }}">
- {{ formatAmountBySymbol(entry.amount*-1, entry.currency_symbol, entry.currency_decimal_places) }}
+ {% if entry.amount < 0 %}
+ {{ formatAmountBySymbol(entry.amount, entry.currency_symbol, entry.currency_decimal_places) }}
+ {% else %}
+ {{ formatAmountBySymbol(entry.amount*-1, entry.currency_symbol, entry.currency_decimal_places) }}
+ {% endif %}
</span>
</td>
</tr>
@@ -71,7 +79,11 @@
<td style="width:33%;">{{ 'transferred_in'|_ }}</td>
<td style="text-align: right;">
<span title="{{ entry.count }}">
- {{ formatAmountBySymbol(entry.amount*-1, entry.currency_symbol, entry.currency_decimal_places) }}
+ {% if entry.amount < 0 %}
+ {{ formatAmountBySymbol(entry.amount*-1, entry.currency_symbol, entry.currency_decimal_places) }}
+ {% else %}
+ {{ formatAmountBySymbol(entry.amount, entry.currency_symbol, entry.currency_decimal_places) }}
+ {% endif %}
</span>
</td>
</tr>