diff --git a/resources/views/v1/transactions/show.twig b/resources/views/v1/transactions/show.twig index 369b6465d4..de26d90659 100644 --- a/resources/views/v1/transactions/show.twig +++ b/resources/views/v1/transactions/show.twig @@ -86,10 +86,14 @@ {% for journal in groupArray.transactions %} - - {{ journal.source_name }} - + {% if 'Cash account' == journal.source_type %} + ({{ 'cash'|_ }}) + {% else %} + + {{ journal.source_name }} + + {% endif %} {% if loop.index0 != groupArray.transactions|length -1 %}, {% endif %} {% endfor %} @@ -104,10 +108,14 @@ {% for journal in groupArray.transactions %} - - {{ journal.destination_name }} - + {% if 'Cash account' == journal.destination_type %} + ({{ 'cash'|_ }}) + {% else %} + + {{ journal.destination_name }} + + {% endif %} {% if loop.index0 != groupArray.transactions|length -1 %}, {% endif %} {% endfor %} @@ -172,8 +180,12 @@ - {{ journal.source_name }} → + {% if 'Cash account' == journal.source_type %} + ({{ 'cash'|_ }}) + {% else %} + {{ journal.source_name }} → + {% endif %} {% if type == 'Withdrawal' or type == 'Deposit' %} {{ formatAmountBySymbol(journal.amount*-1, journal.currency_symbol, journal.currency_decimal_places) }} {% elseif type == 'Transfer' or type == 'Opening balance' %} @@ -194,8 +206,12 @@ {% endif %} → - {{ journal.destination_name }} + {% if 'Cash account' == journal.destination_type %} + ({{ 'cash'|_ }}) + {% else %} + {{ journal.destination_name }} + {% endif %} {% if null != journal.category_id %} @@ -278,7 +294,8 @@
- +