From 1fee0b1eefff74cb8594e278a0c6b94ff89423b9 Mon Sep 17 00:00:00 2001 From: Spitzer Daniel Date: Thu, 22 Feb 2024 14:53:48 +0100 Subject: [PATCH] =?UTF-8?q?Zeiterfassung=20update=20*=20Autoausf=C3=BCllen?= =?UTF-8?q?=20->=20fertiggestellt=20*=20=C3=9Cberpr=C3=BCfungen=20Buchungs?= =?UTF-8?q?=C3=BCberschneidungen=20ausgebaut=20*=20Abwesenheitskalender=20?= =?UTF-8?q?Mouseover=20eingebaut=20*=20Abwesenheiten=20ohne=20Ende=20Updat?= =?UTF-8?q?e=20->=20Gesundmeldung=20generiert=20nun=20ein=20Update=20mit?= =?UTF-8?q?=20Ende=20auf=20die=20Abwesenheit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Layout/default/Pop/Index.php | 3 - Layout/default/Timerecording/Index.php | 12 +- .../default/TimerecordingCalendar/Index.php | 150 ++++++++++++++- Layout/default/TimerecordingEmployee/Form.php | 1 - Layout/default/TimerecordingReport/Index.php | 2 +- .../Timerecording/TimerecordingController.php | 176 +++++++++++++++++- .../Timerecording/TimerecordingModel.php | 12 +- .../TimerecordingReportController.php | 73 ++++++-- public/assets/js/calendar/tooltip.min.js | 5 + public/js/pages/timerecording/index.js | 28 +++ public/js/pages/timerecordingReport/index.js | 7 +- 11 files changed, 426 insertions(+), 43 deletions(-) create mode 100644 public/assets/js/calendar/tooltip.min.js diff --git a/Layout/default/Pop/Index.php b/Layout/default/Pop/Index.php index 6d75929dc..6c8f3ed88 100644 --- a/Layout/default/Pop/Index.php +++ b/Layout/default/Pop/Index.php @@ -206,10 +206,8 @@ $pagination_entity_name = "Pops"; markers[building.id] = marker; }); - console.log(all_coords); // calculate center position mapCenterPos = GetCenterFromDegrees(all_coords); - console.log(mapCenterPos); buildingMap.setView(mapCenterPos, 12); return true; @@ -228,7 +226,6 @@ $pagination_entity_name = "Pops"; filter: filter }, function (success) { if (success.status == "OK") { - console.log(success); if (Array.isArray(success.result.buildings)) { buildings = success.result.buildings; diff --git a/Layout/default/Timerecording/Index.php b/Layout/default/Timerecording/Index.php index eefaa1564..dc073fd1f 100644 --- a/Layout/default/Timerecording/Index.php +++ b/Layout/default/Timerecording/Index.php @@ -18,7 +18,7 @@ for ($i = 1; $i <= 25; $i++) { $kw = date('W', $time); $year = date('Y', $time); $timestamp_montag = strtotime("{$year}-W{$kw}"); - $timestamp_freitag = strtotime("{$year}-W{$kw}-5"); + $timestamp_freitag = strtotime("{$year}-W{$kw}-7"); $weeks[$time] = "KW" . $kw . " " . $year . " (" . date('d.m', $timestamp_montag) . "-" . date('d.m', $timestamp_freitag) . ")"; $time = $time - 604800; } @@ -179,14 +179,14 @@ $years[time() - 31536000] = date('Y', time() - 31536000); -
+
-
@@ -204,7 +204,9 @@ $years[time() - 31536000] = date('Y', time() - 31536000); Abbrechen - +
@@ -340,7 +342,9 @@ $years[time() - 31536000] = date('Y', time() - 31536000); let insertUrl = ""; let deleteUrl = ""; let requestUrl = " 'getTimerecordings']) ?>"; + let autoWorkinghoursUrl = " 'fillWorkinghours']) ?>"; + diff --git a/Layout/default/TimerecordingCalendar/Index.php b/Layout/default/TimerecordingCalendar/Index.php index 1b7516161..aa7a9ae75 100644 --- a/Layout/default/TimerecordingCalendar/Index.php +++ b/Layout/default/TimerecordingCalendar/Index.php @@ -4,6 +4,16 @@ $daysgerm = array("So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"); @@ -34,6 +161,9 @@ $daysgerm = array("So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"); src="assets/js/calendar/moment/index.global.min.js?"> + +