Berichte: Kostenstelle als Filter und als Gruppierung
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:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user