cli: CompoundBalanceCommand.compoundBalanceReportAsHtml: create according TH cells only if row-total or average is requested
fixed bug #2225
This commit is contained in:
parent
fb47073c91
commit
144098e407
@ -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,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user