wip(qa): preserve package one pending functional acceptance

This commit is contained in:
2026-11-20 11:49:47 +02:00
parent 9cd7e905b1
commit 64f282c341
11 changed files with 1327 additions and 0 deletions
@@ -1,4 +1,9 @@
import { displayValue } from './display-value.ts';
import {
buildIntegralFinancialTables,
type InvestmentReportTable,
} from './integral-financial-report.ts';
import { restoreBusinessPlanSnapshot } from './business-financial-plan.ts';
import { fiscalQaRows } from './fiscal-qa-preview.ts';
import { pathStates } from './investor-path.ts';
import {
@@ -60,6 +65,7 @@ export type DossierReportRow = {
classification: string;
};
export type DossierReportSection = {
tables?: InvestmentReportTable[];
id: DossierReportSectionId;
title: string;
private: boolean;
@@ -512,6 +518,11 @@ function makeSections(
}
const finance = sections.get('finance');
const financialPlan = restoreBusinessPlanSnapshot(
text(draft, 'business_plan_snapshot'),
);
if (finance && financialPlan?.reportAssumptions)
finance.tables = buildIntegralFinancialTables(financialPlan);
if (
finance &&
['fiscal_rule_qa_preview', 'fiscal_rule_published'].includes(