added Gleitzeit + Kurzarbeit closes #23
All checks were successful
Tests / Run Go Tests (push) Successful in 33s
All checks were successful
Tests / Run Go Tests (push) Successful in 33s
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user