From 435ee2cc2666fa3c4171db6d0648e281ce22966c Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 16 Apr 2012 11:39:26 +0200 Subject: [PATCH] Fix: Must use tms date --- htdocs/fourn/commande/index.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/htdocs/fourn/commande/index.php b/htdocs/fourn/commande/index.php index 22ef3d72e8b..79f7955bb13 100755 --- a/htdocs/fourn/commande/index.php +++ b/htdocs/fourn/commande/index.php @@ -300,8 +300,7 @@ print ''; */ $max=5; -$sql = "SELECT c.rowid, c.ref, c.fk_statut, s.nom, s.rowid as socid,"; -$sql.= " date_cloture as datec"; +$sql = "SELECT c.rowid, c.ref, c.fk_statut, c.tms, s.nom, s.rowid as socid"; $sql.= " FROM ".MAIN_DB_PREFIX."commande_fournisseur as c"; $sql.= ", ".MAIN_DB_PREFIX."societe as s"; if (!$user->rights->societe->client->voir && !$socid) $sql.= ", ".MAIN_DB_PREFIX."societe_commerciaux as sc"; @@ -355,7 +354,7 @@ if ($resql) print ''; print ''.img_object($langs->trans("ShowCompany"),"company").' '.$obj->nom.''; - print ''.dol_print_date($db->jdate($obj->datec)).''; + print ''.dol_print_date($db->jdate($obj->tms),'day').''; print ''.$commandestatic->LibStatut($obj->fk_statut,5).''; print ''; $i++;