@@ -119,11 +119,21 @@ ReportOvertimesDto reportOvertimesDto(ReportWeek reportWeek) {
119
119
// john | 1 | 2 | 2 | 3 | 4 | 4 | 4 <- `ReportOvertimeDto ( personName, overtimes )`
120
120
// jane | | | 2 | 3 | 4 | 4 | 4 <- `ReportOvertimeDto ( personName, overtimes )`
121
121
122
+ // TODO users without entries this week, but present in the reportWeek
123
+ // each day of the week has `plannedWorkingHoursByUser` and `accumulatedOvertimeToDateByUser` which should both contain the same users
124
+ // jack | | | | | | | <- `ReportOvertimeDto ( personName, overtimes )`
125
+
126
+ // vielleicht am schluss über plannedWorkingHours personen iterieren und fehlende den `users` hinzufügen.
127
+ // welche zahl kommt dann in einen block?
128
+ // geplant bzw muss gearbeitet werden an dem tag: Map<UserLocalId, PlannedWorkingHours> plannedWorkingHoursByUser
129
+ // bisher angesammelte überstunden bis zum tag startOfBusiness: Map<UserLocalId, OvertimeDuration> accumulatedOvertimeToDateByUser
130
+
122
131
// build up `users` peace by peace. one person could have the first working day in the middle of the week (jane).
123
132
final Set <User > users = new HashSet <>();
124
133
125
134
// {john} -> [1, 2, 2, 3, 4, 4, 4]
126
135
// {jane} -> [empty, empty, 2, 3, 4, 4, 4]
136
+ // {jack} -> [empty, empty, empty, empty, empty, empty, empty] (has no entries this week)
127
137
final Map <User , List <Optional <OvertimeDuration >>> overtimeDurationsByUser = new HashMap <>();
128
138
129
139
// used to initiate the persons list of overtimes.
0 commit comments