Correction compatibility Postgresql

This commit is contained in:
Your Name 2016-05-18 18:52:38 +02:00
parent 23311cdba1
commit c2b958a039

View File

@ -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");