Übergabestand 2026-11-24
Alpenwerk HR 0.2.2 - C-Level als Auswahl aus der fachlichen Liste (C1 … VD) statt Ja/Nein; überall als Code angezeigt - Standorte mit Unterstandorten: bei „Shop“ folgt die Auswahl des einzelnen Shops - Angehörige und Notfallkontakte im Import: Verhältnis aus der Liste, bei „Sonstige“ mit eigenem Text - Wochenstunden mit zwei Nachkommastellen (z. B. 19,25) - Langzeitabwesenheit: „Endet am“ statt Rückkehr; eine anschliessende Abwesenheit lässt sich nur nach der Wochenhilfe (Mutterschutz) planen - Notizen mit Fälligkeit erscheinen erst ab diesem Tag in der Glocke - Testinstallationen: mit TESTSYSTEM=1 in app.env trägt jede Seite den Schriftzug „Testsystem“ und einen roten Rahmen - Next.js 16.4.6
This commit is contained in:
@@ -60,7 +60,7 @@ type HireWizardProps = {
|
||||
/** Ein neuer Entwurf ist angelegt — er trägt bereits meine Sperre. */
|
||||
onEntwurfAngelegt: (id: string) => void;
|
||||
openPositions: OpenPositionResolved[];
|
||||
locations: { id: string; name: string; country: string }[];
|
||||
locations: { id: string; name: string; country: string; parent_id: string | null }[];
|
||||
resumeDraft: { id: string; step: number; payload: Record<string, unknown> } | null;
|
||||
initialPositionId?: string;
|
||||
};
|
||||
@@ -484,7 +484,7 @@ export function HireWizard({
|
||||
emergency_contact_phone: draft.emergencyContactPhone.trim() || undefined,
|
||||
emergency_contact_relation: draft.emergencyContactRelation.trim() || undefined,
|
||||
is_laterale_fuehrung: draft.isLateraleFuehrung,
|
||||
is_c_level: draft.isCLevel,
|
||||
c_level: draft.cLevel,
|
||||
});
|
||||
if (!result.success || !result.employeeId) {
|
||||
setSubmitting(false);
|
||||
|
||||
@@ -8,7 +8,7 @@ import type { Entwurf } from "@/lib/entwuerfe";
|
||||
import type { OpenPositionResolved } from "@/lib/positions";
|
||||
import { HireWizard } from "./HireWizard";
|
||||
|
||||
type Location = { id: string; name: string; country: string };
|
||||
type Location = { id: string; name: string; country: string; parent_id: string | null };
|
||||
|
||||
type OpenWizardOptions = { draftId?: string; positionId?: string };
|
||||
|
||||
|
||||
@@ -64,7 +64,7 @@ type RehireWizardProps = {
|
||||
onClose: () => void;
|
||||
employee: EmployeeRow;
|
||||
openPositions: OpenPositionResolved[];
|
||||
locations: { id: string; name: string; country: string }[];
|
||||
locations: { id: string; name: string; country: string; parent_id: string | null }[];
|
||||
};
|
||||
|
||||
export function RehireWizard({ open, onClose, employee, openPositions, locations }: RehireWizardProps) {
|
||||
@@ -199,7 +199,7 @@ export function RehireWizard({ open, onClose, employee, openPositions, locations
|
||||
has_dienstwagen: draft.hasDienstwagen,
|
||||
dienstwagen_art: draft.hasDienstwagen ? draft.dienstwagenArt : "",
|
||||
is_laterale_fuehrung: draft.isLateraleFuehrung,
|
||||
is_c_level: draft.isCLevel,
|
||||
c_level: draft.cLevel,
|
||||
|
||||
has_kuendigungsschutz: draft.hasKuendigungsschutz,
|
||||
kuendigungsschutz_grund: draft.hasKuendigungsschutz ? draft.kuendigungsschutzGrund : "",
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import { StandortAuswahl } from "@/components/employees/StandortAuswahl";
|
||||
import { PlanstellenAuswahl } from "@/components/positions/PlanstellenAuswahl";
|
||||
import { DateField, SelectField, TextField } from "@/components/ui/Field";
|
||||
import { todayIso } from "@/lib/format";
|
||||
@@ -24,7 +25,7 @@ export function StepExternePerson({
|
||||
}: {
|
||||
draft: HireDraftData;
|
||||
update: (patch: Partial<HireDraftData>) => void;
|
||||
locations: { id: string; name: string; country: string }[];
|
||||
locations: { id: string; name: string; country: string; parent_id: string | null }[];
|
||||
openPositions: OpenPositionResolved[];
|
||||
stellenFehler?: string | null;
|
||||
onNummerBefund: (befund: { nummer: number; vergeben: boolean }) => void;
|
||||
@@ -78,13 +79,12 @@ export function StepExternePerson({
|
||||
onChange={(id) => update({ positionId: id })}
|
||||
/>
|
||||
|
||||
<SelectField
|
||||
label="Standort"
|
||||
<StandortAuswahl
|
||||
required
|
||||
mitLand
|
||||
value={draft.locationId}
|
||||
onChange={(locationId) => update({ locationId })}
|
||||
placeholder="Bitte wählen…"
|
||||
options={locations.map((l) => ({ value: l.id, label: `${l.name} (${l.country})` }))}
|
||||
standorte={locations}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import { StandortAuswahl } from "@/components/employees/StandortAuswahl";
|
||||
import { SvNummerField } from "@/components/employees/SvNummerField";
|
||||
import { TitleFields } from "@/components/employees/TitleFields";
|
||||
import { ZustaendigeHrField } from "@/components/employees/ZustaendigeHrField";
|
||||
@@ -14,7 +15,7 @@ import type { HireDraftData } from "./types";
|
||||
type StepPersonProps = {
|
||||
draft: HireDraftData;
|
||||
update: (patch: Partial<HireDraftData>) => void;
|
||||
locations: { id: string; name: string; country: string }[];
|
||||
locations: { id: string; name: string; country: string; parent_id: string | null }[];
|
||||
/** Meldet die geprüfte Personalnummer und ihr Ergebnis — steuert „Weiter". */
|
||||
onNummerBefund?: (befund: { nummer: number; vergeben: boolean }) => void;
|
||||
/**
|
||||
@@ -185,13 +186,12 @@ export function StepPerson({ draft, update, locations, onNummerBefund, nummerGes
|
||||
/>
|
||||
<TextField label="Private Telefonnummer" type="tel" value={draft.phone} onChange={(phone) => update({ phone })} />
|
||||
</div>
|
||||
<SelectField
|
||||
label="Standort"
|
||||
<StandortAuswahl
|
||||
required
|
||||
mitLand
|
||||
value={draft.locationId}
|
||||
onChange={(locationId) => update({ locationId })}
|
||||
placeholder="Bitte wählen…"
|
||||
options={locations.map((l) => ({ value: l.id, label: `${l.name} (${l.country})` }))}
|
||||
standorte={locations}
|
||||
/>
|
||||
<ZustaendigeHrField value={draft.zustaendigeHrId} onChange={(zustaendigeHrId) => update({ zustaendigeHrId })} />
|
||||
</div>
|
||||
|
||||
@@ -46,7 +46,6 @@ export function StepSummary({ draft, selectedPosition, locations, extern = false
|
||||
draft.isBetriebsrat && "Betriebsrat",
|
||||
draft.hasDienstwagen && `Dienstwagen (${dienstwagenLabel(draft.dienstwagenArt)})`,
|
||||
draft.isLateraleFuehrung && "Laterale Führung",
|
||||
draft.isCLevel && "C-Level",
|
||||
draft.hasKuendigungsschutz &&
|
||||
`Besonderer Kündigungsschutz${draft.kuendigungsschutzBis ? ` bis ${fmtDate(draft.kuendigungsschutzBis)}` : ""}`,
|
||||
].filter(Boolean);
|
||||
@@ -89,6 +88,7 @@ export function StepSummary({ draft, selectedPosition, locations, extern = false
|
||||
: []),
|
||||
["Anstellungs-/Beschäftigungsart", anzeige(draft.mitarbeiterart)],
|
||||
["Kollektivvertrag", draft.collectiveAgreement],
|
||||
["C-Level", draft.cLevel || "–"],
|
||||
["Arbeitstage", draft.workDays.join(", ") || "–"],
|
||||
["Merkmale", flags.length > 0 ? flags.join(", ") : "–"],
|
||||
];
|
||||
|
||||
@@ -88,7 +88,7 @@ export function StepVertrag({
|
||||
<TextField
|
||||
label="Wochenstunden"
|
||||
type="number"
|
||||
step="0.5"
|
||||
step="0.01"
|
||||
value={draft.weeklyHours}
|
||||
disabled={draft.employmentType === "Vollzeit"}
|
||||
onChange={(weeklyHours) => update({ weeklyHours })}
|
||||
|
||||
@@ -54,7 +54,7 @@ export function UebernahmeWizard({
|
||||
open: boolean;
|
||||
onClose: () => void;
|
||||
employee: EmployeeRow;
|
||||
locations: { id: string; name: string; country: string }[];
|
||||
locations: { id: string; name: string; country: string; parent_id: string | null }[];
|
||||
}) {
|
||||
const { showToast } = useToast();
|
||||
const router = useRouter();
|
||||
@@ -202,7 +202,7 @@ export function UebernahmeWizard({
|
||||
has_dienstwagen: draft.hasDienstwagen,
|
||||
dienstwagen_art: draft.hasDienstwagen ? draft.dienstwagenArt : "",
|
||||
is_laterale_fuehrung: draft.isLateraleFuehrung,
|
||||
is_c_level: draft.isCLevel,
|
||||
c_level: draft.cLevel,
|
||||
teilzeit_art: teilzeit,
|
||||
teilzeit_bis: teilzeit ? draft.teilzeitBis : "",
|
||||
has_kuendigungsschutz: draft.hasKuendigungsschutz,
|
||||
|
||||
@@ -106,7 +106,8 @@ export type HireDraftData = {
|
||||
emergencyContactRelation: string;
|
||||
angehoerige: HireDraftAngehoerige[];
|
||||
isLateraleFuehrung: boolean;
|
||||
isCLevel: boolean;
|
||||
/** Code aus lib/c-level.ts; "" heisst nicht erfasst. */
|
||||
cLevel: string;
|
||||
/** Form der Beschäftigung — zweite Achse neben der Beschäftigtengruppe. */
|
||||
mitarbeiterart: Mitarbeiterart;
|
||||
hasKuendigungsschutz: boolean;
|
||||
@@ -182,7 +183,7 @@ export const EMPTY_HIRE_DRAFT: HireDraftData = {
|
||||
emergencyContactRelation: "",
|
||||
angehoerige: [],
|
||||
isLateraleFuehrung: false,
|
||||
isCLevel: false,
|
||||
cLevel: "",
|
||||
mitarbeiterart: MITARBEITERART_STANDARD,
|
||||
hasKuendigungsschutz: false,
|
||||
kuendigungsschutzBis: "",
|
||||
|
||||
Reference in New Issue
Block a user