From c2b958a039fbd828679d2421ea6bb167c5e02319 Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 18 May 2016 18:52:38 +0200 Subject: [PATCH] Correction compatibility Postgresql --- htdocs/compta/resultat/clientfourn.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/compta/resultat/clientfourn.php b/htdocs/compta/resultat/clientfourn.php index 81e4346440d..3c54a7b1e86 100644 --- a/htdocs/compta/resultat/clientfourn.php +++ b/htdocs/compta/resultat/clientfourn.php @@ -654,7 +654,7 @@ if (! empty($conf->expensereport->enabled)) if (! empty($date_start) && ! empty($date_end)) $sql.= " AND $column >= '".$db->idate($date_start)."' AND $column <= '".$db->idate($date_end)."'"; - $sql.= " GROUP BY u.rowid"; + $sql.= " GROUP BY u.rowid, p.rowid, p.ref, u.firstname, u.lastname, date_format(pe.datep,'%Y-%m')"; $sql.= " ORDER BY p.ref"; dol_syslog("get expense report outcome");