let keep it to expedition

This commit is contained in:
florian HENRY 2020-03-13 14:55:34 +01:00
parent 6edaa7ac11
commit ca269864f7

View File

@ -836,7 +836,7 @@ if ($object->id > 0)
$sql .= ', s.rowid as socid';
$sql .= " FROM ".MAIN_DB_PREFIX."societe as s, ".MAIN_DB_PREFIX."expedition as e";
$sql .= " WHERE e.fk_soc = s.rowid AND s.rowid = ".$object->id;
$sql .= " AND e.entity IN (".getEntity('commande').")";
$sql .= " AND e.entity IN (".getEntity('expedition').")";
$sql .= ' GROUP BY e.rowid';
$sql .= ', e.ref';
$sql .= ', e.date_creation';