web: show right zero commodities on register chart

If zero amounts are recorded with a commodity, any resulting zero
balances appearing in the register chart will have the proper commodity
and colour. (This is the first and so far only case of hledger
preserving the commodity of zero amounts.)
This commit is contained in:
Simon Michael 2014-07-28 18:47:59 -07:00
parent 40ab1e17f6
commit 6c60119a92

View File

@ -141,8 +141,8 @@ registerChartHtml percommoditytxnreports =
[
#{dayToJsTimestamp $ triDate i},
#{simpleMixedAmountQuantity $ triCommodityBalance c i},
'#{show $ triCommodityAmount c i}',
'#{show $ triCommodityBalance c i}',
'#{showMixedAmountWithZeroCommodity $ triCommodityAmount c i}',
'#{showMixedAmountWithZeroCommodity $ triCommodityBalance c i}',
'#{concat $ intersperse "\\n" $ lines $ show $ triOrigTransaction i}',
],
/* [] */