From 759df68f544476e75e7bd62e4f826327d5eea86c Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Fri, 18 Sep 2009 22:53:18 +0000 Subject: [PATCH] bug : impress->poste give duplicate if the same card is used several times in an operation --- include/class_acc_account_ledger.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/class_acc_account_ledger.php b/include/class_acc_account_ledger.php index 524a8625b..7dc151fc2 100644 --- a/include/class_acc_account_ledger.php +++ b/include/class_acc_account_ledger.php @@ -54,7 +54,7 @@ class Acc_Account_Ledger { $periode=sql_filter_per($this->db,$p_from,$p_to,'p_id','jr_tech_per'); - $Res=ExecSql($this->db,"select jr_id,to_char(j_date,'DD.MM.YYYY') as j_date,". + $Res=ExecSql($this->db,"select distinct jr_id,j_date,to_char(j_date,'DD.MM.YYYY') as j_date,". "case when j_debit='t' then j_montant else 0 end as deb_montant,". "case when j_debit='f' then j_montant else 0 end as cred_montant,". " jr_comment as description,jrn_def_name as jrn_name,".