Geplante Abwesenheit mit Art, Anlass im Checklisten-Ausdruck, Geburtsdatum Pflicht
All checks were successful
CI / Lint, Typen, Tests, Build (push) Successful in 12m11s
CI / Migrationen auf leerer Datenbank (push) Successful in 10m30s
CI / Ausrollen (push) Successful in 5s

- Vertrag: Eine noch nicht begonnene Langzeitabwesenheit nennt ihre Art.
  start_karenz traegt bei kuenftigem Beginn nur die Daten an der Person
  ein, die Art steht bis zum Beginn in der Vormerkung; die Zeile liest
  sie von dort.
- Checklisten-Ausdruck: Anlass und Anlagedatum im Kopf, wie in der Akte.
- Neueinstellung und Wiedereintritt: Geburtsdatum ist wieder Pflicht.
  Die Spalte bleibt NULL-faehig.

Geprueft: lint, tsc, types:check, 944 Tests, Uebergabe-Waechter
This commit is contained in:
2026-10-28 21:58:26 +01:00
parent f060cde5c1
commit 4d9d838cfd
8 changed files with 79 additions and 8 deletions

View File

@@ -275,7 +275,7 @@ export function HireWizard({
Eintritt: Boolean(draft.entryDate && draft.besetzung),
Person:
Boolean(
draft.personnelNumber.trim() && draft.firstName && draft.lastName && draft.locationId
draft.personnelNumber.trim() && draft.firstName && draft.lastName && draft.birthDate && draft.locationId
) &&
svNummerOk &&
nummerFrei &&

View File

@@ -101,7 +101,7 @@ export function RehireWizard({ open, onClose, employee, openPositions, locations
// Personalnummer: sie steht fest und wird nicht geprüft.
const pruefung: Record<(typeof STEP_LABELS)[number], boolean> = {
Person:
Boolean(draft.firstName && draft.lastName && draft.locationId) &&
Boolean(draft.firstName && draft.lastName && draft.birthDate && draft.locationId) &&
svNummerOk &&
pruefePlz(draft.postalCode, draft.city, draft.addressCountry)?.art !== "fehler",
Position: Boolean(draft.positionId && draft.besetzung),

View File

@@ -64,11 +64,11 @@ export function StepPerson({ draft, update, locations, onNummerBefund, nummerGes
options={GESCHLECHTER}
/>
<DateField
label="Geburtsdatum"
value={draft.birthDate}
onChange={(birthDate) => update({ birthDate })}
hint="Freiwillig; lässt sich später über „Daten ändern“ nachtragen."
/>
label="Geburtsdatum"
required
value={draft.birthDate}
onChange={(birthDate) => update({ birthDate })}
/>
</div>
<SvNummerField
value={draft.svNummer}