File diff f9411e0ffe79 → 4789972d3811
conservancy_beancount/plugin/meta_approval.py
Show inline comments
...
 
@@ -27,6 +27,10 @@ from ..beancount_types import (
 
class MetaApproval(core._RequireLinksPostingMetadataHook):
 
    CHECKED_METADATA = ['approval']
 
    SKIP_FLAGS = '!'
 
    SKIP_TAX_IMPLICATIONS = frozenset([
 
        'Bank-Transfer',
 
        'Chargeback',
 
    ])
 

	
 
    def __init__(self, config: configmod.Config) -> None:
 
        self.payment_threshold = -config.payment_threshold()
...
 
@@ -48,5 +52,5 @@ class MetaApproval(core._RequireLinksPostingMetadataHook):
 
        return (
 
            post.account.is_cash_equivalent()
 
            and post.units.number < 0
 
            and post.meta.get('tax-implication', '').title() != 'Chargeback'
 
            and str(post.meta.get('tax-implication')).title() not in self.SKIP_TAX_IMPLICATIONS
 
        )