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] |     | postingblock <- postingblocks] | ||||||
|   where |   where | ||||||
|     postingblocks = [map rstrip $ lines $ concatTopPadded [account, "  ", amount, assertion, samelinecomment] | amount <- shownAmounts] |     postingblocks = [map rstrip $ lines $ concatTopPadded [account, "  ", amount, assertion, samelinecomment] | amount <- shownAmounts] | ||||||
|     assertion = maybe "" ((" = " ++) . showAmount) $ pbalanceassertion p |     assertion = maybe "" ((" = " ++) . showAmountWithZeroCommodity) $ pbalanceassertion p | ||||||
|     account = |     account = | ||||||
|       indent $ |       indent $ | ||||||
|         showstatus p ++ fitString (Just acctwidth) Nothing False True (showAccountName Nothing (ptype p) (paccount p)) |         showstatus p ++ fitString (Just acctwidth) Nothing False True (showAccountName Nothing (ptype p) (paccount p)) | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user