« BONJOUR, J'AI CLIQUÉ SUR CONNEXION ET ÇA NE M'A PAS RÉADHÉRÉ »
This commit is contained in:
parent
037ecab023
commit
5a7e367e9c
1 changed files with 8 additions and 3 deletions
|
@ -1524,12 +1524,16 @@ def set_connexion(proprio):
|
|||
|
||||
# Si l'adhérent ne l'est plus, on commence par le faire adhérer, sauf s'il a une facture adhésion.
|
||||
adhEnd = proprio.adhesion()
|
||||
|
||||
if in_facture is not None:
|
||||
adhEnd = max(adhEnd, fromGeneralizedTimeFormat(in_facture._data.get('finAdhesion', ["19700101000000Z"])[0]))
|
||||
if adhEnd < time():
|
||||
|
||||
if adhEnd - cotisation.delai_readh < time():
|
||||
stat = set_adhesion(proprio)
|
||||
if stat == 1:
|
||||
|
||||
if stat == 1 and adhEnd < time():
|
||||
return 1
|
||||
|
||||
if in_facture is not None:
|
||||
adhEnd = max(adhEnd, fromGeneralizedTimeFormat(in_facture._data.get('finAdhesion', ["19700101000000Z"])[0]))
|
||||
|
||||
|
@ -1554,7 +1558,8 @@ def set_connexion(proprio):
|
|||
annul, res = dialog(args)
|
||||
|
||||
if annul:
|
||||
in_facture.supprime(pop=True)
|
||||
if in_facture is not None:
|
||||
in_facture.supprime(pop=True)
|
||||
return 1
|
||||
res = res[0]
|
||||
if res == "An":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue