Aufraeumen: Audit-Filter aus dem Protokoll, Reorganisation entfernt, toter Code
- Audit-Log: die Auswahl der Aktionen kommt aus dem Protokoll selbst (distinct action) statt aus einer festen Liste, die vier tote Aktionen fuehrte und rund dreissig aktuelle nicht kannte. - "Reorganisation" nicht mehr als Ereignistyp in den Berichten (immer leer) und nicht im Import; Texte in Organigramm, Nachtlauf (nachtlauf.ps1) und Kommentaren ohne Reorg. Import kennt "Uebernahme", nicht mehr "Gehaltsanpassung". - adjust_karenz_return entfernt (Migration): sie setzte nur die Spalte und liess die vorgemerkte Rueckkehr stehen; rueckkehr_anpassen ist der Weg. lib/acting-manager.ts entfernt (die Berichtslinie rechnet om_reporting_lines in der Datenbank). - Export Mitarbeiter: "Auf wessen Wunsch" mit "Wunsch Dienstnehmer/ Dienstgeber" wie in der Oberflaeche. Geprueft: lint, tsc, types:check, Tests, Uebergabe-Waechter
This commit is contained in:
@@ -50,7 +50,7 @@ export function EmployeeTree({ employees, focusId = null }: { employees: OrgEmpl
|
||||
for (const list of byManager.values()) list.sort((a, b) => a.last_name.localeCompare(b.last_name));
|
||||
|
||||
// Nothing in the schema forbids a manager_id cycle (A reports to B
|
||||
// reports to A), and a reorg that moves a lead under one of their own
|
||||
// reports to A), and a transfer that moves a lead under one of their own
|
||||
// reports would create one. Every walk below is recursive, so an
|
||||
// unguarded cycle is an infinite recursion that hangs the tab rather
|
||||
// than a wrong number — hence the on-path set.
|
||||
|
||||
Reference in New Issue
Block a user