Skip to content

Commit

Permalink
Fix: Do not show supplier code if module not enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Jan 29, 2011
1 parent c41f26f commit 80ed70d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion htdocs/societe/soc.php
Expand Up @@ -1378,7 +1378,8 @@
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;
Expand Down

0 comments on commit 80ed70d

Please sign in to comment.