diff --git a/htdocs/user/fiche.php b/htdocs/user/fiche.php index d9ff9c7c71d..108619f66ae 100644 --- a/htdocs/user/fiche.php +++ b/htdocs/user/fiche.php @@ -1879,19 +1879,23 @@ else print "\n"; // Accountancy code - print ""; - print ''.$langs->trans("AccountancyCode").''; - print ''; - if ($caneditfield) + if (! empty($conf->global->USER_ENABLE_ACCOUNTANCY_CODE)) // For the moment field is not used so must not appeared. { - print ''; + print ""; + print ''.$langs->trans("AccountancyCode").''; + print ''; + if ($caneditfield) + { + print ''; + } + else + { + print ''; + print $object->accountancy_code; + } + print ''; + print ""; } - else - { - print ''; - print $object->accountancy_code; - } - print ''; // Status print ''.$langs->trans("Status").'';