From 622dc041af378cea00a6afa5ee3ca71580f1fef6 Mon Sep 17 00:00:00 2001
From: Laurent Destailleur <eldy@users.sourceforge.net>
Date: Thu, 12 Aug 2010 07:50:47 +0000
Subject: [PATCH] Fix: postgresl compatibility

---
 htdocs/fourn/facture/paiement.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/htdocs/fourn/facture/paiement.php b/htdocs/fourn/facture/paiement.php
index 7fb03eece88..4a6786b26ea 100644
--- a/htdocs/fourn/facture/paiement.php
+++ b/htdocs/fourn/facture/paiement.php
@@ -273,7 +273,7 @@ if ($action == 'create' || $action == 'add_paiement')
 			$sql .= ' WHERE f.fk_soc = '.$facture->socid;
 			$sql .= ' AND f.paye = 0';
 			$sql .= ' AND f.fk_statut = 1';  // Statut=0 => non validee, Statut=2 => annulee
-			$sql .= ' GROUP BY f.facnumber';
+			$sql .= ' GROUP BY f.rowid,f.facnumber,f.total_ttc,f.datef';
 			$resql = $db->query($sql);
 			if ($resql)
 			{
-- 
GitLab