Extract ReportHeader, ReportDivider, ReportSectionHeader, and
ReportFooter under Components/Pages/Reports/ and adopt them across
BalanceReport, BalanceSheetReport, ProfitLossReport, and DetailReport.
Row shapes are unchanged; the primitives just fold the divider hr
rows (30+ occurrences), section headers (8), and header/footer (4
each). ProfitLossReport / DetailReport also drop leftover
`m.Class == 3/4` magic numbers for ClassIds. Print CSS gains
`table.report tr { page-break-inside: avoid; }` so section headers
don't land at the bottom of a page alone. Net -88 lines across the
four report razor files.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
19 lines
557 B
Text
19 lines
557 B
Text
@* Report tail — spacer row + italic footer line ("Stand: dd.MM.yyyy").
|
|
Note: the existing code used colspan="4" here even in reports whose
|
|
table only has 3 columns; preserved as-is so the visual is unchanged.
|
|
Callers can override via the Colspan parameter. *@
|
|
|
|
<tr>
|
|
<td colspan="@Colspan" style="height: 30px"> </td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="@Colspan" class="footer">@Footer</td>
|
|
</tr>
|
|
|
|
@code {
|
|
[Parameter, EditorRequired]
|
|
public string Footer { get; set; } = "";
|
|
|
|
[Parameter]
|
|
public int Colspan { get; set; } = 4;
|
|
}
|