#904: AuftragsPositionsPaymentTypeFilter.kt
projectforge-business/src/main/kotlin/org/projectforge/business/fibu/AuftragsPositionsPaymentTypeFilter.kt
Type: CustomResultFilter implementation ·
Purpose: Filters orders by payment type of their positions ·
Package: org.projectforge.business.fibu
Source path: projectforge-business/src/main/kotlin/org/projectforge/business/fibu/AuftragsPositionsPaymentTypeFilter.kt
65 lines · 37 code · 22 comments · 6 blank
A CustomResultFilter<AuftragDO> that matches orders when at least one of their (non-deleted) positions has a AuftragsPositionsPaymentType matching one of the configured filter values. An empty value list matches all orders. Offers two factory methods: one from a single enum value, one from a string array with error-tolerant parsing.
Filter Logic
- If
values is empty → matches all orders
- Iterates
element.positionenExcludingDeleted, returns true if any position's paymentType matches a filter value
Companion Object
create(value: AuftragsPositionsPaymentType?) (@JvmStatic) — wraps a single enum value; null input produces a pass-through filter
create(valuesAsStrings: Array<String>) — parses string array, logs unknown values, returns filter with matched enum set
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.
73b0be50b org.apache.commons.collections -> org.apache.commons.collections4
5f7ef41b8 Copyright 2021 -> 2022
ceb63e8a1 Source code header: (C) 2001-2021.
33aac841b WIP: Auftrag -> React (AuftragDao modified).