mirror of
https://github.com/simonmichael/hledger.git
synced 2024-09-19 18:29:36 +03:00
print: don't lose the commodity in zero balance assertions. Related to #475
This commit is contained in:
parent
39662260cd
commit
8bc67d5ee8
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user