Fix: Do not show supplier code if module not enabled

This commit is contained in:
Laurent Destailleur 2011-01-29 15:56:45 +00:00
parent 66f716aa1c
commit c9cc9e7ec2

View File

@ -1378,7 +1378,8 @@ else
print '</td></tr>';
}
if ($soc->fournisseur) {
if ($conf->fournisseur->enabled && $soc->fournisseur)
{
print '<tr><td>';
print $langs->trans('SupplierCode').'</td><td colspan="3">';
print $soc->code_fournisseur;