From c8a1bc5490b8fbc02095fc3f97cb27f6f9fc6c5c Mon Sep 17 00:00:00 2001 From: simnandez Date: Sat, 18 Aug 2012 16:42:46 +0200 Subject: [PATCH] Qual: A closed contract no more invoiceable --- htdocs/contrat/fiche.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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").'';