From 9e1487fc6126237b300a6990f5c20c3522c7e270 Mon Sep 17 00:00:00 2001 From: fhenry <florian.henry@open-concept.pro> Date: Fri, 26 Apr 2013 12:44:21 +0200 Subject: [PATCH] Fix bug Pgsql --- htdocs/fourn/facture/impayees.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/htdocs/fourn/facture/impayees.php b/htdocs/fourn/facture/impayees.php index 467d02e8726..50b6637291c 100644 --- a/htdocs/fourn/facture/impayees.php +++ b/htdocs/fourn/facture/impayees.php @@ -143,8 +143,7 @@ if ($user->rights->fournisseur->facture->lire) { $sql .= " AND f.facnumber LIKE '%".GETPOST('sf_re')."%'"; } - $sql.= " GROUP BY f.facnumber, f.rowid, f.total_ht, f.total_ttc, f.datef, f.date_lim_reglement, f.paye, f.fk_statut, s.rowid, s.nom"; - + $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"; $sql.= " ORDER BY "; $listfield=explode(',',$sortfield); foreach ($listfield as $key => $value) $sql.=$listfield[$key]." ".$sortorder.","; -- GitLab