fix(pitch-deck): SUMME Betriebliche includes Personalkosten + Abschreibungen
All checks were successful
Build pitch-deck / build-push-deploy (push) Successful in 1m7s
CI / go-lint (push) Has been skipped
CI / python-lint (push) Has been skipped
CI / nodejs-lint (push) Has been skipped
CI / test-go-consent (push) Successful in 33s
CI / test-python-voice (push) Successful in 35s
CI / test-bqas (push) Successful in 33s
All checks were successful
Build pitch-deck / build-push-deploy (push) Successful in 1m7s
CI / go-lint (push) Has been skipped
CI / python-lint (push) Has been skipped
CI / nodejs-lint (push) Has been skipped
CI / test-go-consent (push) Successful in 33s
CI / test-python-voice (push) Successful in 35s
CI / test-bqas (push) Successful in 33s
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) <noreply@anthropic.com>
This commit is contained in:
@@ -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 ===
|
||||
|
||||
Reference in New Issue
Block a user