diff --git a/conservancy_beancount/plugin/meta_tax_implication.py b/conservancy_beancount/plugin/meta_tax_implication.py index 154fb101f3c7ade705601e99e3f8623a873e00df..7a2fe2b86938140d3ada608a63fb156495c6b0ce 100644 --- a/conservancy_beancount/plugin/meta_tax_implication.py +++ b/conservancy_beancount/plugin/meta_tax_implication.py @@ -45,7 +45,10 @@ class MetaTaxImplication(core._NormalizePostingMetadataHook): ]) def __init__(self, config: configmod.Config) -> None: - self.payment_threshold = config.payment_threshold() + self.payment_threshold = -config.payment_threshold() def _run_on_post(self, txn: Transaction, post: data.Posting) -> bool: - return post.is_payment(self.payment_threshold) is not False + return ( + post.account.is_cash_equivalent() + and post.units.number < self.payment_threshold + )