FIX : group by

This commit is contained in:
Gauthier PC portable 024 2021-01-19 17:18:22 +01:00
parent ae6e1db652
commit 8b0a5d270b

View File

@ -132,7 +132,7 @@ if ($filtre) {
if ($typeid) {
$sql .= " AND t.fk_typepayment=".$typeid;
}
$sql .= " GROUP BY t.rowid, t.amount, t.datev, t.label, t.paye";
$sql .= " GROUP BY t.rowid, t.amount, t.datev, t.label, t.paye, pst.code";
$sql .= $db->order($sortfield, $sortorder);
$totalnboflines = 0;
$result = $db->query($sql);