cli: CompoundBalanceCommand.compoundBalanceReportAsHtml: create according TH cells only if row-total or average is requested

fixed bug #2225
This commit is contained in:
Henning Thielemann 2024-09-13 01:04:57 +02:00 committed by Simon Michael
parent fb47073c91
commit 144098e407

View File

@ -345,8 +345,8 @@ compoundBalanceReportAsHtml ropts cbr =
th_ ""
when (layout_ ropts == LayoutBare) $ th_ "Commodity"
mconcat $ map (th_ [style_ alignright] . toHtml . reportPeriodName (balanceaccum_ ropts) colspans) colspans
th_ $ if row_total_ ropts then "Total" else ""
th_ $ if average_ ropts then "Average" else ""
when (row_total_ ropts) $ th_ "Total"
when (average_ ropts) $ th_ "Average"
]
-- Make rows for a subreport: its title row, not the headings row,