Mitarbeiter nur noch ausscheiden, nicht löschen (0.26.1)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AmyPfuNc4sCRfaF3oURXZz
This commit is contained in:
@@ -644,6 +644,12 @@ describe.skipIf(!url)("Anmeldung und Rollen (U1, U2)", () => {
|
||||
const jj = await anmelden("jan", "neuespasswort");
|
||||
expect((await als(jj, "GET", "/api/personal")).statusCode).toBe(403);
|
||||
expect((await als(jj, "GET", "/api/mitarbeiter")).statusCode).toBe(403);
|
||||
// Mitarbeiter scheiden nur aus, löschen geht weder beim Kontakt noch bei den Personaldaten
|
||||
const weg = await als(inhaber, "DELETE", `/api/kontakte/${jan}`);
|
||||
expect(weg.statusCode).toBe(409);
|
||||
expect(weg.json().fehler).toMatch(/Austrittsdatum/);
|
||||
expect((await als(inhaber, "DELETE", `/api/mitarbeiter/${m.json().id}`)).statusCode).toBe(409);
|
||||
expect((await pool.query("select 1 from kontakt where id = $1", [jan])).rowCount).toBe(1);
|
||||
});
|
||||
|
||||
it("Zeiterfassung: ein Eintrag je Tag, Pausenabzug nach M3, Anteile je Vorgang (Z1, E21)", async () => {
|
||||
|
||||
Reference in New Issue
Block a user