From 6250745630d1849b10bc347c9df87807ef21acc0 Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Thu, 31 Aug 2017 10:52:18 +0200 Subject: [PATCH] =?UTF-8?q?Task=20#0001447:=20Solde=20des=20op=C3=A9ration?= =?UTF-8?q?s=20rapproch=C3=A9es=20Take=20in=20account=20the=20VAT=20autopu?= =?UTF-8?q?rged?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/template/ledger_detail_bottom.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/template/ledger_detail_bottom.php b/include/template/ledger_detail_bottom.php index 72eddd8d8..c8c40610b 100644 --- a/include/template/ledger_detail_bottom.php +++ b/include/template/ledger_detail_bottom.php @@ -157,7 +157,9 @@ endif; det->jr_montant; $tableid="tb".$div; + $total_rec=0; echo ''; for ($e=0;$eget_internal(); $array_jr=$cn->get_array('select jr_date,jr_pj_number,jr_montant,jr_comment from jrn where jr_id=$1',array($aRap[$e])); $amount=$array_jr[0]['jr_montant']; + $total_rec=bcadd($total_rec,$amount); $str="modifyOperation(".$aRap[$e].",".$gDossier.")"; // If write access , allow to drop Reconciles operations @@ -193,7 +196,8 @@ if ($aRap != null ) { td(''.$internal.''). td($pj_nb). td($comment). - td(nbm($amount)). + td(_('montant').'='.nbm($amount)). + td(_('delta').'='.nbm(bcsub($amount_tva_include,$total_rec))). td($remove),' id = "row'.$e.'"'); } echo '
';