From df05e4dba42f0d3af286645d172858fc05ae5b0c Mon Sep 17 00:00:00 2001
From: Regis Houssin <regis@dolibarr.fr>
Date: Mon, 17 Dec 2007 02:23:55 +0000
Subject: [PATCH] Fix: doublon sur les paiements

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

diff --git a/htdocs/compta/paiement/liste.php b/htdocs/compta/paiement/liste.php
index f262bcf4eed..0ae88d67706 100644
--- a/htdocs/compta/paiement/liste.php
+++ b/htdocs/compta/paiement/liste.php
@@ -65,7 +65,7 @@ $offset = $limit * $page ;
 if (! $sortorder) $sortorder="DESC";
 if (! $sortfield) $sortfield="p.rowid";
   
-$sql = "SELECT p.rowid,".$db->pdate("p.datep")." as dp, p.amount,";
+$sql = "SELECT DISTINCT p.rowid,".$db->pdate("p.datep")." as dp, p.amount,";
 $sql.= " p.statut, p.num_paiement,";
 //$sql.= " c.libelle as paiement_type,";
 $sql.= " c.code as paiement_code,"; 
-- 
GitLab