[./gestion/gest_crans.py] Les tresoriers peuvent modifier les cartes/paiements pour l'annee n-1
Sert aux remboursements lors de la priode transitoire. darcs-hash:20100828124126-c8775-82191fc340de4c1209744dae2417541c30b414fa.gz
This commit is contained in:
parent
dccb933910
commit
1fc7383d5b
1 changed files with 29 additions and 7 deletions
|
@ -1087,7 +1087,9 @@ def set_admin(proprio):
|
||||||
|
|
||||||
# Initialisation des différentes checkbox
|
# Initialisation des différentes checkbox
|
||||||
carte = on_off(ann_scol in proprio.carteEtudiant())
|
carte = on_off(ann_scol in proprio.carteEtudiant())
|
||||||
|
prev_carte = on_off(ann_scol - 1 in proprio.carteEtudiant())
|
||||||
paiement = on_off(ann_scol in proprio.paiement())
|
paiement = on_off(ann_scol in proprio.paiement())
|
||||||
|
prev_paiement = on_off(ann_scol - 1 in proprio.paiement())
|
||||||
paiement_ok = on_off('p' in proprio.controle())
|
paiement_ok = on_off('p' in proprio.controle())
|
||||||
carte_ok = on_off('c' in proprio.controle())
|
carte_ok = on_off('c' in proprio.controle())
|
||||||
if has_card: charte_MA = on_off(proprio.charteMA())
|
if has_card: charte_MA = on_off(proprio.charteMA())
|
||||||
|
@ -1115,10 +1117,18 @@ def set_admin(proprio):
|
||||||
if iscontroleur:
|
if iscontroleur:
|
||||||
if has_card:
|
if has_card:
|
||||||
checklist.append(u'"4" "Carte d\'étudiant vérifiée" "%s"' % carte_ok)
|
checklist.append(u'"4" "Carte d\'étudiant vérifiée" "%s"' % carte_ok)
|
||||||
checklist.append(u'"5" "Cotisation/charte vérifées" "%s"' % paiement_ok)
|
checklist.append(u'"5" "Cotisation/charte vérifiées" "%s"' % paiement_ok)
|
||||||
|
|
||||||
|
# Carte et paiement de l'année précédente
|
||||||
|
if has_card:
|
||||||
|
checklist.append(u'"6" "Carte d\'étudiant %d/%d fournie" "%s"' %
|
||||||
|
(ann_scol - 1, ann_scol, prev_carte))
|
||||||
|
if isinstance(proprio, Club) or proprio.adherentPayant():
|
||||||
|
checklist.append(u'"7" "Cotisation %d/%d réglée et charte signée" "%s"' %
|
||||||
|
(ann_scol - 1, ann_scol, prev_paiement))
|
||||||
|
|
||||||
if (isbureau or isadm) and has_card:
|
if (isbureau or isadm) and has_card:
|
||||||
checklist.append(u'"6" "Charte des MA signee" "%s"' % charte_MA)
|
checklist.append(u'"8" "Charte des MA signee" "%s"' % charte_MA)
|
||||||
|
|
||||||
if not checklist:
|
if not checklist:
|
||||||
# Il n'y a rien de modifiable
|
# Il n'y a rien de modifiable
|
||||||
|
@ -1142,9 +1152,15 @@ def set_admin(proprio):
|
||||||
proprio.carteEtudiant(ann_scol)
|
proprio.carteEtudiant(ann_scol)
|
||||||
elif iscontroleur or carte_ok == 'off':
|
elif iscontroleur or carte_ok == 'off':
|
||||||
proprio.carteEtudiant(-ann_scol)
|
proprio.carteEtudiant(-ann_scol)
|
||||||
|
if iscontroleur:
|
||||||
|
if '6\n' in result:
|
||||||
|
proprio.carteEtudiant(ann_scol - 1)
|
||||||
|
else:
|
||||||
|
proprio.carteEtudiant(-(ann_scol - 1))
|
||||||
|
|
||||||
if '4\n' in result:
|
if '4\n' in result:
|
||||||
proprio.controle('+c')
|
proprio.controle('+c')
|
||||||
elif iscontroleur:
|
else:
|
||||||
proprio.controle('-c')
|
proprio.controle('-c')
|
||||||
|
|
||||||
if '2\n' in result and ann_scol not in proprio.paiement():
|
if '2\n' in result and ann_scol not in proprio.paiement():
|
||||||
|
@ -1170,6 +1186,12 @@ def set_admin(proprio):
|
||||||
elif '2\n' not in result and (paiement_ok == 'off' or iscontroleur):
|
elif '2\n' not in result and (paiement_ok == 'off' or iscontroleur):
|
||||||
proprio.paiement(-ann_scol)
|
proprio.paiement(-ann_scol)
|
||||||
|
|
||||||
|
if iscontroleur:
|
||||||
|
if '7\n' in result:
|
||||||
|
proprio.paiement(ann_scol - 1)
|
||||||
|
else:
|
||||||
|
proprio.paiement(-(ann_scol - 1))
|
||||||
|
|
||||||
if '3\n' in result:
|
if '3\n' in result:
|
||||||
proprio.paiement(ann_scol+1)
|
proprio.paiement(ann_scol+1)
|
||||||
elif paiement_ok == 'off' or iscontroleur:
|
elif paiement_ok == 'off' or iscontroleur:
|
||||||
|
@ -1181,7 +1203,7 @@ def set_admin(proprio):
|
||||||
proprio.controle('-p')
|
proprio.controle('-p')
|
||||||
|
|
||||||
if has_card:
|
if has_card:
|
||||||
if '6\n' in result:
|
if '8\n' in result:
|
||||||
proprio.charteMA(True)
|
proprio.charteMA(True)
|
||||||
elif isadm or isbureau:
|
elif isadm or isbureau:
|
||||||
proprio.charteMA(False)
|
proprio.charteMA(False)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue