fix: errors: assertions: don't show actual and asserted reversed
This commit is contained in:
		
							parent
							
								
									41234f0e10
								
							
						
					
					
						commit
						e6959743f5
					
				| @ -603,10 +603,10 @@ checkBalanceAssertionOneCommodityB p@Posting{paccount=assertedacct} assertedamt | |||||||
|       assertedcomm |       assertedcomm | ||||||
|       (if istotal then " (no other commodity balance allowed)" else "" :: String) |       (if istotal then " (no other commodity balance allowed)" else "" :: String) | ||||||
|       -- (asprecision $ astyle actualbalincommodity)  -- should be the standard display precision I think |       -- (asprecision $ astyle actualbalincommodity)  -- should be the standard display precision I think | ||||||
|       (show $ aquantity actualbalincomm) |  | ||||||
|       -- (showAmount actualbalincommodity) |  | ||||||
|       (show $ aquantity assertedamt) |       (show $ aquantity assertedamt) | ||||||
|       -- (showAmount assertedamt) |       -- (showAmount assertedamt) | ||||||
|  |       (show $ aquantity actualbalincomm) | ||||||
|  |       -- (showAmount actualbalincommodity) | ||||||
|       (show $ aquantity assertedamt - aquantity actualbalincomm) |       (show $ aquantity assertedamt - aquantity actualbalincomm) | ||||||
|       where |       where | ||||||
|         ass = fromJust $ pbalanceassertion p  -- PARTIAL: fromJust won't fail, there is a balance assertion |         ass = fromJust $ pbalanceassertion p  -- PARTIAL: fromJust won't fail, there is a balance assertion | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user