Skip to content

Commit a73fa60

Browse files
committed
Only match with transactions after the expected date of payment of a fee
1 parent de43bf9 commit a73fa60

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

thebook/members/management/commands/match_receivable_fees_with_transactions.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,8 @@ def handle(self, *args, **options):
1414
for status in (FeePaymentStatus.DUE, FeePaymentStatus.UNPAID):
1515
receivable_fees = ReceivableFee.objects.filter(status=status)
1616
for receivable_fee in receivable_fees:
17-
# This is the date we started to create ReceivableFees
18-
# automatically, so we should ignore past transactions
1917
transaction = Transaction.objects.filter(
20-
date__gte=datetime.date(2025, 6, 1)
18+
date__gte=receivable_fee.start_date
2119
).find_match_for(receivable_fee)
2220
if not transaction:
2321
continue

0 commit comments

Comments
 (0)