From ea60c966a014aad7b0c42948c9f60364044e7762 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Wed, 1 Dec 2021 11:30:11 +0100 Subject: [PATCH] add limit --- teleforma/management/commands/teleforma-copy-students.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teleforma/management/commands/teleforma-copy-students.py b/teleforma/management/commands/teleforma-copy-students.py index 35775bef..d18438dd 100644 --- a/teleforma/management/commands/teleforma-copy-students.py +++ b/teleforma/management/commands/teleforma-copy-students.py @@ -92,7 +92,7 @@ class Command(BaseCommand): if date_paid: if payments_to: payment_to = payments_to[0] - if date_paid != payment_to.date_paid: + if date_paid != payment_to.date_paid and date_paid >= date_limit: payment_to.online_paid = payment.online_paid payment_to.date_paid = payment.date_paid payment_to.save() -- 2.39.5