data.Account: Exclude PrepaidVacation from "real" assets.

Same rationale as PrepaidExpenses.
This commit is contained in:
Brett Smith 2020-03-18 16:25:37 -04:00
parent f8ea5ce62c
commit 89aaae821b
2 changed files with 2 additions and 0 deletions

View file

@ -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:

View file

@ -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),