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 '
';