From 6e6adcb48759367e5c3e5d0d5cb381fb22e2f03c Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Sat, 19 Mar 2016 14:39:38 +0100 Subject: [PATCH] Task #1282 Print Balance : highlight sum --- include/balance.inc.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/include/balance.inc.php b/include/balance.inc.php index 310c4dbfe..68e81c86c 100644 --- a/include/balance.inc.php +++ b/include/balance.inc.php @@ -323,6 +323,7 @@ if ( isset($_GET['view'] ) ) $lvl3_old=''; bcscale(2); + $nb_row = count($row); foreach ($row as $r) { $i++; @@ -343,7 +344,7 @@ if ( isset($_GET['view'] ) ) if ( ${'lvl'.$ind.'_old'} != mb_substr($r['poste'],0,$ind)) { - echo ''; + echo ''; echo td(${'lvl'.$ind.'_old'},'style="font-weight:bold;"'); echo td(${'lvl'.$ind.'_old'}." "._("Total niveau")." ".$ind,'style="font-weight:bold;"'); if ($previous==1) { @@ -379,6 +380,10 @@ if ( isset($_GET['view'] ) ) $lvl2[$a]=bcadd($lvl2[$a],$r[$a]); $lvl3[$a]=bcadd($lvl3[$a],$r[$a]); } + // For the Total row , there is no accounting + if ( $r['poste'] == "") { + $tr="highlight"; + } echo ''; echo td($view_history); echo td(h($r['label']));