From 88d0619184b5c272e11261d31efb75da947a076b Mon Sep 17 00:00:00 2001 From: Benjamin Admin Date: Mon, 20 Apr 2026 10:54:19 +0200 Subject: [PATCH] fix(pitch-deck): SUMME Betriebliche includes Personalkosten + Abschreibungen Bug: "SUMME Betriebliche Aufwendungen" excluded Personalkosten and Abschreibungen because they have is_sum_row=true. Result: both sum rows showed identical values. Fix: explicitly include Personalkosten and Abschreibungen rows in the SUMME Betriebliche calculation. Co-Authored-By: Claude Opus 4.6 (1M context) --- pitch-deck/components/slides/FinanzplanSlide.tsx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pitch-deck/components/slides/FinanzplanSlide.tsx b/pitch-deck/components/slides/FinanzplanSlide.tsx index b04d1b0..6c58158 100644 --- a/pitch-deck/components/slides/FinanzplanSlide.tsx +++ b/pitch-deck/components/slides/FinanzplanSlide.tsx @@ -579,7 +579,15 @@ export default function FinanzplanSlide({ lang, investorId, preferredScenarioId, !rLabel.includes('Personalkosten') && !rLabel.includes('Abschreibungen') && !rLabel.includes('Summe') && !rLabel.includes('SUMME') }) } else if (label.includes('SUMME Betriebliche')) { - sourceRows = rows.filter(r => !r.is_sum_row && !getLabel(r).includes('Summe') && !getLabel(r).includes('SUMME') && (r.category as string) !== 'summe') + // Include ALL rows: personal + abschreibungen + all detail rows (but not other sum rows) + sourceRows = rows.filter(r => { + const rCat = r.category as string || '' + const rLabel = getLabel(r) + // Include Personalkosten and Abschreibungen (they have is_sum_row=true but are real data) + if (rLabel === 'Personalkosten' || rLabel === 'Abschreibungen') return true + // Exclude sum rows and category "summe" + return !r.is_sum_row && rCat !== 'summe' && !rLabel.includes('Summe') && !rLabel.includes('SUMME') + }) } // === Liquidität: row_type-based sums ===