From 80ed70d32e01d36b571ed0ffae94230aedfe7f2c Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 29 Jan 2011 15:57:25 +0000 Subject: [PATCH] Fix: Do not show supplier code if module not enabled --- htdocs/societe/soc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/societe/soc.php b/htdocs/societe/soc.php index d388e71267080..8831ead172830 100644 --- a/htdocs/societe/soc.php +++ b/htdocs/societe/soc.php @@ -1378,7 +1378,8 @@ print ''; } - if ($soc->fournisseur) { + if ($conf->fournisseur->enabled && $soc->fournisseur) + { print ''; print $langs->trans('SupplierCode').''; print $soc->code_fournisseur;