From 03cec69af336517f662488ddecfe4f02df64f8e6 Mon Sep 17 00:00:00 2001 From: James Cole Date: Thu, 3 Sep 2020 06:55:00 +0200 Subject: [PATCH] Fix cash account display. --- resources/views/v1/list/groups.twig | 79 ++++++++++++++++++++--------- 1 file changed, 54 insertions(+), 25 deletions(-) diff --git a/resources/views/v1/list/groups.twig b/resources/views/v1/list/groups.twig index d73b576bdf..2be3b3f01b 100644 --- a/resources/views/v1/list/groups.twig +++ b/resources/views/v1/list/groups.twig @@ -13,13 +13,17 @@ TODO: hide and show columns @@ -52,7 +56,8 @@ TODO: hide and show columns - {{ group.title }} + {{ group.title }} @@ -76,12 +81,16 @@ TODO: hide and show columns {% endif %}
-
@@ -178,12 +187,20 @@ TODO: hide and show columns {{ transaction.date.formatLocalized(monthAndDayFormat) }} - {{ transaction.source_account_name }} + {% if 'Cash account' == transaction.source_account_type %} + ({{ 'cash'|_ }}) + {% else %} + {{ transaction.source_account_name }} + {% endif %} - {{ transaction.destination_account_name }} + {% if 'Cash account' == transaction.destination_account_type %} + ({{ 'cash'|_ }}) + {% else %} + {{ transaction.destination_account_name }} + {% endif %} {% if showCategory %} @@ -205,14 +222,20 @@ TODO: hide and show columns {% if group.count == 1 %}
-
@@ -225,9 +248,11 @@ TODO: hide and show columns {% endif %}
- + type="checkbox" class="mass-select form-check-inline" + data-value="{{ transaction.transaction_journal_id }}"/>
@@ -240,13 +265,17 @@ TODO: hide and show columns