Commit Graph

3 Commits

Author SHA1 Message Date
dc7dbcf8ea Staatsbuergerschaft "unbekannt"; Hay-Grade HG20P, HG21, HG22
All checks were successful
CI / Lint, Typen, Tests, Build (push) Successful in 14m24s
CI / Migrationen auf leerer Datenbank (push) Successful in 11m16s
CI / Ausrollen (push) Successful in 9s
Staatsbuergerschaft: neuer Auswahlwert "unbekannt" neben "staatenlos",
im Formular und im Austausch-Katalog. Die Spalte ist Freitext, eine
Migration ist nicht noetig. Nach dem Aufenthaltstitel wird wie bei einem
Drittstaat gefragt (optional): unbekannt schliesst einen Drittstaat nicht
aus.

Hay-Grade: HG20P, HG21 und HG22 in der Domain paygrade_type
(20261109100000, CHECK neu gesetzt) und in lib/hay-grade.ts. Die
Funktionen wandeln in paygrade_type um und brauchen keine Aenderung.
hay-grade.test.ts liest die Liste jetzt aus der neuen Migration; in
report-criteria.test.ts steht als unbekannter Wert HG23 statt HG21.

Geprueft: lint, tsc, types:check, npm test (1086), waechter; alle
Migrationen auf leerer Datenbank, zweiter Lauf "Nichts anzuwenden";
rauchtest.sql und vertragsangaben.sql bestanden; 'HG21'::paygrade_type
angenommen, 'HG23' abgewiesen.
2026-11-09 14:17:05 +01:00
7cc7923d21 Staatsbuergerschaft: Auswahl "staatenlos"
Nur bei der Staatsbuergerschaft (Aufnahme, Daten aendern, Austauschdatei),
nicht beim Land der Adresse. Eine staatenlose Person braucht einen
Aufenthaltstitel; die Frage danach erscheint wie bei Drittstaaten.

Geprueft: lint, tsc, Tests, Waechter.
2026-11-03 10:10:30 +01:00
d2f4a7aab7 Ask for a residence permit only where one is needed
Employees from outside the EU, the EEA and Switzerland need a residence
permit, and HR needs to know when it expires — about eighty people in
the current data, across Türkei, Serbien and Bosnien. Two columns, the
same shape as the dismissal protection: a flag and a date that only
means anything with it. The date is optional, because an open-ended
permit has none and a mandatory field would force an invented one.

The nationality coupling deliberately stays out of the database. Putting
it there would mean keeping the country list in two places — SQL and
lib/countries.ts, where the picker needs it anyway — so an EU accession
would become a migration instead of a line in a list. Worse, correcting
somebody's nationality would fail the constraint while the old permit
was still attached, which is exactly the moment someone is fixing a
mistake. The UI decides whether the fields appear, and clears them when
the nationality moves into the free-movement area.

So the list is the load-bearing part, and it is tested: 31 entries, all
of them values the picker can actually produce, no duplicates, no third
countries. A missing nationality reads as "no permit required" — an
unanswered question is a reason to record it, not to demand papers.

The permit shows on the Stammdaten tab only for the nationalities it
applies to. A line reading "Aufenthaltstitel: Nein" under an Austrian
citizenship would look like information rather than a question that does
not arise.

Filter by it and by when it expires — the question behind that being
"whose permit runs out next quarter" — plus columns in the export.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-14 13:27:26 +02:00