diff --git a/pitch-deck/components/slides/FinanzplanSlide.tsx b/pitch-deck/components/slides/FinanzplanSlide.tsx index 4cfa29a..a4a1771 100644 --- a/pitch-deck/components/slides/FinanzplanSlide.tsx +++ b/pitch-deck/components/slides/FinanzplanSlide.tsx @@ -284,13 +284,13 @@ export default function FinanzplanSlide({ lang }: FinanzplanSlideProps) { })} {/* Summenzeile für relevante Sheets */} - {['personalkosten', 'materialaufwand', 'betriebliche', 'investitionen', 'sonst_ertraege'].includes(activeSheet) && rows.length > 0 && (() => { + {['personalkosten', 'materialaufwand', 'betriebliche', 'investitionen', 'sonst_ertraege', 'umsatzerloese', 'kunden', 'kunden_summary'].includes(activeSheet) && rows.length > 0 && (() => { // Berechne Summe über alle Zeilen die keine Summenzeilen sind const sumValues: Record = {} let sumAnnual = 0 const nonSumRows = rows.filter(r => { const l = getLabel(r) - return !(r.is_sum_row || l.includes('GESAMT') || l.includes('Summe') || l.includes('Gesamtkosten')) + return !(r.is_sum_row || l.includes('GESAMT') || l.includes('Summe') || l.includes('Gesamtkosten') || l === 'SUMME') }) for (let idx = 0; idx < 12; idx++) { const mKey = `m${monthStart + idx}` @@ -309,7 +309,10 @@ export default function FinanzplanSlide({ lang }: FinanzplanSlideProps) { {de ? 'SUMME' : 'TOTAL'} - {formatCell(sumAnnual)} + {['kunden', 'kunden_summary'].includes(activeSheet) + ? formatCell(sumValues[`m${monthEnd}`] || 0) + : formatCell(sumAnnual) + } {Array.from({ length: 12 }, (_, idx) => { const mKey = `m${monthStart + idx}`