diff --git a/Layout/default/Timerecording/Index.php b/Layout/default/Timerecording/Index.php index af5b2dcee..0359e58ae 100644 --- a/Layout/default/Timerecording/Index.php +++ b/Layout/default/Timerecording/Index.php @@ -126,7 +126,9 @@ $years[time() - 31536000] = date('Y', time() - 31536000); data-approval="approval ?>" data-comment="require_comment ?>" data-hourday="hourday ?>" - data-businesstrip="businesstrip ?>">name ?> + data-businesstrip="businesstrip ?>" + data-homeoffice="hourday==1) ? 1 : 0 ?>">name ?> + @@ -179,9 +181,19 @@ $years[time() - 31536000] = date('Y', time() - 31536000); -
+
+
-
+
+ + +
+
+ +
-
+
diff --git a/Layout/default/TimerecordingCalendar/Index.php b/Layout/default/TimerecordingCalendar/Index.php index 502f4d150..ae9f2b5dd 100644 --- a/Layout/default/TimerecordingCalendar/Index.php +++ b/Layout/default/TimerecordingCalendar/Index.php @@ -223,16 +223,19 @@ $daysgerm = array("So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"); } oldname = value.user.user; } - holidays.push({ - id: cindex, - backgroundColor: bgcolors[colorcount], - start: value.cstart.cstart, - end: value.cend.cend, - title: value.ccategory.ccategory + " " + value.user.user, - description: value.ccategory.ccategory + " " + value.user.user - }); + if (value.hourday.hourday!='5') { + holidays.push({ + id: cindex, + backgroundColor: bgcolors[colorcount], + start: value.cstart.cstart, + end: value.cend.cend, + title: value.ccategory.ccategory + " " + value.user.user, + description: value.ccategory.ccategory + " " + value.user.user + }); + cindex++; + } oldname = value.user.user; - cindex++; + }); var initialLocaleCode = 'en'; diff --git a/Layout/default/TimerecordingCategories/Form.php b/Layout/default/TimerecordingCategories/Form.php index 8dfae15f3..6e21f051f 100644 --- a/Layout/default/TimerecordingCategories/Form.php +++ b/Layout/default/TimerecordingCategories/Form.php @@ -65,7 +65,8 @@
- approval) echo 'checked="checked"'; ?> + approval) echo 'checked="checked"'; ?> type="checkbox" name="approval" value="1" id="olt">
@@ -75,25 +76,30 @@ Pflichtfeld
- require_comment) echo 'checked="checked"'; ?> + require_comment) echo 'checked="checked"'; ?> type="checkbox" name="require_comment" value="1">
- +
- businesstrip) echo 'checked="checked"'; ?> + businesstrip) echo 'checked="checked"'; ?> type="checkbox" name="businesstrip" value="1">
- +
- only_admin) echo 'checked="checked"'; ?> + only_admin) echo 'checked="checked"'; ?> type="checkbox" name="only_admin" value="1">
@@ -130,6 +136,15 @@ $('form').on('blur', 'input[type=number]', function (e) { $(this).off('wheel.disableScroll') }); + $(document).ready(function () { + $("body").on("change", "#hourday", function () { + if ($(this).val() == 5) { + $("#only_admin").prop("checked", true); + } else { + } + }); + $("#hourday").change(); + }); \ No newline at end of file diff --git a/Layout/default/TimerecordingEmployee/Index.php b/Layout/default/TimerecordingEmployee/Index.php index db7d108cd..6d4534690 100644 --- a/Layout/default/TimerecordingEmployee/Index.php +++ b/Layout/default/TimerecordingEmployee/Index.php @@ -5,6 +5,14 @@ $type[3] = "Lehrling"; ?> +
@@ -71,6 +79,14 @@ $type[3] = "Lehrling"; } else { $sum = ""; } + if ($timerecordingemployees[$timerecordinguser->id]['plushours_now'] < 0) { + $plusHours = $timerecordingemployees[$timerecordinguser->id]['plushours_now'] * -1; + $plusHours = "-" . sprintf('%02dh:%02dm', floor($plusHours / 3600), floor($plusHours / 60 % 60)); + + } else { + $plusHours = $timerecordingemployees[$timerecordinguser->id]['plushours_now']; + $plusHours = sprintf('%02dh:%02dm', floor($plusHours / 3600), floor($plusHours / 60 % 60)); + } ?> @@ -79,9 +95,10 @@ $type[3] = "Lehrling"; id]['startdate']) ? date("d.m.Y", $timerecordingemployees[$timerecordinguser->id]['startdate']) : "-" ?> id]['datetimetext'] : "" ?> - id]['plushours_now']/ 3600),($timerecordingemployees[$timerecordinguser->id]['plushours_now']/ 60 % 60)) ?> - id]['overtime_now']/ 3600),($timerecordingemployees[$timerecordinguser->id]['overtime_now']/ 60 % 60)) ?> - id]['holidays_now']) ? $timerecordingemployees[$timerecordinguser->id]['holidays_now'].' Tage' : '' ?> + + id]['overtime_now'] / 3600), floor($timerecordingemployees[$timerecordinguser->id]['overtime_now'] / 60 % 60)) ?> + id]['holidays_now']) ? $timerecordingemployees[$timerecordinguser->id]['holidays_now'] . ' Tage' : '' ?> id]['auto_workinghours'] == '1') ? 'Ja' : 'Nein' ?> $timerecordingemployees[$timerecordinguser->id]['id'], "userid" => $timerecordinguser->id]) ?>"> - var hidesearch = [3,4,5,6,7,9]; + var hidesearch = [3, 4, 5, 6, 7, 9]; $(document).ready(function () { diff --git a/Layout/default/TimerecordingReport/Index.php b/Layout/default/TimerecordingReport/Index.php index 497c0cff0..eb85aa984 100644 --- a/Layout/default/TimerecordingReport/Index.php +++ b/Layout/default/TimerecordingReport/Index.php @@ -92,7 +92,9 @@ $years[time() - 31536000] = date('Y', time() - 31536000); .fixed-state { background-color: #d0fbd9; } - + .form-check-label { + margin-top: 2px; + }
@@ -140,7 +142,8 @@ $years[time() - 31536000] = date('Y', time() - 31536000); data-approval="approval ?>" data-comment="require_comment ?>" data-hourday="hourday ?>" - data-businesstrip="businesstrip ?>">name ?> + data-businesstrip="businesstrip ?>" + data-homeoffice="hourday == 1) ? 1 : 0 ?>">name ?> @@ -185,6 +188,16 @@ $years[time() - 31536000] = date('Y', time() - 31536000);
+ +
-
+
+
-
+
+ + +
+
+
-
+
@@ -316,7 +338,7 @@ $years[time() - 31536000] = date('Y', time() - 31536000); - + diff --git a/Layout/default/menu.php b/Layout/default/menu.php index 1b45a2dfd..eb9cd226f 100644 --- a/Layout/default/menu.php +++ b/Layout/default/menu.php @@ -36,9 +36,9 @@
  • Zeiterfassung
  • MitarbeiterMitarbeiter Datum Von Bis