data: bank-statement and tax-statement are link metadata.

Not including them earlier was an oversight.
This commit is contained in:
Brett Smith 2020-06-15 18:08:18 -04:00
parent 582316ae85
commit 4a28596db2
3 changed files with 6 additions and 0 deletions

View file

@ -56,6 +56,7 @@ DecimalCompat = Union[decimal.Decimal, int]
LINK_METADATA = frozenset([ LINK_METADATA = frozenset([
'approval', 'approval',
'bank-statement',
'check', 'check',
'contract', 'contract',
'invoice', 'invoice',
@ -63,6 +64,7 @@ LINK_METADATA = frozenset([
'receipt', 'receipt',
'rt-id', 'rt-id',
'statement', 'statement',
'tax-statement',
]) ])
class Account(str): class Account(str):

View file

@ -27,12 +27,14 @@ from conservancy_beancount.plugin import meta_repo_links
METADATA_KEYS = [ METADATA_KEYS = [
'approval', 'approval',
'bank-statement',
'check', 'check',
'contract', 'contract',
'invoice', 'invoice',
'purchase-order', 'purchase-order',
'receipt', 'receipt',
'statement', 'statement',
'tax-statement',
] ]
GOOD_LINKS = [Path(s) for s in [ GOOD_LINKS = [Path(s) for s in [

View file

@ -25,6 +25,7 @@ from conservancy_beancount.plugin import meta_rt_links
METADATA_KEYS = [ METADATA_KEYS = [
'approval', 'approval',
'bank-statement',
'check', 'check',
'contract', 'contract',
'invoice', 'invoice',
@ -32,6 +33,7 @@ METADATA_KEYS = [
'receipt', 'receipt',
'rt-id', 'rt-id',
'statement', 'statement',
'tax-statement',
] ]
GOOD_LINKS = [ GOOD_LINKS = [