From b4a6c6fcbeed8f885f84a0df23040598794065d9 Mon Sep 17 00:00:00 2001 From: James Cole Date: Fri, 4 Aug 2023 19:11:01 +0200 Subject: [PATCH] Fix https://github.com/firefly-iii/firefly-iii/issues/7818 --- resources/views/transactions/show.twig | 36 ++++++++++++++------------ 1 file changed, 19 insertions(+), 17 deletions(-) diff --git a/resources/views/transactions/show.twig b/resources/views/transactions/show.twig index c72cdd4731..c126d55379 100644 --- a/resources/views/transactions/show.twig +++ b/resources/views/transactions/show.twig @@ -18,35 +18,35 @@ @@ -147,8 +147,10 @@ {{ 'total_amount'|_ }} {% for amount in amounts %} - {% if first.transactiontype.type == 'Withdrawal' or first.transactiontype.type == 'Deposit' %} + {% if first.transactiontype.type == 'Withdrawal' %} {{ formatAmountBySymbol(amount.amount*-1,amount.symbol, amount.decimal_places) }}{% if loop.index0 != amounts|length -1 %}, {% endif %} + {% elseif first.transactiontype.type == 'Deposit' %} + {{ formatAmountBySymbol(amount.amount,amount.symbol, amount.decimal_places) }}{% if loop.index0 != amounts|length -1 %}, {% endif %} {% elseif first.transactiontype.type == 'Transfer' %} {{ formatAmountBySymbol(amount.amount, amount.symbol, amount.decimal_places, false) }}{% if loop.index0 != amounts|length -1 %}, {% endif %} @@ -213,29 +215,29 @@ @@ -411,7 +413,7 @@
+ class="fa fa-fw fa-arrows-h">