Merge branch 'spidev' into 'master'

Kalender Anpassungen

See merge request fronk/thetool!1420
This commit is contained in:
Daniel Spitzer
2025-06-06 07:38:56 +00:00

View File

@@ -1073,6 +1073,22 @@ class TimerecordingController extends mfBaseController
$hours = floor($seconds / 3600);
$sum = sprintf("%02d", $hours) . ":" . sprintf("%02d", $minutes);
$day = $daysgerm[date("w", $timerecording->start)];
} else if ($timerecording->timerecordingCategory->hourday == 9) {
$date = date("d.m.Y", $timerecording->start);
$start = "-";
$end = "-";
$datadate = date("Y-m-d", $timerecording->start);
$day = $daysgerm[date("w", $timerecording->start)];
// $hours = number_format($timerecording->hours_bpa / 60 / 60, "2", ",", '');
$timerecording->hours = $timerecording->hours * -1;
$hoursbpa = round($timerecording->hours / 60 / 60, 2);
$hoursbpa = str_replace(".", ",", $hoursbpa);
if ($timerecording->hours > 0) {
$sum = "+" . $hoursbpa . " St";
} else {
$sum = $hoursbpa . " St";
}
}
if ($timerecording->timerecordingCategory->approval == 1 && $timerecording->approved == 0) {