diff --git a/htdocs/contrat/fiche.php b/htdocs/contrat/fiche.php index 3a189b2cb02..263a76d1a7e 100644 --- a/htdocs/contrat/fiche.php +++ b/htdocs/contrat/fiche.php @@ -649,9 +649,9 @@ else // Statut print ''; - if ($contrat->statut == 1) print '';; + if ($contrat->statut > 0) print '';; print img_statut($objp->statut); - if ($contrat->statut == 1) print ''; + if ($contrat->statut > 0) print ''; print ''; print "\n"; diff --git a/htdocs/contrat/ligne.php b/htdocs/contrat/ligne.php index ba393363da2..8c856bed1a9 100644 --- a/htdocs/contrat/ligne.php +++ b/htdocs/contrat/ligne.php @@ -306,7 +306,7 @@ if ($id > 0) print '  -  '; - // Si pas encore activ + // Si pas encore activé if (! $objp->date_debut_reelle) { print $langs->trans("DateEndPlanned").': '; if ($objp->date_fin) { @@ -314,7 +314,7 @@ if ($id > 0) } else print $langs->trans("Unknown"); } - // Si activ + // Si activé if ($objp->date_debut_reelle && ! $objp->date_fin_reelle) { print $langs->trans("DateEndPlanned").': '; if ($objp->date_fin) { @@ -323,9 +323,10 @@ if ($id > 0) } else print $langs->trans("Unknown"); } + // Si désactivé if ($objp->date_debut_reelle && $objp->date_fin_reelle) { print $langs->trans("DateEndReal").': '; - dolibarr_print_date($objp->date_fin_reelle); + print dolibarr_print_date($objp->date_fin_reelle); } print ''; print ' ';