From 728f698f9ec49fcdb34d3bd40a65b148675ed44c Mon Sep 17 00:00:00 2001 From: Benjamin Admin Date: Mon, 20 Apr 2026 09:42:16 +0200 Subject: [PATCH] fix(pitch-deck): remove redundant Summe rows from Umsatz/Material/Kunden tabs + total line styling - Removed auto-generated SUMME footer from umsatzerloese, materialaufwand, kunden tabs (GESAMTUMSATZ/Bestandskunden gesamt rows already exist in DB data) - GESAMT/Total rows now have thicker top border (border-t-2 white/20) - unit_cost rows show unit price instead of annual sum Co-Authored-By: Claude Opus 4.6 (1M context) --- pitch-deck/components/slides/FinanzplanSlide.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pitch-deck/components/slides/FinanzplanSlide.tsx b/pitch-deck/components/slides/FinanzplanSlide.tsx index a939dc1..5823d12 100644 --- a/pitch-deck/components/slides/FinanzplanSlide.tsx +++ b/pitch-deck/components/slides/FinanzplanSlide.tsx @@ -514,6 +514,7 @@ export default function FinanzplanSlide({ lang, investorId, preferredScenarioId, const values = getValues(row) const label = getLabel(row) const isSumRow = row.is_sum_row || label.includes('GESAMT') || label.includes('Summe') || label.includes('ÜBERSCHUSS') || label.includes('LIQUIDITÄT') || label.includes('UEBERSCHUSS') || label.includes('LIQUIDITAET') + const isTotalRow = label.includes('GESAMT') || label.includes('Bestandskunden gesamt') || label.includes('GESAMTUMSATZ') || label.includes('SUMME') const isEditable = row.is_editable // Balance rows show Dec value, flow rows show annual sum const isBalanceRow = label.includes('Kontostand') || label === 'LIQUIDITÄT' || label === 'LIQUIDITAET' @@ -534,7 +535,7 @@ export default function FinanzplanSlide({ lang, investorId, preferredScenarioId, return (
@@ -572,7 +573,7 @@ export default function FinanzplanSlide({ lang, investorId, preferredScenarioId, })} {/* Summenzeile für relevante Sheets */} - {['personalkosten', 'materialaufwand', 'betriebliche', 'investitionen', 'sonst_ertraege', 'umsatzerloese', 'kunden', 'kunden_summary'].includes(activeSheet) && rows.length > 0 && (() => { + {['personalkosten', 'betriebliche', 'investitionen', 'sonst_ertraege'].includes(activeSheet) && rows.length > 0 && (() => { // Berechne Summe über alle Zeilen die keine Summenzeilen sind const sumValues: Record = {} let sumAnnual = 0