#1105: TimesheetRecentEntry.kt
projectforge-business/src/main/kotlin/org/projectforge/business/timesheet/TimesheetRecentEntry.kt Data Class / Recent Entries, projectforge-business/src/main/kotlin/org/projectforge/business/timesheet/TimesheetRecentEntry.kt 75 lines · 41 code · 30 comments · 4 blank
Kotlin data class annotated for XStream serialization (used in legacy UserPref storage). Stores a snapshot of a recently used timesheet for quick re-selection. Fields: taskId, userId, kost2Id, location, reference, tag, description (all nullable, most with @XStreamAsAttribute). AI savings fields (timeSavedByAI, timeSavedByAIUnit, timeSavedByAIDescription) are @XStreamOmitField — explicitly excluded from serialization to preserve privacy and encourage manual entry. Constructor from TimesheetDO copies all non-AI fields. Implements equals/hashCode via data class semantics. Used by TimesheetRecentService's RecentQueue.
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).
47d42a5bb AI savings: mass update of time-sheets, editing in classic page added, further improvements. Mass-update: Excel sheet with modifications is now stored in the user's personal DataTransfer box.
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.
512ffa420 Configuration param: timesheetTag implemented.
5f7ef41b8 Copyright 2021 -> 2022
ceb63e8a1 Source code header: (C) 2001-2021.
18ae3e67c WIP: timesheet -> reference.
2d6ddaea9 Refactoring of recent time sheets functionality in TimesheetRecentService.
7c79f1922 Copyright of source header -> 2020.
8b8a2a557 Copyright header of source files fixed.
57b6f2d85 WIP: Task favorites...