From 74ba7e68daa34d4ecd4f91c7c914822845b51e26 Mon Sep 17 00:00:00 2001 From: Alexandre SPANGARO Date: Thu, 7 Jan 2021 06:27:36 +0100 Subject: [PATCH] Mix two systems for create and edit account from balance --- htdocs/accountancy/bookkeeping/balance.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/htdocs/accountancy/bookkeeping/balance.php b/htdocs/accountancy/bookkeeping/balance.php index b049abb7652..0f77de7d331 100644 --- a/htdocs/accountancy/bookkeeping/balance.php +++ b/htdocs/accountancy/bookkeeping/balance.php @@ -322,8 +322,10 @@ if ($action != 'export_csv') $root_account_description = $tmparrayforrootaccount['label']; $root_account_number = $tmparrayforrootaccount['account_number']; - if (empty($tmparrayforrootaccount['label'])) { - $link = ''.img_edit_add().''; + if (empty($accountingaccountstatic->label) && $accountingaccountstatic->id > 0) { + $link = '' . img_edit() . ''; + } elseif (empty($tmparrayforrootaccount['label'])) { + $link = '' . img_edit_add() . ''; } if (!empty($show_subgroup))