diff --git a/conservancy_beancount/plugin/meta_payable_documentation.py b/conservancy_beancount/plugin/meta_payable_documentation.py index b100ff5896d4371a6b292985d42d7046315f6805..68b2f08ae9b4cfc960728dddf48c1877cf3b1f83 100644 --- a/conservancy_beancount/plugin/meta_payable_documentation.py +++ b/conservancy_beancount/plugin/meta_payable_documentation.py @@ -23,7 +23,7 @@ from ..beancount_types import ( ) class MetaPayableDocumentation(core._RequireLinksPostingMetadataHook): - CHECKED_METADATA = ['invoice', 'contract'] + CHECKED_METADATA = ['approval', 'contract'] def _run_on_post(self, txn: Transaction, post: data.Posting) -> bool: if post.account.is_under('Liabilities:Payable'): diff --git a/tests/test_meta_payable_documentation.py b/tests/test_meta_payable_documentation.py index 425e5d97c77020e40226cc6d63c346965fb54f30..5add32bbfc91dfa8fcee75245c477c5cf3a3b629 100644 --- a/tests/test_meta_payable_documentation.py +++ b/tests/test_meta_payable_documentation.py @@ -29,20 +29,20 @@ ACCOUNTS = [ ] SUPPORTING_METADATA = [ + 'approval', 'contract', - 'invoice', ] NON_SUPPORTING_METADATA = [ - 'approval', 'check', + 'invoice', 'purchase-order', 'receipt', 'statement', ] OTHER_ACCT = 'Expenses:Other' -MISSING_MSG = f"{{}} missing invoice/contract".format +MISSING_MSG = f"{{}} missing approval/contract".format # for supporting links, use the lists from testutil