From 836143edab1056852d2bc9c493a7cfac1d2d0b71 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 13 Aug 2005 00:44:28 +0000 Subject: [PATCH] Fix: N'utilise pas code compta si module compta non actif. --- htdocs/comm/fiche.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/htdocs/comm/fiche.php b/htdocs/comm/fiche.php index e06583b6a76..faf499bb064 100644 --- a/htdocs/comm/fiche.php +++ b/htdocs/comm/fiche.php @@ -218,12 +218,16 @@ if ($_socid > 0) print ''.$langs->trans('Prefix').''.$objsoc->prefix_comm.''; - if ($objsoc->client) { + if ($objsoc->client) + { print ''; print $langs->trans('CustomerCode').''; print $objsoc->code_client; if ($objsoc->check_codeclient() <> 0) print ' '.$langs->trans("WrongCustomerCode"); print ''; + } + if ($conf->compta->enabled) + { print ''; print ''.$langs->trans("CustomerAccountancyCode").''.$societe->code_compta.''; print '';