diff --git a/conservancy_beancount/data.py b/conservancy_beancount/data.py index 6475f83d0a683bce088926391485df47b6e0763b..d50bcb820925060bb5d5ca6def8dd5c6b730aeb4 100644 --- a/conservancy_beancount/data.py +++ b/conservancy_beancount/data.py @@ -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: diff --git a/tests/test_data_account.py b/tests/test_data_account.py index 622c4996563cc2131f2600dfb2f370c7debd2a4c..bfc6f862dd19b81a0225728d3a0c0875fbd901a2 100644 --- a/tests/test_data_account.py +++ b/tests/test_data_account.py @@ -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),