diff --git a/Layout/default/TimerecordingEmployee/Index.php b/Layout/default/TimerecordingEmployee/Index.php index d0f1a795f..db7d108cd 100644 --- a/Layout/default/TimerecordingEmployee/Index.php +++ b/Layout/default/TimerecordingEmployee/Index.php @@ -77,7 +77,7 @@ $type[3] = "Lehrling"; name ?> id]['type']] ?> id]['startdate']) ? date("d.m.Y", $timerecordingemployees[$timerecordinguser->id]['startdate']) : "-" ?> - id]['datetimetext'] : "" ?> + id]['datetimetext'] : "" ?> id]['plushours_now']/ 3600),($timerecordingemployees[$timerecordinguser->id]['plushours_now']/ 60 % 60)) ?> id]['overtime_now']/ 3600),($timerecordingemployees[$timerecordinguser->id]['overtime_now']/ 60 % 60)) ?> diff --git a/scripts/check_timerecording_plushours.php b/scripts/check_timerecording_plushours.php new file mode 100644 index 000000000..e5715e450 --- /dev/null +++ b/scripts/check_timerecording_plushours.php @@ -0,0 +1,26 @@ +id); +define("INTERNAL_USER_USERNAME", $me->username); + + + +$timerecordingemployees = TimerecordingEmployeeModel::search(['startdate' => 1]); +//var_dump($timerecordingemployees); +foreach ($timerecordingemployees as $timerecordingemployee) { + $employee = new TimerecordingController(); + $employee->updatePlushours($timerecordingemployee->user_id); +} + +