data.Account: Use multi-arg is_under in is_real_asset.
This commit is contained in:
parent
7cd569be7b
commit
4fee91ad48
1 changed files with 1 additions and 2 deletions
|
@ -41,8 +41,7 @@ class Account(str):
|
|||
def is_real_asset(self) -> bool:
|
||||
return bool(
|
||||
self.is_under('Assets:')
|
||||
and not self.is_under('Assets:PrepaidExpenses')
|
||||
and not self.is_under('Assets:PrepaidVacation')
|
||||
and not self.is_under('Assets:PrepaidExpenses', 'Assets:PrepaidVacation')
|
||||
)
|
||||
|
||||
def is_under(self, *acct_seq: str) -> Optional[str]:
|
||||
|
|
Loading…
Reference in a new issue