This avoids printing invalid journal format for entries where an implicit amount has multiple commodities.
This commit is contained in:
		
							parent
							
								
									4abd029bae
								
							
						
					
					
						commit
						29183e7ddd
					
				| @ -60,8 +60,11 @@ printEntries opts@CliOpts{reportopts_=ropts} j = do | ||||
|         _     -> (entriesReportAsText,                      ropts) | ||||
|   writeOutput opts $ render $ entriesReport ropts' q j | ||||
| 
 | ||||
| -- | Render journal entries (transactions) as a string, which should be valid journal format. | ||||
| entriesReportAsText :: EntriesReport -> String | ||||
| entriesReportAsText items = concatMap showTransactionUnelided items | ||||
| entriesReportAsText items = concatMap showtxn items | ||||
|   where | ||||
|     showtxn = showTransaction | ||||
| 
 | ||||
| -- XXX | ||||
| -- tests_showTransactions = [ | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user