From 99cc096b71f0edc247f551f2960a733177a99010 Mon Sep 17 00:00:00 2001 From: James Cole Date: Sat, 24 Feb 2024 05:38:02 +0100 Subject: [PATCH] Fix https://github.com/firefly-iii/firefly-iii/issues/8578 --- resources/views/transactions/show.twig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 @@ {% 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' %} ({{ formatAmountBySymbol(journal.foreign_amount, journal.foreign_currency_symbol, journal.foreign_currency_decimal_places, false) }})