Correction bug cotisation
This commit is contained in:
parent
7dc37931dc
commit
f9c2b848e7
|
@ -343,13 +343,16 @@ def validate(member):
|
||||||
"LEFT JOIN acc_transactions_lines l ON l.id_transaction = tu.id_transaction " +\
|
"LEFT JOIN acc_transactions_lines l ON l.id_transaction = tu.id_transaction " +\
|
||||||
"INNER JOIN acc_transactions tr ON tr.id = l.id_transaction " +\
|
"INNER JOIN acc_transactions tr ON tr.id = l.id_transaction " +\
|
||||||
"WHERE m.id = {} AND l.id_account = 481;".format(member)
|
"WHERE m.id = {} AND l.id_account = 481;".format(member)
|
||||||
# Note: su.id_service = 1 parceque la cotisation correspond au service 1
|
# Note: su.id_service = 1 parceque la cotisation correspond au service 1
|
||||||
|
|
||||||
try:
|
try:
|
||||||
answer = gestion_read(request)["results"][-1]
|
answer = gestion_read(request)["results"][-1]
|
||||||
except:
|
except IndexError:
|
||||||
print(gestion_read(request))
|
BUF.append("* {} (numero inconnu)".format(member))
|
||||||
raise(Exception)
|
BUF.append(" SUPPRESSION MEMBRE")
|
||||||
|
BUF.append("")
|
||||||
|
os.remove(WORKDIR+"/transition/"+member)
|
||||||
|
return
|
||||||
|
|
||||||
date = datetime.datetime.strptime(
|
date = datetime.datetime.strptime(
|
||||||
answer["date"],'%Y-%m-%d').strftime("%d/%m/%Y")
|
answer["date"],'%Y-%m-%d').strftime("%d/%m/%Y")
|
||||||
|
|
Loading…
Reference in New Issue