mirror of
https://github.com/simonmichael/hledger.git
synced 2024-11-08 07:09:28 +03:00
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:
parent
40ab1e17f6
commit
6c60119a92
@ -141,8 +141,8 @@ registerChartHtml percommoditytxnreports =
|
|||||||
[
|
[
|
||||||
#{dayToJsTimestamp $ triDate i},
|
#{dayToJsTimestamp $ triDate i},
|
||||||
#{simpleMixedAmountQuantity $ triCommodityBalance c i},
|
#{simpleMixedAmountQuantity $ triCommodityBalance c i},
|
||||||
'#{show $ triCommodityAmount c i}',
|
'#{showMixedAmountWithZeroCommodity $ triCommodityAmount c i}',
|
||||||
'#{show $ triCommodityBalance c i}',
|
'#{showMixedAmountWithZeroCommodity $ triCommodityBalance c i}',
|
||||||
'#{concat $ intersperse "\\n" $ lines $ show $ triOrigTransaction i}',
|
'#{concat $ intersperse "\\n" $ lines $ show $ triOrigTransaction i}',
|
||||||
],
|
],
|
||||||
/* [] */
|
/* [] */
|
||||||
|
Loading…
Reference in New Issue
Block a user