This commit is contained in:
Laurent Destailleur 2021-12-02 17:47:03 +01:00
parent c171ba3a45
commit 39ad96c230

View File

@ -890,14 +890,15 @@ if ($resql) {
$i++; $i++;
} }
// Add a line for total if there is a total to show
if (!empty($arrayfields['duration']['checked'])) { if (!empty($arrayfields['duration']['checked'])) {
print '<tr class="liste_titre">'; print '<tr class="total">';
foreach ($arrayfields as $key => $val) { foreach ($arrayfields as $key => $val) {
if (!empty($val['checked'])) { if (!empty($val['checked'])) {
if ($key == 'duration') { if ($key == 'duration') {
print '<td class="right">'.$totalduration.' '.$langs->trans('DurationDays').'</td>'; print '<td class="right">'.$totalduration.' '.$langs->trans('DurationDays').'</td>';
} else { } else {
print '<td/>'; print '<td></td>';
} }
} }
} }