From 4ff5922a55dc987f9ab8a5ea7c16be664ec165bf Mon Sep 17 00:00:00 2001 From: fhenry <florian.henry@open-concept.pro> Date: Fri, 26 Apr 2013 12:53:13 +0200 Subject: [PATCH] Fix pgSQL bug --- htdocs/fourn/facture/impayees.php | 1 + 1 file changed, 1 insertion(+) diff --git a/htdocs/fourn/facture/impayees.php b/htdocs/fourn/facture/impayees.php index 50b6637291c..c515307663d 100644 --- a/htdocs/fourn/facture/impayees.php +++ b/htdocs/fourn/facture/impayees.php @@ -144,6 +144,7 @@ if ($user->rights->fournisseur->facture->lire) $sql .= " AND f.facnumber LIKE '%".GETPOST('sf_re')."%'"; } $sql.= " GROUP BY s.rowid, s.nom, f.rowid, f.facnumber, f.total_ht, f.total_ttc, f.datef, f.date_lim_reglement,f.paye, f.rowid, f.fk_statut"; + if (! $user->rights->societe->client->voir && ! $socid) $sql .= ", sc.fk_soc, sc.fk_user "; $sql.= " ORDER BY "; $listfield=explode(',',$sortfield); foreach ($listfield as $key => $value) $sql.=$listfield[$key]." ".$sortorder.","; -- GitLab