From 16de38483175bb35ba875e9a6b60ace9493fa6f8 Mon Sep 17 00:00:00 2001 From: Benjamin Admin Date: Thu, 26 Mar 2026 23:50:53 +0100 Subject: [PATCH] fix: GuV-Tab als Jahrestabelle (y2026-y2030) statt Monatsgrid GuV hat Jahres-Keys (y2026) statt Monats-Keys (m1-m60). Eigene Tabelle mit 5 Jahrsspalten, Jahresnavigation ausgeblendet. Alle Summenzeilen (EBIT, Ergebnis, Jahresueberschuss) hervorgehoben. Co-Authored-By: Claude Opus 4.6 (1M context) --- .../components/slides/FinanzplanSlide.tsx | 64 +++++++++++++++---- 1 file changed, 52 insertions(+), 12 deletions(-) diff --git a/pitch-deck/components/slides/FinanzplanSlide.tsx b/pitch-deck/components/slides/FinanzplanSlide.tsx index 6aed2b9..cabbf24 100644 --- a/pitch-deck/components/slides/FinanzplanSlide.tsx +++ b/pitch-deck/components/slides/FinanzplanSlide.tsx @@ -152,24 +152,64 @@ export default function FinanzplanSlide({ lang }: FinanzplanSlideProps) { - {/* Year Navigation */} -
- - {currentYear} - -
+ {/* Year Navigation — not for GuV (annual view) */} + {activeSheet !== 'guv' && ( +
+ + {currentYear} + +
+ )} {/* Data Grid */} {loading ? (
{de ? 'Lade...' : 'Loading...'}
+ ) : activeSheet === 'guv' ? ( + /* === GuV: Annual table (y2026-y2030) === */ + + + + + {[2026, 2027, 2028, 2029, 2030].map(y => ( + + ))} + + + + {rows.map(row => { + const values = getValues(row) + const label = getLabel(row) + const isSumRow = row.is_sum_row || label.includes('EBIT') || label.includes('Summe') || label.includes('Rohergebnis') || label.includes('Gesamtleistung') || label.includes('Jahresueberschuss') || label.includes('Ergebnis') + + return ( + + + {[2026, 2027, 2028, 2029, 2030].map(y => { + const v = values[`y${y}`] || 0 + return ( + + ) + })} + + ) + })} + +
+ {de ? 'GuV-Position' : 'P&L Item'} + {y}
+ {label} + 0 ? (isSumRow ? 'text-white/80' : 'text-white/50') : 'text-white/15'} ${isSumRow ? 'font-bold' : ''}`}> + {v === 0 ? '—' : v.toLocaleString('de-DE', { maximumFractionDigits: 0 })} +
) : ( + /* === Monthly Grid (all other sheets) === */