meta_approval: Pass configured payment_threshold to is_payment.

This commit is contained in:
Brett Smith 2020-03-29 14:41:57 -04:00
parent 043644d194
commit d8c7242208

View file

@ -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