From 9b8279dd05b0a2de859fd1f179eae8ba2f61a694 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 6 Jan 2006 16:21:31 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20Regression=20mysql=20qui=20peut=20etre?= =?UTF-8?q?=20corrig=E9=20par=20r=E9ecriture=20requete=20dans=20certains?= =?UTF-8?q?=20cas?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/compta/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/compta/index.php b/htdocs/compta/index.php index 469d34c9230..4f023b41f68 100644 --- a/htdocs/compta/index.php +++ b/htdocs/compta/index.php @@ -260,7 +260,7 @@ if ($conf->commande->enabled && $user->rights->commande->lire) $sql = "SELECT sum(f.total) as tot_fht, sum(f.total_ttc) as tot_fttc"; $sql .= " ,s.nom, s.idp, p.rowid, p.ref, p.total_ht, p.total_ttc"; - $sql .= " FROM ".MAIN_DB_PREFIX."commande AS p, llx_societe AS s"; + $sql .= " FROM ".MAIN_DB_PREFIX."societe AS s, ".MAIN_DB_PREFIX."commande AS p"; $sql .= " LEFT JOIN ".MAIN_DB_PREFIX."co_fa AS co_fa ON co_fa.fk_commande = p.rowid"; $sql .= " LEFT JOIN ".MAIN_DB_PREFIX."facture AS f ON co_fa.fk_facture = f.rowid"; $sql .= " WHERE p.fk_soc = s.idp";