Skip to content

Firefly III: a personal finances manager

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

James Cole99cc096b71f0
diff --git a/resources/views/transactions/show.twig b/resources/views/transactions/show.twig
index db60633c03..4336941245 100644
--- a/resources/views/transactions/show.twig
+++ b/resources/views/transactions/show.twig
@@ -300,8 +300,10 @@
<!-- do foreign amount -->
{% if null != journal.foreign_amount %}
- {% if first.transactiontype.type == 'Withdrawal' or first.transactiontype.type == 'Deposit' %}
+ {% if first.transactiontype.type == 'Withdrawal' %}
({{ formatAmountBySymbol(journal.foreign_amount*-1, journal.foreign_currency_symbol, journal.foreign_currency_decimal_places) }})
+ {% elseif first.transactiontype.type == 'Deposit' %}
+ ({{ formatAmountBySymbol(journal.foreign_amount, journal.foreign_currency_symbol, journal.foreign_currency_decimal_places) }})
{% elseif first.transactiontype.type == 'Transfer' %}
<span class="text-info money-transfer">
({{ formatAmountBySymbol(journal.foreign_amount, journal.foreign_currency_symbol, journal.foreign_currency_decimal_places, false) }})