Skip to content

Commit decdbf2

Browse files
committed
WIP todo
1 parent e149bac commit decdbf2

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/main/java/de/focusshift/zeiterfassung/report/ReportControllerHelper.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,21 @@ ReportOvertimesDto reportOvertimesDto(ReportWeek reportWeek) {
119119
// john | 1 | 2 | 2 | 3 | 4 | 4 | 4 <- `ReportOvertimeDto ( personName, overtimes )`
120120
// jane | | | 2 | 3 | 4 | 4 | 4 <- `ReportOvertimeDto ( personName, overtimes )`
121121

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+
122131
// build up `users` peace by peace. one person could have the first working day in the middle of the week (jane).
123132
final Set<User> users = new HashSet<>();
124133

125134
// {john} -> [1, 2, 2, 3, 4, 4, 4]
126135
// {jane} -> [empty, empty, 2, 3, 4, 4, 4]
136+
// {jack} -> [empty, empty, empty, empty, empty, empty, empty] (has no entries this week)
127137
final Map<User, List<Optional<OvertimeDuration>>> overtimeDurationsByUser = new HashMap<>();
128138

129139
// used to initiate the persons list of overtimes.

0 commit comments

Comments
 (0)