From fa668910c2d80a6a6cf49d236ba9c6c727390c35 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 15 Jun 2011 08:55:19 +0000 Subject: [PATCH] Fix: Missing some customers --- htdocs/compta/clients.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/compta/clients.php b/htdocs/compta/clients.php index 6a34816ccf9..d0abaf2950b 100644 --- a/htdocs/compta/clients.php +++ b/htdocs/compta/clients.php @@ -102,7 +102,7 @@ $sql.= ", st.libelle as stcomm, s.prefix_comm, s.code_client, s.code_compta "; if (!$user->rights->societe->client->voir && !$socid) $sql.= ", sc.fk_soc, sc.fk_user "; $sql.= " FROM ".MAIN_DB_PREFIX."societe as s, ".MAIN_DB_PREFIX."c_stcomm as st"; if (!$user->rights->societe->client->voir && !$socid) $sql.= ", ".MAIN_DB_PREFIX."societe_commerciaux as sc"; -$sql.= " WHERE s.fk_stcomm = st.id AND s.client=1"; +$sql.= " WHERE s.fk_stcomm = st.id AND s.client in (1,3)"; $sql.= " AND s.entity = ".$conf->entity; if (!$user->rights->societe->client->voir && !$socid) $sql.= " AND s.rowid = sc.fk_soc AND sc.fk_user = " .$user->id;