Skip to content

Commit

Permalink
Fix: Grand total correction (Dolibarr#31303)
Browse files Browse the repository at this point in the history
  • Loading branch information
fmarcet authored Oct 8, 2024
1 parent 67156d0 commit ee4776d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion htdocs/core/tpl/list_print_total.tpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@
while ($i < $totalarray['nbfield']) {
$i++;
if (!empty($totalarray['pos'][$i])) {
printTotalValCell($totalarray['type'][$i], $sumsarray[$totalarray['pos'][$i]]);
$fieldname = preg_replace('/[^a-z0-9]/', '', $totalarray['pos'][$i]);
printTotalValCell($totalarray['type'][$i], $sumsarray[$fieldname]);
} else {
if ($i == 1) {
print '<td>';
Expand Down

0 comments on commit ee4776d

Please sign in to comment.