Fix #23064 : diplays total at end of inter list

This commit is contained in:
hystepik 2022-12-14 15:39:02 +01:00
parent 66d4edb222
commit 4c43d81872

View File

@ -496,7 +496,7 @@ $selectedfields = $form->multiSelectArrayWithCheckbox('selectedfields', $arrayfi
$selectedfields .= (count($arrayofmassactions) ? $form->showCheckAddButtons('checkforselect', 1) : '');
print '<div class="div-table-responsive">';
print '<table class="tagtable nobottomiftotal liste'.($moreforfilter ? " listwithfilterbefore" : "").'">'."\n";
print '<table class="tagtable liste'.($moreforfilter ? " listwithfilterbefore" : "").'">'."\n";
// Fields title search
// --------------------------------------------------------------------
@ -844,6 +844,9 @@ while ($i < $imaxinloop) {
if (!$i) {
$totalarray['type'][$totalarray['nbfield']] = 'duration';
}
if (!$i) {
$totalarray['pos'][$totalarray['nbfield']] = 'fd.duree';
}
$totalarray['val']['fd.duree'] += $obj->duree;
}
// Action column