From: Guillaume Pellerin Date: Wed, 1 Dec 2021 10:30:11 +0000 (+0100) Subject: add limit X-Git-Tag: 2.5.1~25^2~1 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=ea60c966a014aad7b0c42948c9f60364044e7762;p=teleforma.git add limit --- 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()