Fix: Wrong order in list

This commit is contained in:
Laurent Destailleur 2010-08-01 17:53:41 +00:00
parent 7b582e57ed
commit e3b1c513b9

View File

@ -465,7 +465,7 @@ if ($account || $_GET["ref"])
$sql.= " AND b.fk_account = ba.rowid";
$sql.= " AND ba.entity = ".$conf->entity;
$sql.= $sql_rech;
$sql.= $db->order("b.datev", "ASC");
$sql.= $db->order("b.datev, b.datec", "ASC"); // We add date of creation to have correct order when everything is done the same day
$sql.= $db->plimit($limitsql, 0);
dol_syslog("account.php get transactions - sql=".$sql);