feat(qa): integrate official Mozambique CAE into saved financial plans
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { displayValue } from './display-value.ts';
|
||||
import { describePlanCae } from './cae-mozambique.ts';
|
||||
import { buildComplementaryTables } from './complementary-report.ts';
|
||||
import { buildFinancialRatiosTable } from './financial-ratios-report.ts';
|
||||
import {
|
||||
@@ -526,6 +527,17 @@ function makeSections(
|
||||
const financialPlan = restoreBusinessPlanSnapshot(
|
||||
text(draft, 'business_plan_snapshot'),
|
||||
);
|
||||
if (finance) {
|
||||
const cae = describePlanCae(financialPlan?.economicClassification);
|
||||
finance.rows.push({
|
||||
field: 'Classificação CAE do plano',
|
||||
value: cae.value,
|
||||
classification: cae.confirmed
|
||||
? 'Escolha declarada pelo investidor; a confirmar documentalmente'
|
||||
: 'Não documentado ou por conferir',
|
||||
origin: cae.source,
|
||||
});
|
||||
}
|
||||
const complementaryTables = buildComplementaryTables(draft, financialPlan);
|
||||
for (const [i, id] of ['market', 'execution', 'team'].entries()) {
|
||||
const section = sections.get(id as DossierReportSectionId);
|
||||
@@ -894,6 +906,7 @@ export function createIntegralFinancialReport(
|
||||
)?.currency;
|
||||
const declaredCurrency = text(draft, 'currency');
|
||||
const summary = new Set([
|
||||
'Classificação CAE do plano',
|
||||
'Moeda do plano',
|
||||
'Horizonte',
|
||||
'Facturação no horizonte',
|
||||
|
||||
Reference in New Issue
Block a user