From 598978ca802443b704ec5cf34a4fa6703bc96fa3 Mon Sep 17 00:00:00 2001 From: Dany wm De Bontridder Date: Sat, 7 Nov 2020 14:22:08 +0100 Subject: [PATCH] Bug : incompatibilty with php 7.4 --- include/class/acc_ledger_history_generic.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/class/acc_ledger_history_generic.class.php b/include/class/acc_ledger_history_generic.class.php index a50f142d8..2b96f2ab2 100644 --- a/include/class/acc_ledger_history_generic.class.php +++ b/include/class/acc_ledger_history_generic.class.php @@ -498,8 +498,8 @@ class Acc_Ledger_History_Generic extends Acc_Ledger_History // Grand livre == 0 $Res=$this->db->exec_sql("select jr_id,j_id,j_id as int_j_id,to_char(j_date,'DD.MM.YYYY') as j_date, jr_internal, - case j_debit when 't' then j_montant::text else ' ' end as deb_montant, - case j_debit when 'f' then j_montant::text else ' ' end as cred_montant, + case j_debit when 't' then j_montant else 0 end as deb_montant, + case j_debit when 'f' then j_montant else 0 end as cred_montant, j_debit as debit,j_poste as poste,j_qcode,jr_montant , ". "case when j_text='' or j_text is null then pcm_lib else j_text end as description,j_grpt as grp, jr_comment||' ('||jr_internal||')' as jr_comment,