From e1af4f372e28fca13f7cf0d66d501d7bcec73654 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 17 Feb 2021 15:27:27 +0100 Subject: [PATCH] Hide setup line when not relevant --- htdocs/societe/admin/societe.php | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/htdocs/societe/admin/societe.php b/htdocs/societe/admin/societe.php index daaf9fbd623..918a5e6d87c 100644 --- a/htdocs/societe/admin/societe.php +++ b/htdocs/societe/admin/societe.php @@ -861,16 +861,18 @@ if (!empty($conf->global->SOCIETE_DISABLE_PROSPECTSCUSTOMERS)) print ''; print ''; -// Default Prospect/Customer thirdparty type on customer création -print ''; -print ''.$langs->trans("DefaultCustomerType").''; -print ''; -print $formcompany->selectProspectCustomerType($conf->global->THIRDPARTY_CUSTOMERTYPE_BY_DEFAULT, 'defaultcustomertype', 'defaultcustomertype', 'admin'); -print ''; -print ''; -print ''; -print ''; -print ''; +if (!empty($conf->global->SOCIETE_DISABLE_PROSPECTSCUSTOMERS)) { + // Default Prospect/Customer thirdparty type on customer création + print ''; + print ''.$langs->trans("DefaultCustomerType").''; + print ''; + print $formcompany->selectProspectCustomerType($conf->global->THIRDPARTY_CUSTOMERTYPE_BY_DEFAULT, 'defaultcustomertype', 'defaultcustomertype', 'admin'); + print ''; + print ''; + print ''; + print ''; + print ''; +} print ''; print '';