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";
= $timerecordinguser->name ?> |
= $type[$timerecordingemployees[$timerecordinguser->id]['type']] ?> |
= ($timerecordingemployees[$timerecordinguser->id]['startdate']) ? date("d.m.Y", $timerecordingemployees[$timerecordinguser->id]['startdate']) : "-" ?> |
- = ($timerecordingworkinghours) ? $timerecordingworkinghours[$timerecordinguser->id]['datetimetext'] : "" ?> |
+ = ($timerecordingworkinghours) ? $timerecordingworkinghours[$timerecordinguser->id]['datetimetext'] : "" ?> |
= $sum ?> |
= sprintf('%02d:%02d', ($timerecordingemployees[$timerecordinguser->id]['plushours_now']/ 3600),($timerecordingemployees[$timerecordinguser->id]['plushours_now']/ 60 % 60)) ?> |
= sprintf('%02d:%02d', ($timerecordingemployees[$timerecordinguser->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);
+}
+
+