sursis_carte: return True si not bl_carte_et_actif
This commit is contained in:
parent
3c26ba9f6c
commit
7f7f5842ac
1 changed files with 2 additions and 0 deletions
|
@ -1902,6 +1902,8 @@ class BaseProprietaire(BaseClasseCrans):
|
||||||
return self._an('paiement', action)
|
return self._an('paiement', action)
|
||||||
|
|
||||||
def sursis_carte(self):
|
def sursis_carte(self):
|
||||||
|
if not config.bl_carte_et_actif:
|
||||||
|
return True
|
||||||
for h in self.historique()[::-1]:
|
for h in self.historique()[::-1]:
|
||||||
x=re.match("(.*),.* : .*(paiement\+%s|inscription).*" % config.ann_scol,h)
|
x=re.match("(.*),.* : .*(paiement\+%s|inscription).*" % config.ann_scol,h)
|
||||||
if x != None:
|
if x != None:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue