feat(qa): complete market milestones and personnel report tables

This commit is contained in:
2026-11-20 12:45:14 +02:00
parent f3148d1674
commit 4fb9296f70
14 changed files with 1041 additions and 7 deletions
@@ -1,4 +1,5 @@
import { displayValue } from './display-value.ts';
import { buildComplementaryTables } from './complementary-report.ts';
import {
buildIntegralFinancialTables,
displayReportMoney,
@@ -523,6 +524,11 @@ function makeSections(
const financialPlan = restoreBusinessPlanSnapshot(
text(draft, 'business_plan_snapshot'),
);
const complementaryTables = buildComplementaryTables(draft, financialPlan);
for (const [i, id] of ['market', 'execution', 'team'].entries()) {
const section = sections.get(id as DossierReportSectionId);
if (section) section.tables = [complementaryTables[i]];
}
if (finance && financialPlan?.reportAssumptions) {
finance.tables = buildIntegralFinancialTables(financialPlan);
const periods = financialPlan.periods ?? 12;