From 1f586c438da77ed3a04283cbe1b9cca159f40ca8 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 12 Jun 2011 22:16:56 +0000 Subject: [PATCH] Fix: Use modified date --- htdocs/commande/index.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/htdocs/commande/index.php b/htdocs/commande/index.php index 23f318d9658..0293a033649 100644 --- a/htdocs/commande/index.php +++ b/htdocs/commande/index.php @@ -215,10 +215,10 @@ $max=5; * Last modified orders */ -$sql = "SELECT c.rowid, c.ref, c.fk_statut, c.facture, s.nom, s.rowid as socid,"; -$sql.= " date_cloture as datec"; -$sql.= " FROM ".MAIN_DB_PREFIX."commande as c"; -$sql.= ", ".MAIN_DB_PREFIX."societe as s"; +$sql = "SELECT c.rowid, c.ref, c.fk_statut, c.facture, c.date_cloture as datec, c.tms as datem,"; +$sql.= " s.nom, s.rowid as socid"; +$sql.= " FROM ".MAIN_DB_PREFIX."commande as c,"; +$sql.= " ".MAIN_DB_PREFIX."societe as s"; if (!$user->rights->societe->client->voir && !$socid) $sql.= ", ".MAIN_DB_PREFIX."societe_commerciaux as sc"; $sql.= " WHERE c.fk_soc = s.rowid"; $sql.= " AND c.entity = ".$conf->entity; @@ -270,7 +270,7 @@ if ($resql) print ''; print ''.img_object($langs->trans("ShowCompany"),"company").' '.$obj->nom.''; - print ''.dol_print_date($db->jdate($obj->datec),'day').''; + print ''.dol_print_date($db->jdate($obj->datem),'day').''; print ''.$commandestatic->LibStatut($obj->fk_statut,$obj->facture,5).''; print ''; $i++;