accrual: Key on entity for Liabilities:Payable:Vacation.
The invoice metadata is less operative in this account.
This commit is contained in:
parent
db3ba4fd4d
commit
8ec3a12d5a
2 changed files with 2 additions and 3 deletions
|
@ -176,11 +176,10 @@ class AccrualPostings(core.RelatedPostings):
|
|||
accruals: Dict[Tuple[str, ...], List[data.Posting]] = collections.defaultdict(list)
|
||||
payments: Dict[Tuple[str, ...], Deque[data.Posting]] = collections.defaultdict(Deque)
|
||||
key: Tuple[str, ...]
|
||||
prepaid_account = AccrualAccount.PREPAID.value.name
|
||||
for post in postings:
|
||||
norm_func = core.normalize_amount_func(post.account)
|
||||
entity = str(post.meta.get('entity', 'BlankEntity'))
|
||||
if post.account.is_under(prepaid_account):
|
||||
if post.account.is_under('Assets:Prepaid', 'Liabilities:Payable:Vacation'):
|
||||
invoice = entity
|
||||
else:
|
||||
invoice = str(post.meta.get('invoice', 'BlankInvoice'))
|
||||
|
|
2
setup.py
2
setup.py
|
@ -5,7 +5,7 @@ from setuptools import setup
|
|||
setup(
|
||||
name='conservancy_beancount',
|
||||
description="Plugin, library, and reports for reading Conservancy's books",
|
||||
version='1.12.4',
|
||||
version='1.12.5',
|
||||
author='Software Freedom Conservancy',
|
||||
author_email='info@sfconservancy.org',
|
||||
license='GNU AGPLv3+',
|
||||
|
|
Loading…
Reference in a new issue