#1103: TimesheetFavorite.kt
projectforge-business/src/main/kotlin/org/projectforge/business/timesheet/TimesheetFavorite.kt Data Class / Favorites, projectforge-business/src/main/kotlin/org/projectforge/business/timesheet/TimesheetFavorite.kt 103 lines · 69 code · 29 comments · 5 blank
Data class extending AbstractFavorite capturing a user's timesheet template/favorite. Fields: taskId, userId, location, tag, reference, description, cost2Id, timeSavedByAIUnit. AI savings absolute values and description are intentionally excluded (user should enter manually). fillFromTimesheet() copies non-null/blank fields from a TimesheetDO. copyToTimesheet() applies stored values to a TimesheetDO instance (creates proxy objects for task, user, kost2 with only id set). Blank fields are set to empty strings to override any client-side values.
Git History
868d6abb7 2025 -> 2026
3c439391c Timesheet: recent entries (display of kost2, project and customer) fixed. Timesheet: ai unit is preset by recent entry. Timesheet-Excel-Export: AI-savings added.
9103cc3c7 Timesheets: ignores no ai fields for recent entries as well as for favorites (should be done manually).
63081666f Source file headers: 2024-> 2025.
4c04cfd65 MAJOR-CHANGE! Migration of integer id's to Long id's (including fk's etc.)
b6092df09 Copyright 2023 -> 2024
ab45d51fa Copyright 2001-2022 -> 2001-2023.
c89c60a97 WIP: Engage-Tag.
512ffa420 Configuration param: timesheetTag implemented.
5f7ef41b8 Copyright 2021 -> 2022
ceb63e8a1 Source code header: (C) 2001-2021.
18ae3e67c WIP: timesheet -> reference.
9842817c3 TimesheetFavorite: Fill empty strings for location and description as well on selecting favorites.
7c79f1922 Copyright of source header -> 2020.
f07e036ad WIP: Timesheet editing: time sheet favorites...