|
@@ -37,7 +37,7 @@ class Command(BaseCommand):
|
|
|
ninf += 1
|
|
|
continue
|
|
|
nadh += 1
|
|
|
- contrib = service.contribution.current
|
|
|
+ contrib = service.contribution.get_current_payment()
|
|
|
if not contrib or contrib.payment_method == PaymentUpdate.STOP:
|
|
|
nmiss += 1
|
|
|
elif contrib.payment_method == PaymentUpdate.FREE:
|
|
@@ -67,7 +67,7 @@ class Command(BaseCommand):
|
|
|
adhesions = Adhesion.objects.filter(Q(active__isnull=True) | Q(active=True))
|
|
|
nadh = adhesions.count()
|
|
|
pmiss, pgra, ppay, income = 0, 0, 0, 0
|
|
|
- payments = map(lambda adh: adh.membership.current, adhesions)
|
|
|
+ payments = map(lambda adh: adh.membership.get_current_payment(), adhesions)
|
|
|
for payment in payments:
|
|
|
if payment is None:
|
|
|
pmiss += 1
|
|
@@ -83,7 +83,7 @@ class Command(BaseCommand):
|
|
|
def handle_methodes(self):
|
|
|
prelevement, virement, facture = 0, 0, 0
|
|
|
for payment in RecurringPayment.objects.all():
|
|
|
- payment = payment.current
|
|
|
+ payment = payment.get_current_payment()
|
|
|
if not payment:
|
|
|
continue
|
|
|
if payment.payment_method == PaymentUpdate.DEBIT:
|