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