diff --git a/htdocs/contrat/fiche.php b/htdocs/contrat/fiche.php index b098a8d093a..fb4183cfa4d 100644 --- a/htdocs/contrat/fiche.php +++ b/htdocs/contrat/fiche.php @@ -1358,7 +1358,7 @@ else else print ''.$langs->trans("Validate").''; } - if ($conf->facture->enabled && $object->statut > 0) + if ($conf->facture->enabled && $object->statut > 0 && $object->nbofservicesclosed < $nbofservices) { $langs->load("bills"); if ($user->rights->facture->creer) print ''.$langs->trans("CreateBill").'';