fix: preserve scoped V12 diagnostics pending interrupted QA proof

This commit is contained in:
2026-11-20 22:36:41 +02:00
parent a5f3714cac
commit 74ba0bd0d2
10 changed files with 349 additions and 14 deletions
@@ -5,6 +5,20 @@ import {
type InvestmentReportTable,
} from './integral-financial-report.ts';
import type { BusinessFinancialPlanInput } from './business-financial-plan.ts';
import { calculateStartupAssetRequirements } from './startup-asset-requirements.ts';
/** The local startup editor owns this error when report tables are unavailable. */
export function startupErrorMessage(plan: BusinessFinancialPlanInput): string {
if (plan.startupAssetRequirements)
try {
calculateStartupAssetRequirements(plan);
} catch (cause) {
return cause instanceof Error
? cause.message
: 'Confira os dados de arranque.';
}
return '';
}
/** Do not hide a forecast error when the report editor itself cannot show the tables. */
export function forecastErrorShownInReport(