diff --git a/htdocs/compta/bank/account.php b/htdocs/compta/bank/account.php index 32a0a5dbae8..57337abcecf 100644 --- a/htdocs/compta/bank/account.php +++ b/htdocs/compta/bank/account.php @@ -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);