From 92797fd9b4e6fcac6bfe5e6b0d272a9e428ad467 Mon Sep 17 00:00:00 2001 From: sparkyx Date: Fri, 1 Oct 2021 13:56:58 +0200 Subject: [PATCH] =?UTF-8?q?Operation=20details=20:=20calcul=20correctement?= =?UTF-8?q?=20la=20diff=C3=A9rence=20avec=20les=20op=C3=A9rations=20extour?= =?UTF-8?q?n=C3=A9es?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/template/ledger_detail_bottom.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/template/ledger_detail_bottom.php b/include/template/ledger_detail_bottom.php index 11bd28729..30cf76b84 100644 --- a/include/template/ledger_detail_bottom.php +++ b/include/template/ledger_detail_bottom.php @@ -187,7 +187,7 @@ if ($aRap != null ) { $opRap=new Acc_Operation($cn); $opRap->jr_id=$aRap[$e]; $internal=$opRap->get_internal(); - $array_jr=$cn->get_array('select jr_date,jr_pj_number,jr_montant,jr_comment , jr_internal + $array_jr=$cn->get_array('select jr_date,jr_pj_number,jr_montant,jr_comment , jr_internal ,jr_optype from jrn where jr_id=$1', array($aRap[$e])); $amount=$array_jr[0]['jr_montant']; @@ -229,7 +229,7 @@ if ($aRap != null ) { td($pj_nb). td($comment). td(_('montant').'='.nbm($amount)). - td(_('delta').'='.nbm(bcsub($amount_tva_include,$total_rec))). + td(_('delta').'='.nbm(bcsub(abs($amount_tva_include),abs($total_rec)))). td($remove),' id = "row'.$e.'"'); } echo '';