data.Account: Exclude PrepaidVacation from "real" assets.
Same rationale as PrepaidExpenses.
This commit is contained in:
		
							parent
							
								
									f8ea5ce62c
								
							
						
					
					
						commit
						89aaae821b
					
				
					 2 changed files with 2 additions and 0 deletions
				
			
		|  | @ -39,6 +39,7 @@ class Account(str): | |||
|         return ( | ||||
|             self.is_under('Assets:') | ||||
|             and not self.is_under('Assets:PrepaidExpenses') | ||||
|             and not self.is_under('Assets:PrepaidVacation') | ||||
|         ) | ||||
| 
 | ||||
|     def is_under(self, acct_s: str) -> bool: | ||||
|  |  | |||
|  | @ -37,6 +37,7 @@ def test_is_under(acct_name, under_arg, expected): | |||
|     ('Assets:Cash', True), | ||||
|     ('Assets:Cash:EUR', True), | ||||
|     ('Assets:PrepaidExpenses', False), | ||||
|     ('Assets:PrepaidVacation', False), | ||||
|     ('Assets:Bank:Checking', True), | ||||
|     ('Expenses:General', False), | ||||
|     ('Income:Donations', False), | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Brett Smith
						Brett Smith