reg: show negative amounts in red, like balance and Ledger
This commit is contained in:
		
							parent
							
								
									5925808108
								
							
						
					
					
						commit
						318a7ce234
					
				| @ -175,8 +175,10 @@ postingsReportItemAsText opts preferredamtwidth preferredbalwidth (mdate, mendda | |||||||
|               BalancedVirtualPosting -> (\s -> "["++s++"]", acctwidth-2) |               BalancedVirtualPosting -> (\s -> "["++s++"]", acctwidth-2) | ||||||
|               VirtualPosting         -> (\s -> "("++s++")", acctwidth-2) |               VirtualPosting         -> (\s -> "("++s++")", acctwidth-2) | ||||||
|               _                      -> (id,acctwidth) |               _                      -> (id,acctwidth) | ||||||
|       amt = showMixedAmountWithoutPrice $ pamount p |       showamt | color_ (reportopts_ opts) = cshowMixedAmountWithoutPrice | ||||||
|       bal = showMixedAmountWithoutPrice b |               | otherwise                 = showMixedAmountWithoutPrice | ||||||
|  |       amt = showamt $ pamount p | ||||||
|  |       bal = showamt b | ||||||
|       -- alternate behaviour, show null amounts as 0 instead of blank |       -- alternate behaviour, show null amounts as 0 instead of blank | ||||||
|       -- amt = if null amt' then "0" else amt' |       -- amt = if null amt' then "0" else amt' | ||||||
|       -- bal = if null bal' then "0" else bal' |       -- bal = if null bal' then "0" else bal' | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user