From d8c724220812c53722101244099be4e405e95602 Mon Sep 17 00:00:00 2001 From: Brett Smith Date: Sun, 29 Mar 2020 14:41:57 -0400 Subject: [PATCH] meta_approval: Pass configured payment_threshold to is_payment. --- conservancy_beancount/plugin/meta_approval.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conservancy_beancount/plugin/meta_approval.py b/conservancy_beancount/plugin/meta_approval.py index d32fec7..809ffd0 100644 --- a/conservancy_beancount/plugin/meta_approval.py +++ b/conservancy_beancount/plugin/meta_approval.py @@ -37,7 +37,7 @@ class MetaApproval(core._RequireLinksPostingMetadataHook): assets_sum = decimal.Decimal(0) creditcard_sum = decimal.Decimal(0) for post in data.iter_postings(txn): - if post.is_payment(): + if post.is_payment(self.payment_threshold): assets_sum += post.units.number or 0 elif post.account.is_under(self.CREDIT_CARD_ACCT): creditcard_sum += post.units.number or 0