CRITICAL(pitch-deck): Liquidität tab — use DB values for all sum/balance rows
Some checks failed
CI / go-lint (push) Has been cancelled
CI / python-lint (push) Has been cancelled
CI / nodejs-lint (push) Has been cancelled
CI / test-go-consent (push) Has been cancelled
Build pitch-deck / build-push-deploy (push) Has been cancelled
CI / test-python-voice (push) Has been cancelled
CI / test-bqas (push) Has been cancelled
Some checks failed
CI / go-lint (push) Has been cancelled
CI / python-lint (push) Has been cancelled
CI / nodejs-lint (push) Has been cancelled
CI / test-go-consent (push) Has been cancelled
Build pitch-deck / build-push-deploy (push) Has been cancelled
CI / test-python-voice (push) Has been cancelled
CI / test-bqas (push) Has been cancelled
Frontend was recalculating Summe EINZAHLUNGEN including funding (1M), which made liquidity appear as ~1M throughout. Now all Liquidität sum/balance rows (Summe, ÜBERSCHUSS, Kontostand, LIQUIDITÄT) come directly from the engine-computed DB values. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -834,16 +834,11 @@ export default function FinanzplanSlide({ lang, investorId, preferredScenarioId,
|
||||
})
|
||||
}
|
||||
|
||||
// === Liquidität: row_type-based sums ===
|
||||
else if (label.includes('Summe') && label.includes('ERTR')) {
|
||||
sourceRows = rows.filter(r => (r as Record<string, unknown>).row_type === 'einzahlung' && !getLabel(r).includes('Summe'))
|
||||
} else if (label.includes('Summe') && label.includes('AUSZAHL')) {
|
||||
sourceRows = rows.filter(r => (r as Record<string, unknown>).row_type === 'auszahlung' && !getLabel(r).includes('Summe'))
|
||||
}
|
||||
|
||||
// === Liquidität: ÜBERSCHUSS = Erträge - Auszahlungen ===
|
||||
else if (label.includes('ÜBERSCHUSS') || label.includes('UEBERSCHUSS')) {
|
||||
// These are complex formulas — keep DB values for now
|
||||
// === Liquidität: ALL sum/balance rows — keep DB values (engine computed) ===
|
||||
else if (activeSheet === 'liquiditaet' && (
|
||||
label.includes('Summe') || label.includes('ÜBERSCHUSS') || label.includes('UEBERSCHUSS') ||
|
||||
label.includes('LIQUIDITÄT') || label.includes('LIQUIDITAET') || label.includes('Kontostand')
|
||||
)) {
|
||||
return row
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user