fix(pitch-deck): unit_cost rows show price not annual sum in Finanzplan
All checks were successful
Build pitch-deck / build-push-deploy (push) Successful in 1m10s
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 31s
CI / test-python-voice (push) Successful in 33s
CI / test-bqas (push) Successful in 28s
All checks were successful
Build pitch-deck / build-push-deploy (push) Successful in 1m10s
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 31s
CI / test-python-voice (push) Successful in 33s
CI / test-bqas (push) Successful in 28s
Einkaufspreis rows (Mac Mini/Studio) showed sum of 12 months (e.g. 38,400) instead of the unit price (3,200). Now detected via section='unit_cost' or label contains 'Einkaufspreis' and shows the price value instead. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -517,9 +517,13 @@ export default function FinanzplanSlide({ lang, investorId, preferredScenarioId,
|
||||
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'
|
||||
const isUnitPrice = (row as Record<string, unknown>).section === 'unit_cost' || label.includes('Einkaufspreis')
|
||||
|
||||
let annual = 0
|
||||
if (isBalanceRow) {
|
||||
if (isUnitPrice) {
|
||||
// Unit prices: show the price, not a sum
|
||||
annual = values[`m${monthEnd}`] || values[`m${monthStart}`] || 0
|
||||
} else if (isBalanceRow) {
|
||||
// Point-in-time: show last month (December) value
|
||||
annual = values[`m${monthEnd}`] || 0
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user