meta_approval: Pass configured payment_threshold to is_payment.
This commit is contained in:
parent
043644d194
commit
d8c7242208
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ class MetaApproval(core._RequireLinksPostingMetadataHook):
|
||||||
assets_sum = decimal.Decimal(0)
|
assets_sum = decimal.Decimal(0)
|
||||||
creditcard_sum = decimal.Decimal(0)
|
creditcard_sum = decimal.Decimal(0)
|
||||||
for post in data.iter_postings(txn):
|
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
|
assets_sum += post.units.number or 0
|
||||||
elif post.account.is_under(self.CREDIT_CARD_ACCT):
|
elif post.account.is_under(self.CREDIT_CARD_ACCT):
|
||||||
creditcard_sum += post.units.number or 0
|
creditcard_sum += post.units.number or 0
|
||||||
|
|
Loading…
Reference in a new issue