FIX Total of holidays is doubled

This commit is contained in:
Laurent Destailleur 2023-09-12 09:48:51 +02:00
parent 403d9f27a4
commit 64aa90f8df

View File

@ -957,8 +957,6 @@ if ($id && empty($user->rights->holiday->readall) && !in_array($id, $childids))
}
if (!empty($arrayfields['duration']['checked'])) {
print '<td class="right">';
$nbopenedday = num_open_day($db->jdate($obj->date_debut, 1), $db->jdate($obj->date_fin, 1), 0, 1, $obj->halfday); // user jdate(..., 1) because num_open_day need UTC dates
$totalduration += $nbopenedday;
print $nbopenedday;
//print ' '.$langs->trans('DurationDays');
print '</td>';