Update expedition.class.php

fetch line on expedition in the same order than the customer order
This commit is contained in:
BENKE Charles 2014-07-29 14:06:31 +02:00
parent c895c892a5
commit 18f6718e06

View File

@ -1066,6 +1066,7 @@ class Expedition extends CommonObject
$sql.= " LEFT JOIN ".MAIN_DB_PREFIX."product as p ON p.rowid = cd.fk_product";
$sql.= " WHERE ed.fk_expedition = ".$this->id;
$sql.= " AND ed.fk_origin_line = cd.rowid";
$sql.= " ORDER BY cd.rang";
dol_syslog(get_class($this)."::fetch_lines", LOG_DEBUG);
$resql = $this->db->query($sql);