added Gleitzeit + Kurzarbeit closes #23
All checks were successful
Tests / Run Go Tests (push) Successful in 33s

This commit is contained in:
2025-09-13 14:12:39 +02:00
parent ccded6d76b
commit 2d0b117403
18 changed files with 298 additions and 255 deletions

View File

@@ -11,7 +11,7 @@ import (
func PDFHandler(w http.ResponseWriter, r *http.Request) {
helper.RequiresLogin(Session, w, r)
startDate, err := time.Parse("2006-01-02", "2025-08-01")
startDate, err := time.Parse("2006-01-02", "2025-09-01")
if err != nil {
log.Println("Error")
}
@@ -22,7 +22,7 @@ func PDFHandler(w http.ResponseWriter, r *http.Request) {
log.Println("Error getting user!")
}
weeks := models.GetWorkDays(user.CardUID, startDate, endDate)
weeks := models.GetWorkDays(user, startDate, endDate)
log.Printf("Using Dates: %s - %s\n", startDate.String(), endDate.String())
templates.PDFReportEmploye(user, weeks, startDate, endDate).Render(r.Context(), w)