fix total days for both view

This commit is contained in:
Lamrani Abdel 2023-01-13 16:58:55 +01:00
parent 147e3ff945
commit fcd82c93f2

View File

@ -826,6 +826,9 @@ if ($resql) {
$starthalfday = ($obj->halfday == -1 || $obj->halfday == 2) ? 'afternoon' : 'morning';
$endhalfday = ($obj->halfday == 1 || $obj->halfday == 2) ? 'morning' : 'afternoon';
$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;
if ($mode == 'kanban') {
if ($i == 0) {
print '<tr><td colspan="12">';