Skip to content

Commit

Permalink
Merge pull request #852 from xzzy/master
Browse files Browse the repository at this point in the history
Syntax fix
  • Loading branch information
xzzy committed Mar 9, 2021
2 parents 796f2ea + 65bfe1e commit 81dce99
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -101,7 +101,7 @@ def handle(self, *args, **options):
ledger_payment_amount_total = 0
bp_ledger_payment_refund = BpointTransaction.objects.filter(settlement_date=settlement_date_search_obj, crn1__istartswith=SYSTEM_ID)
for bpl in bp_ledger_payment_refund:
if bpl[0].action == 'refund':
if bpl.action == 'refund':
ledger_payment_amount_total = ledger_payment_amount_total - bpl.amount
else:
ledger_payment_amount_total = ledger_payment_amount_total + bpl.amount
Expand Down

0 comments on commit 81dce99

Please sign in to comment.