diff --git a/htdocs/contrat/services_list.php b/htdocs/contrat/services_list.php
index 006ed7d8005..32b89362699 100644
--- a/htdocs/contrat/services_list.php
+++ b/htdocs/contrat/services_list.php
@@ -204,6 +204,7 @@ if (!$user->rights->societe->client->voir && !$socid) $sql .= " sc.fk_soc, sc.fk
$sql.= " cd.date_ouverture_prevue,";
$sql.= " cd.date_ouverture,";
$sql.= " cd.date_fin_validite,";
+$sql.= " cd.date_cloture,";
$sql.= " cd.qty,";
$sql.= " cd.total_ht,";
$sql.= " cd.total_tva,";
@@ -632,7 +633,7 @@ while ($i < min($num,$limit))
if (! empty($arrayfields['cd.date_ouverture_prevue']['checked']))
{
print '
';
- print ($obj->date_ouverture_prevue?dol_print_date($db->jdate($obj->date_ouverture_prevue)):' ');
+ print ($obj->date_ouverture_prevue?dol_print_date($db->jdate($obj->date_ouverture_prevue), 'dayhour'):' ');
if ($db->jdate($obj->date_ouverture_prevue) && ($db->jdate($obj->date_ouverture_prevue) < ($now - $conf->contrat->services->inactifs->warning_delay)) && $obj->statut == 0)
print ' '.img_picto($langs->trans("Late"),"warning");
else print ' ';
@@ -641,13 +642,13 @@ while ($i < min($num,$limit))
}
if (! empty($arrayfields['cd.date_ouverture']['checked']))
{
- print ' | '.($obj->date_ouverture?dol_print_date($db->jdate($obj->date_ouverture)):' ').' | ';
+ print ''.($obj->date_ouverture?dol_print_date($db->jdate($obj->date_ouverture), 'dayhour'):' ').' | ';
if (! $i) $totalarray['nbfield']++;
}
// End date
if (! empty($arrayfields['cd.date_fin_validite']['checked']))
{
- print ''.($obj->date_fin_validite?dol_print_date($db->jdate($obj->date_fin_validite)):' ');
+ print ' | '.($obj->date_fin_validite?dol_print_date($db->jdate($obj->date_fin_validite), 'dayhour'):' ');
if ($obj->date_fin_validite && $db->jdate($obj->date_fin_validite) < ($now - $conf->contrat->services->expires->warning_delay) && $obj->statut < 5)
{
$warning_delay=$conf->contrat->services->expires->warning_delay / 3600 / 24;
@@ -658,9 +659,10 @@ while ($i < min($num,$limit))
print ' | ';
if (! $i) $totalarray['nbfield']++;
}
+ // Close date (real end date)
if (! empty($arrayfields['cd.date_cloture']['checked']))
{
- print ''.dol_print_date($db->jdate($obj->date_cloture)).' | ';
+ print ''.dol_print_date($db->jdate($obj->date_cloture), 'dayhour').' | ';
if (! $i) $totalarray['nbfield']++;
}