feat(qa): consolidate eleven financial report tables pending private visual acceptance
This commit is contained in:
@@ -629,6 +629,17 @@ export async function createProjectDossierPrintHtml(
|
||||
content.push(`<section><h2>${escapeHtml(section.title)}</h2>`);
|
||||
for (const paragraph of section.paragraphs)
|
||||
content.push(`<p>${escapeHtml(paragraph)}</p>`);
|
||||
if (section.id === 'financial-report' && section.rows.length)
|
||||
content.push(
|
||||
htmlTable(
|
||||
['Campo', 'Conteúdo', 'Classificação / origem'],
|
||||
section.rows.map((row) => [
|
||||
row.field,
|
||||
row.value,
|
||||
`${row.classification}. ${row.origin}`,
|
||||
]),
|
||||
),
|
||||
);
|
||||
for (const entry of section.tables ?? []) {
|
||||
content.push(`<h3>${escapeHtml(entry.title)}</h3>`);
|
||||
for (const note of [...entry.issues, ...entry.notes])
|
||||
@@ -636,7 +647,7 @@ export async function createProjectDossierPrintHtml(
|
||||
for (const slice of investmentReportTableSlices(entry))
|
||||
content.push(htmlTable(slice.headers, slice.rows));
|
||||
}
|
||||
if (section.rows.length)
|
||||
if (section.rows.length && section.id !== 'financial-report')
|
||||
content.push(
|
||||
htmlTable(
|
||||
['Campo', 'Conteúdo', 'Classificação / origem'],
|
||||
|
||||
Reference in New Issue
Block a user