Pensionierungs-Bildschirm, Ampel mit drei Zustaenden, Planungshorizont

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
2026-07-26 13:37:08 +02:00
parent 9907fda6f4
commit 1865db5de7
12 changed files with 1181 additions and 130 deletions
+7 -5
View File
@@ -15,7 +15,7 @@
// in den Anhang, ein Haftungsausschluss ist Pflicht.
import { computePlan } from "@/lib/calculations";
import { totalOpenDecisions } from "@/lib/decisions";
import { decisionsText, totalOpenDecisions } from "@/lib/decisions";
import { num } from "@/lib/elements";
import { formatChf } from "@/lib/format";
import { resolveActuals, type ActualsSetInput, type ElementOrigin } from "@/lib/actuals";
@@ -239,11 +239,13 @@ function buildScenario(
if (pkPension > 0) {
figures.push({ label: "PK-Rente pro Jahr", value: formatChf(pkPension), basis: "Umwandlungssatz laut Systemparametern" });
}
const openTotal = open.open + open.unconfirmed;
figures.push({
label: "Offene Entscheide",
value: open === 0 ? "keine" : String(open),
tone: open === 0 ? "success" : undefined,
basis: "noch nicht getroffene Übergangs-Entscheide zwischen den Lebensphasen",
value: openTotal === 0 ? "keine" : decisionsText(open),
tone: openTotal === 0 ? "success" : undefined,
basis:
"noch nicht getroffene Übergangs-Entscheide sowie Pensionierungs-Vorgaben, die nie bestätigt wurden",
});
const phases: ReportTable = {
@@ -273,7 +275,7 @@ function buildScenario(
],
},
assumptions: assumptionsOf(plan),
openDecisions: open,
openDecisions: open.open + open.unconfirmed,
};
}