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_ ""
|
th_ ""
|
||||||
when (layout_ ropts == LayoutBare) $ th_ "Commodity"
|
when (layout_ ropts == LayoutBare) $ th_ "Commodity"
|
||||||
mconcat $ map (th_ [style_ alignright] . toHtml . reportPeriodName (balanceaccum_ ropts) colspans) colspans
|
mconcat $ map (th_ [style_ alignright] . toHtml . reportPeriodName (balanceaccum_ ropts) colspans) colspans
|
||||||
th_ $ if row_total_ ropts then "Total" else ""
|
when (row_total_ ropts) $ th_ "Total"
|
||||||
th_ $ if average_ ropts then "Average" else ""
|
when (average_ ropts) $ th_ "Average"
|
||||||
]
|
]
|
||||||
|
|
||||||
-- Make rows for a subreport: its title row, not the headings row,
|
-- Make rows for a subreport: its title row, not the headings row,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user