Standort Shop mit Unterauswahl; C-Level nur als Code; Sonstige im Import
All checks were successful
CI / Lint, Typen, Tests, Build (push) Successful in 12m26s
CI / Migrationen auf leerer Datenbank (push) Successful in 10m22s
CI / Ausrollen (push) Successful in 7s

Standort: locations.parent_id, eine Ebene. Neu "Shop" mit sechs Shops
(Shop W17, Shop Wodo, Shop Parndorf, Shop Donaupark, Shop W1, Shop Wien
Hauptbahnhof). Personen sitzen nur auf Standorten ohne Unterstandorte;
zwei Trigger halten das auch fuer Import und Nachtlauf fest. Einstellung,
Externe und Versetzung zeigen bei "Shop" eine zweite Auswahl
(StandortAuswahl). Filter in Liste und Berichten und die Importliste
bieten "Shop" selbst nicht an; der Import nennt bei "Shop" die Shops.
rauchtest.sql und vertragsangaben.sql waehlen einen zuweisbaren Standort.

C-Level: ueberall nur der Code (Formular, Akte, Zusammenfassung,
Historie, Berichte, Import). Export ohne Spalte "C-Level Bezeichnung".

Angehoerige und Notfallkontakte im Import wie im Formular: Auswahl als
feste Liste und daneben "Verhaeltnis (Sonstige)" fuer den eigenen Text.
Gespeichert wird bei "Sonstige" der Text; ein Text ohne "Sonstige" ist
ein Fehler. Der Download teilt einen eigenen Text in beide Spalten.

Geprueft: lint, tsc, types:check, npm test, waechter; Migrationen auf
leerer Datenbank zweimal (Nichts anzuwenden), rauchtest.sql,
vertragsangaben.sql; als alpenwerk_app: Einstellung auf "Shop" abgewiesen,
auf "Shop W17" angenommen, Wechsel auf "Shop" abgewiesen, auf "Shop Wodo"
angenommen, Unterstandort unter einem Shop abgewiesen.
This commit is contained in:
2026-11-23 11:50:45 +01:00
parent e1ef57d44b
commit 79979216e4
37 changed files with 587 additions and 113 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;