bug : impress->poste give duplicate if the same card is used several times in an operation

This commit is contained in:
Dany De Bontridder 2009-09-18 22:53:18 +00:00
parent 00af64d152
commit 759df68f54

View file

@ -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,".