ui: quick fix for date: and --change breakage (#1387)
This commit is contained in:
		
							parent
							
								
									5aedfa6b23
								
							
						
					
					
						commit
						9337a66fb5
					
				| @ -81,8 +81,9 @@ asInit d reset ui@UIState{ | |||||||
|                         as = map asItemAccountName displayitems |                         as = map asItemAccountName displayitems | ||||||
| 
 | 
 | ||||||
|     uopts' = uopts{cliopts_=copts{reportspec_=rspec'}} |     uopts' = uopts{cliopts_=copts{reportspec_=rspec'}} | ||||||
|     rspec' = rspec{rsQuery=simplifyQuery $ And [rsQuery rspec, excludeforecastq (forecast_ ropts)]} |     rspec' = rspec{rsQuery=simplifyQuery $ And [rsQuery rspec, periodq, excludeforecastq (forecast_ ropts)]} | ||||||
|       where |       where | ||||||
|  |         periodq = Date $ periodAsDateSpan $ period_ ropts | ||||||
|         -- Except in forecast mode, exclude future/forecast transactions. |         -- Except in forecast mode, exclude future/forecast transactions. | ||||||
|         excludeforecastq (Just _) = Any |         excludeforecastq (Just _) = Any | ||||||
|         excludeforecastq Nothing  =  -- not:date:tomorrow- not:tag:generated-transaction |         excludeforecastq Nothing  =  -- not:date:tomorrow- not:tag:generated-transaction | ||||||
|  | |||||||
| @ -67,8 +67,9 @@ rsInit d reset ui@UIState{aopts=_uopts@UIOpts{cliopts_=CliOpts{reportspec_=rspec | |||||||
|     inclusive = tree_ ropts || rsForceInclusive |     inclusive = tree_ ropts || rsForceInclusive | ||||||
|     thisacctq = Acct $ (if inclusive then accountNameToAccountRegex else accountNameToAccountOnlyRegex) rsAccount |     thisacctq = Acct $ (if inclusive then accountNameToAccountRegex else accountNameToAccountOnlyRegex) rsAccount | ||||||
|     rspec' = rspec{rsOpts=ropts{depth_=Nothing}} |     rspec' = rspec{rsOpts=ropts{depth_=Nothing}} | ||||||
|     q = And [rsQuery rspec, excludeforecastq (forecast_ ropts)] |     q = And [rsQuery rspec, periodq, excludeforecastq (forecast_ ropts)] | ||||||
|       where |       where | ||||||
|  |         periodq = Date $ periodAsDateSpan $ period_ ropts | ||||||
|         -- Except in forecast mode, exclude future/forecast transactions. |         -- Except in forecast mode, exclude future/forecast transactions. | ||||||
|         excludeforecastq (Just _) = Any |         excludeforecastq (Just _) = Any | ||||||
|         excludeforecastq Nothing  =  -- not:date:tomorrow- not:tag:generated-transaction |         excludeforecastq Nothing  =  -- not:date:tomorrow- not:tag:generated-transaction | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user