From 069ea7edb06c0013206ea073cde58f4b69f18ecb Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 7 Aug 2008 20:46:15 +0000 Subject: [PATCH] Fix: Create invoice button enabled only if invoice module enabled --- htdocs/contrat/fiche.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/htdocs/contrat/fiche.php b/htdocs/contrat/fiche.php index 48078c5893f..952f10fcc37 100644 --- a/htdocs/contrat/fiche.php +++ b/htdocs/contrat/fiche.php @@ -18,11 +18,11 @@ */ /** - \file htdocs/contrat/fiche.php - \ingroup contrat - \brief Fiche contrat - \version $Id$ -*/ + * \file htdocs/contrat/fiche.php + * \ingroup contrat + * \brief Fiche contrat + * \version $Id$ + */ require("./pre.inc.php"); require_once(DOL_DOCUMENT_ROOT.'/lib/contract.lib.php'); @@ -1200,11 +1200,11 @@ else else print ''.$langs->trans("Validate").''; } - if ($contrat->statut > 0) + if ($conf->facture->enabled && $contrat->statut > 0) { $langs->load("bills"); if ($user->rights->facture->creer) print ''.$langs->trans("CreateBill").''; - else print ''.$langs->trans("CreateBill").''; + else print ''.$langs->trans("CreateBill").''; } if ($contrat->nbofservicesclosed < $nbofservices)