Arztbesuch und Behördenweg in Projektliste von der Tagesarbeitszeit abziehen

This commit is contained in:
Gerald Raab
2019-01-14 14:31:26 +01:00
parent 7cfff391eb
commit 69a55fc931
+5 -1
View File
@@ -69,7 +69,7 @@ $ztauf->getListeUserFromTo($uid, $year.'-'.$month.'-01', $year.'-'.$month.'-'.$d
$projectlines = [];
$dayStart = $dayEnd = '';
$projectnames = $tosubtract = $allpauseranges = [];
$activitiesToSubtract = ['Pause', 'LehreExtern'];//aktivitaetstypen which should be subtracted fromworktime
$activitiesToSubtract = ['Pause', 'LehreExtern', 'Arztbesuch', 'Behoerde'];//aktivitaetstypen which should be subtracted fromworktime
$ztaufdata = $ztauf->result;
$monthsums = [0 => 0.00];
@@ -232,6 +232,10 @@ for ($i = 0; $i < count($ztaufdata); $i++)
$projectlines[$day]->arbeitszeit -= $subtraction->diff;
$lehreExternExists = true;
}
else
{
$projectlines[$day]->arbeitszeit -= $subtraction->diff;
}
}
//subtract pauses from project worktimes