Berichte: Kostenstelle als Filter und als Gruppierung
All checks were successful
CI / Lint, Typen, Tests, Build (push) Successful in 12m3s
CI / Ausrollen (push) Successful in 11s
CI / Migrationen auf leerer Datenbank (push) Successful in 10m40s

Im Bestand laesst sich nach Kostenstelle filtern ("Alle Kostenstellen")
und gruppieren ("Kostenstelle", Planstellen ohne Kontierung als eigene
Gruppe). Gemeint ist die Kontierung der Planstelle, auf der jemand am
Stichtag sitzt. Der Filter gilt auch fuer die Exporte dieser Seite.

Geprueft: lint, tsc, 950 Tests, Uebergabe-Waechter
This commit is contained in:
2026-10-20 16:08:02 +02:00
parent 0294c792a4
commit ae4918fc6d
7 changed files with 70 additions and 6 deletions

View File

@@ -93,7 +93,9 @@ type SnapshotProps = CommonProps & {
group: GroupDimension;
split: GroupDimension | "";
asOf: string;
filters: { division: string; location: string; status: string };
filters: { division: string; location: string; kostenstelle: string; status: string };
/** Für den Filter nach Kostenstelle — die Kontierung der Planstelle zum Stichtag. */
kostenstellen: { id: string; code: string; name: string }[];
criteria: Criteria;
};
@@ -638,6 +640,21 @@ export function ReportsPageClient(props: ReportsPageClientProps) {
</option>
))}
</select>
{mode === "snapshot" && (
<select
aria-label="Nach Kostenstelle filtern"
value={props.filters.kostenstelle}
onChange={(e) => updateParams({ kostenstelle: e.target.value })}
className={CONTROL_CLASS}
>
<option value="">Alle Kostenstellen</option>
{props.kostenstellen.map((k) => (
<option key={k.id} value={k.id}>
{k.code} · {k.name}
</option>
))}
</select>
)}
{mode === "snapshot" && (
<>
<fieldset className="rounded border border-border px-3 py-2">