fix: amount formatting of the Net row in the balancesheet HTML output

The "Net" row in the HTML output of balancesheet formatted amounts using machineFmt which is inconsistent with all the other amounts in the balance sheet. This fixes that by formatting Net amounts using oneLineNoCostFmt.
This commit is contained in:
Bas van Dijk 2024-09-11 23:47:11 +02:00 committed by Simon Michael
parent 5ea99c1a26
commit fb47073c91

View File

@ -364,7 +364,7 @@ compoundBalanceReportAsHtml ropts cbr =
totalrows =
if no_total_ ropts || length subreports == 1 then []
else
multiBalanceRowAsCellBuilders machineFmt ropts colspans Total totalrow
multiBalanceRowAsCellBuilders oneLineNoCostFmt ropts colspans Total totalrow
-- make a table of rendered lines of the report totals row
& map (map (fmap wbToText))
& zipWith (:) (Spr.defaultCell "Net:" : repeat Spr.emptyCell)