Update expedition.class.php
fetch line on expedition in the same order than the customer order
This commit is contained in:
parent
c895c892a5
commit
18f6718e06
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user