feat(qa): integrate financial ratios with accounting consistency guards

This commit is contained in:
2026-11-20 12:59:39 +02:00
parent a90c8ef2dd
commit 35c9e4fc15
10 changed files with 476 additions and 2 deletions
@@ -1,5 +1,6 @@
import { displayValue } from './display-value.ts';
import { buildComplementaryTables } from './complementary-report.ts';
import { buildFinancialRatiosTable } from './financial-ratios-report.ts';
import {
buildIntegralFinancialTables,
displayReportMoney,
@@ -531,6 +532,9 @@ function makeSections(
}
if (finance && financialPlan?.reportAssumptions) {
finance.tables = buildIntegralFinancialTables(financialPlan);
finance.tables.push(
buildFinancialRatiosTable(financialPlan, finance.tables),
);
const periods = financialPlan.periods ?? 12;
const cell = (id: string, label: string) =>
finance.tables