Skip to content

Firefly III: a personal finances manager

Fix https://github.com/firefly-iii/firefly-iii/issues/11694

James Cole31d1ee11cbb9
diff --git a/resources/views/list/groups.twig b/resources/views/list/groups.twig
index 2294ea3097..459ea7ad31 100644
--- a/resources/views/list/groups.twig
+++ b/resources/views/list/groups.twig
@@ -184,11 +184,14 @@
{{ formatAmountBySymbol(transaction.amount, transaction.currency_symbol, transaction.currency_decimal_places, false) }}
{% endif %}
{% if transaction.source_account_id != account.id %}
- {{ formatAmountBySymbol(transaction.amount*-1, transaction.currency_symbol, transaction.currency_decimal_places, false) }}
+ {{ formatAmountBySymbol(transaction.amount*-1, transaction.currency_symbol, transaction.currency_decimal_places, false) }}
{% endif %}
{# foreign amount of transfer #}
- {% if null != transaction.foreign_amount %}
+ {% if null != transaction.foreign_amount and transaction.source_account_id == account.id %}
+ ({{ formatAmountBySymbol(transaction.foreign_amount, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places, false) }})
+ {% endif %}
+ {% if null != transaction.foreign_amount and transaction.source_account_id != account.id %}
({{ formatAmountBySymbol(transaction.foreign_amount*-1, transaction.foreign_currency_symbol, transaction.foreign_currency_decimal_places, false) }})
{% endif %}