Ü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:
2026-11-24 11:08:43 +01:00
parent 322d0f4407
commit e09d94cb2f
72 changed files with 1451 additions and 332 deletions

View File

@@ -62,7 +62,7 @@ begin
raise exception 'Voraussetzung fehlt: zwei aktive und ein abgeschaltetes HR-Konto.';
end if;
select id into v_wurzel from org_units where parent_id is null;
select id into v_ort from locations order by name limit 1;
select l.id into v_ort from locations l where not exists (select 1 from locations u where u.parent_id = l.id) order by l.name limit 1;
select coalesce(max(personnel_number), 0) + 1 into v_nr from employees;
v_einheit := create_org_unit(jsonb_build_object(
@@ -253,7 +253,7 @@ declare
v_e employees%rowtype;
v_a uuid := (select id from employees where last_name = 'Test-A' and first_name = 'Vertrag');
v_p3 uuid := (select p.id from om_positions p join jobs j on j.id = p.job_id where j.title = 'Vertragstest Drei');
v_ort uuid := (select id from locations order by name limit 1);
v_ort uuid := (select l.id from locations l where not exists (select 1 from locations u where u.parent_id = l.id) order by l.name limit 1);
begin
perform apply_due_pending_changes();
select * into v_e from employees where id = v_b;