From 81a8838070bab99e98d5f6433d5cfcbd15835acf Mon Sep 17 00:00:00 2001 From: Alexandre SPANGARO Date: Sat, 7 Jan 2023 14:06:20 +0100 Subject: [PATCH] Add a condition to show option --- htdocs/accountancy/admin/index.php | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/htdocs/accountancy/admin/index.php b/htdocs/accountancy/admin/index.php index 5caa92ec9ee..3a7be3e073e 100644 --- a/htdocs/accountancy/admin/index.php +++ b/htdocs/accountancy/admin/index.php @@ -514,18 +514,20 @@ if (!empty($conf->global->ACCOUNTING_ENABLE_LETTERING)) { } print ''; -print ''; -print ''.$langs->trans("ACCOUNTING_ENABLE_AUTOLETTERING").''; -if (!empty($conf->global->ACCOUNTING_ENABLE_AUTOLETTERING)) { - print ''; - print img_picto($langs->trans("Activated"), 'switch_on'); - print ''; -} else { - print ''; - print img_picto($langs->trans("Disabled"), 'switch_off'); - print ''; +if (!empty($conf->global->ACCOUNTING_ENABLE_LETTERING)) { + print ''; + print '' . $langs->trans("ACCOUNTING_ENABLE_AUTOLETTERING") . ''; + if (!empty($conf->global->ACCOUNTING_ENABLE_AUTOLETTERING)) { + print ''; + print img_picto($langs->trans("Activated"), 'switch_on'); + print ''; + } else { + print ''; + print img_picto($langs->trans("Disabled"), 'switch_off'); + print ''; + } + print ''; } -print ''; print '';