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)