From 5a6741ad51fa191053608846e239d188626a4990 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Sat, 6 May 2006 10:50:56 +0000 Subject: [PATCH] =?UTF-8?q?faire=20apparaitre=20le=20nom=20de=20la=20soci?= =?UTF-8?q?=E9t=E9=20sur=20la=20liste=20des=20exp=E9ditions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/expedition/liste.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/htdocs/expedition/liste.php b/htdocs/expedition/liste.php index 1db10526112..8cf142bab08 100644 --- a/htdocs/expedition/liste.php +++ b/htdocs/expedition/liste.php @@ -62,7 +62,9 @@ if (!$user->rights->commercial->client->voir && !$socidp) $sql .= ", sc.fk_soc, $sql .= " FROM ".MAIN_DB_PREFIX."expedition as e"; if (!$user->rights->commercial->client->voir && !$socidp) $sql .= ", ".MAIN_DB_PREFIX."societe_commerciaux as sc, ".MAIN_DB_PREFIX."commande as c"; if ($socidp) $sql.=", ".MAIN_DB_PREFIX."commande as c"; +$sql.= " LEFT JOIN ".MAIN_DB_PREFIX."commande as c ON c.rowid = e.fk_commande"; $sql.= " LEFT JOIN ".MAIN_DB_PREFIX."societe as s ON s.idp = c.fk_soc"; + $sql_add = " WHERE "; if ($socidp) {