From 05005eac32e4e134aacacad2d2d3a6581dad56e4 Mon Sep 17 00:00:00 2001 From: James Cole Date: Sun, 20 Apr 2025 07:56:50 +0200 Subject: [PATCH] Fix #10150 --- resources/views/list/groups.twig | 4 ++++ resources/views/transactions/show.twig | 9 +++++++++ 2 files changed, 13 insertions(+) diff --git a/resources/views/list/groups.twig b/resources/views/list/groups.twig index 02edb9fe45..c3e4606881 100644 --- a/resources/views/list/groups.twig +++ b/resources/views/list/groups.twig @@ -295,6 +295,7 @@ @@ -316,12 +318,14 @@ {% endif %} + {% if transaction.transaction_type_type != 'Reconciliation' and transaction.transaction_type_type != 'Opening balance' and transaction.transaction_type_type != 'Liability credit' %}
+ {% endif %}
diff --git a/resources/views/transactions/show.twig b/resources/views/transactions/show.twig index dac9ece27e..f8ff13b81a 100644 --- a/resources/views/transactions/show.twig +++ b/resources/views/transactions/show.twig @@ -19,8 +19,11 @@ {# edit + delete #}
  • {{ 'edit'|_ }}
  • + {% if groupArray.transactions[0].type != 'reconciliation' and groupArray.transactions[0].type != 'opening balance' and groupArray.transactions[0].type != 'liability credit' %}
  • {{ 'delete'|_ }}
  • + {% endif %} + {% if groupArray.transactions[0].type != 'reconciliation' and groupArray.transactions[0].type != 'opening balance' and groupArray.transactions[0].type != 'liability credit' %} {# convert to different type #} @@ -42,6 +45,7 @@ class="fa fa-exchange"> {{ 'convert_to_transfer'|_ }} {% endif %} + {# clone #} {% if groupArray.transactions[0].type != 'opening balance' and groupArray.transactions[0].type != 'reconciliation' %} @@ -50,6 +54,7 @@
  • {{ 'clone_and_edit'|_ }}
  • {% endif %} + {% endif %} @@ -223,12 +228,15 @@ {# edit + delete #}
  • {{ 'edit'|_ }}
  • + {% if groupArray.transactions[0].type != 'reconciliation' and groupArray.transactions[0].type != 'opening balance' and groupArray.transactions[0].type != 'liability credit' %}
  • {{ 'delete'|_ }}
  • + {% endif %} {% if journal.reconciled %}
  • {{ 'unreconcile'|_ }}
  • {% endif %} + {% if groupArray.transactions[0].type != 'reconciliation' and groupArray.transactions[0].type != 'opening balance' and groupArray.transactions[0].type != 'liability credit' %} {# convert to different type #} @@ -273,6 +281,7 @@ {{ 'create_recurring_from_transaction'|_ }} + {% endif %}