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 '';