Aufräumen und header zentralisieren
This commit is contained in:
BIN
public/images/icons/icon-120x120.png
Normal file
BIN
public/images/icons/icon-120x120.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 8.6 KiB |
BIN
public/images/icons/icon-152x152.png
Normal file
BIN
public/images/icons/icon-152x152.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 12 KiB |
BIN
public/images/icons/icon-167x167.png
Normal file
BIN
public/images/icons/icon-167x167.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 13 KiB |
BIN
public/images/icons/icon-180x180.png
Normal file
BIN
public/images/icons/icon-180x180.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 14 KiB |
BIN
public/images/icons/icon-192x192.png
Normal file
BIN
public/images/icons/icon-192x192.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 15 KiB |
BIN
public/images/icons/icon-512x512.png
Normal file
BIN
public/images/icons/icon-512x512.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 56 KiB |
@@ -675,7 +675,9 @@ function renderWeek() {
|
||||
}
|
||||
|
||||
// Sollstunden berechnen
|
||||
const sollStunden = (userWochenstunden / userArbeitstage) * workdays;
|
||||
// Die Sollstunden für eine Woche sind immer die Wochenstunden, unabhängig von den Arbeitstagen
|
||||
// Die Arbeitstage pro Woche bestimmen nur die Stunden pro Tag (für Urlaub/Krank), nicht die Wochenstunden
|
||||
const sollStunden = userWochenstunden || 0;
|
||||
|
||||
// Urlaubsstunden berechnen (Urlaub zählt als normale Arbeitszeit)
|
||||
let vacationHours = 0;
|
||||
@@ -720,12 +722,14 @@ function updateOvertimeDisplay() {
|
||||
}
|
||||
|
||||
// Sollstunden berechnen
|
||||
const sollStunden = (userWochenstunden / userArbeitstage) * workdays;
|
||||
// Die Sollstunden für eine Woche sind immer die Wochenstunden, unabhängig von den Arbeitstagen
|
||||
// Die Arbeitstage pro Woche bestimmen nur die Stunden pro Tag (für Urlaub/Krank), nicht die Wochenstunden
|
||||
const sollStunden = userWochenstunden || 0;
|
||||
|
||||
// Gesamtstunden berechnen - direkt aus DOM-Elementen lesen für Echtzeit-Aktualisierung
|
||||
let totalHours = 0;
|
||||
let vacationHours = 0;
|
||||
const fullDayHours = userWochenstunden ? (userWochenstunden / 5) : 8;
|
||||
const fullDayHours = getFullDayHours(); // Verwende die Hilfsfunktion statt manueller Berechnung
|
||||
let fullDayOvertimeDays = 0; // Anzahl Tage mit 8 Überstunden (wie im Backend)
|
||||
const startDateObj = new Date(startDate);
|
||||
for (let i = 0; i < 7; i++) {
|
||||
@@ -929,6 +933,12 @@ function updateOvertimeDisplay() {
|
||||
overtimeHoursSpan.textContent = `${sign}${overtimeHours.toFixed(2)} h`;
|
||||
overtimeHoursSpan.style.color = overtimeHours >= 0 ? '#27ae60' : '#e74c3c';
|
||||
}
|
||||
|
||||
// Gesamtstunden-Anzeige aktualisieren
|
||||
const totalHoursElement = document.getElementById('totalHours');
|
||||
if (totalHoursElement) {
|
||||
totalHoursElement.textContent = totalHoursWithVacation.toFixed(2) + ' h';
|
||||
}
|
||||
}
|
||||
|
||||
// Überstunden-Änderung verarbeiten
|
||||
|
||||
20
public/manifest.json
Normal file
20
public/manifest.json
Normal file
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"name": "SDS Systemtechnik GmbH",
|
||||
"short_name": "SDS",
|
||||
"start_url": "/",
|
||||
"display": "standalone",
|
||||
"background_color": "#ffffff",
|
||||
"theme_color": "#0a5ea8",
|
||||
"icons": [
|
||||
{
|
||||
"src": "/public/images/icons/icon-192x192.png",
|
||||
"sizes": "192x192",
|
||||
"type": "image/png"
|
||||
},
|
||||
{
|
||||
"src": "/public/images/icons/icon-512x512.png",
|
||||
"sizes": "512x512",
|
||||
"type": "image/png"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user