From ddc9ba8a200e3b4da4a38785da0603ffb81eb677 Mon Sep 17 00:00:00 2001 From: Romain Beuque Date: Fri, 12 Sep 2014 13:45:05 +0200 Subject: [PATCH] =?UTF-8?q?ajout=20du=20d=C3=A9lai=20de=20cotisation=20pou?= =?UTF-8?q?r=20septembre=20dans=20CotisationComputes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Brie/brie/lib/aurore_helper.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Brie/brie/lib/aurore_helper.py b/Brie/brie/lib/aurore_helper.py index 34d2dd5..43808bf 100644 --- a/Brie/brie/lib/aurore_helper.py +++ b/Brie/brie/lib/aurore_helper.py @@ -250,6 +250,11 @@ class CotisationComputes: #end if delta = (now - anniversary) + if delta.days > 7 and now.month == 9 and CotisationComputes.is_cotisation_was_paid_last_year(member_dn, user_session, residence_dn): + #le membre etait a jour en aout, on lui autorise un delai de paiement en septembre - pas de deconnexion + return True + #end if + return delta.days <= 7 #end def