print: don't lose the commodity in zero balance assertions. Related to #475

This commit is contained in:
Simon Michael 2017-01-14 10:29:33 -08:00
parent 39662260cd
commit 8bc67d5ee8

View File

@ -193,7 +193,7 @@ postingAsLines elideamount onelineamounts ps p = concat [
| postingblock <- postingblocks]
where
postingblocks = [map rstrip $ lines $ concatTopPadded [account, " ", amount, assertion, samelinecomment] | amount <- shownAmounts]
assertion = maybe "" ((" = " ++) . showAmount) $ pbalanceassertion p
assertion = maybe "" ((" = " ++) . showAmountWithZeroCommodity) $ pbalanceassertion p
account =
indent $
showstatus p ++ fitString (Just acctwidth) Nothing False True (showAccountName Nothing (ptype p) (paccount p))