#893: AuftragFakturiertFilter.kt

projectforge-business/src/main/kotlin/org/projectforge/business/fibu/AuftragFakturiertFilter.kt

Type: Custom result filter class

Package: org.projectforge.business.fibu

Full path: projectforge-business/src/main/kotlin/org/projectforge/business/fibu/AuftragFakturiertFilter.kt

53 lines · 26 code · 22 comments · 5 blank

A CustomResultFilter<AuftragDO> that filters orders based on their invoicing status. Uses AuftragFakturiertFilterStatus enum values to determine which orders pass the filter. Currently returns true for all non-excluded statuses with a warning log that full implementation is not yet complete.

Class Definition

class AuftragFakturiertFilter(val values: List<AuftragFakturiertFilterStatus>) : CustomResultFilter<AuftragDO>

Match Logic

The match(list, element) method returns true if:

Otherwise, it logs an error that the filter is "Not yet implemented" and still returns true. The actual invoicing-status filtering is handled separately in AuftragFilter.filterFakturiert().

Companion Object Factory

create(valuesAsStrings: Array<String>) converts an array of string representations into an AuftragFakturiertFilter instance by parsing each string as an AuftragFakturiertFilterStatus enum value. Invalid values are logged as errors and silently ignored.

Git History

868d6abb7 2025 -> 2026
63081666f Source file headers: 2024-> 2025.
0d183e5df Migration stuff in progress...
923f5c64b Migration stuff in progress...
b6092df09 Copyright 2023 -> 2024
ab45d51fa Copyright 2001-2022 -> 2001-2023.
5f7ef41b8 Copyright 2021 -> 2022
ceb63e8a1 Source code header: (C) 2001-2021.
33aac841b WIP: Auftrag -> React (AuftragDao modified).
d5bfcff96 VacationPeriodFilter added.
031853218 VacationYearFilter added.
bc0a52bc7 Vacation stuff...
b2657ec3a Vacation list, MagicFilterProcessor supports now I18nEnum values.
7c79f1922 Copyright of source header -> 2020.
dd5ca38ac CopyRight of all java file-header updated or created.
2d86a8cd6 PROJECTFORGE-2306 Refactorings for keeping access check at update time
9ebb88522 Initial commit