Cash-Anfangswert (erste Lebensphase) editierbar
Deploy App / deploy (push) Successful in 1m44s

Neues Feld Plan.initialCash (additiv, Default 0). computePlan startet die erste Phase
mit diesem Cash-Bestand statt 0. In der Matrix ist die Cash-Zelle der ersten Phase
klickbar und oeffnet ein Popup zum Setzen des Anfangswerts (PATCH /api/plans/{id}).
Szenario-Kopie uebernimmt den Wert. Golden-Test ergaenzt.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-07-15 12:48:02 +02:00
parent 7222faa98c
commit 249debe2f4
9 changed files with 85 additions and 10 deletions
@@ -0,0 +1,2 @@
-- Anfangswert des Cash-Kontos (erste Lebensphase), pro Plan. Additiv, Default 0.
ALTER TABLE "Plan" ADD COLUMN "initialCash" DOUBLE PRECISION NOT NULL DEFAULT 0;
+1
View File
@@ -76,6 +76,7 @@ model Plan {
name String
householdType HouseholdType
inflationRateDefault Float
initialCash Float @default(0)
parentPlanId String?
parentPlan Plan? @relation("PlanScenarios", fields: [parentPlanId], references: [id], onDelete: SetNull)