fixed #56
Some checks failed
Tests / Run Go Tests (push) Failing after 1m22s

This commit is contained in:
2025-10-09 16:42:49 +02:00
parent 6da58d6753
commit ea8e78fd9f
9 changed files with 18 additions and 29 deletions

View File

@@ -53,8 +53,10 @@ func GetDays(user User, tsFrom, tsTo time.Time, orderedForward bool) []IWorkDay
}
if day.AbwesenheitTyp.WorkTime == 1 {
if workDay, ok := allDays[day.Date().Format("2006-01-02")].(*WorkDay); ok {
workDay.kurzArbeit = true
workDay.kurzArbeitAbsence = day
if len(workDay.Bookings) > 0 {
workDay.kurzArbeit = true
workDay.kurzArbeitAbsence = day
}
}
} else {
allDays[day.Date().Format("2006-01-02")] = &day