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:
@@ -454,3 +454,15 @@ describe("Gruppierung nach Teilzeitvariante", () => {
|
||||
expect(groupKeyFor(emp({ teilzeit_art: null }), "teilzeit_art", lookups)).toBe("Keine");
|
||||
});
|
||||
});
|
||||
|
||||
describe("Kostenstelle im Bericht", () => {
|
||||
const lookups = { divisionName: new Map(), departmentName: new Map(), teamName: new Map(), locationName: new Map() };
|
||||
|
||||
it("gruppiert nach der Kostenstelle der Planstelle", () => {
|
||||
expect(groupKeyFor(emp({ kostenstelle: "11049 · Vertrieb" }), "kostenstelle", lookups)).toBe("11049 · Vertrieb");
|
||||
});
|
||||
|
||||
it("fasst Planstellen ohne Kontierung zu einer eigenen Gruppe", () => {
|
||||
expect(groupKeyFor(emp({ kostenstelle: null }), "kostenstelle", lookups)).toBe("Ohne Kostenstelle");
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user