Commit 9b8ea2d0 authored by Antoine Bernard's avatar Antoine Bernard

[trez] Francisation du nom de certaines fonctions.

parent 7e8514f9
......@@ -1687,7 +1687,7 @@ def TresorerieRemises(request,sock,kwargs):
messages.add_error(request, out["errmsg"])
return HttpResponseRedirect('%sindex/' % (settings.NOTE_ROOT_URL,))
sock.write(json.dumps(["list_remises",]))
sock.write(json.dumps(["liste_remises",]))
out = nk.full_read(sock)
if not nk._is_success_code(out["retcode"]):
messages.add_error(request, out["errmsg"])
......@@ -1714,7 +1714,7 @@ def TresorerieCheques(request,sock,kwargs):
# Si on affiche la page pour la première fois
if request.method == 'GET':
sock.write(json.dumps(["list_cheques",["date"," "," "]]))
sock.write(json.dumps(["liste_cheques",["date"," "," "]]))
out = nk.full_read(sock)
if not nk._is_success_code(out["retcode"]):
messages.add_error(request, out["errmsg"])
......@@ -1732,7 +1732,7 @@ def TresorerieCheques(request,sock,kwargs):
#TODO mettre les dates dans un dico pour être traiter côte serveur
debut_date = (form.cleaned_data["debut_date"]).strftime('%Y-%m-%d')
fin_date = (form.cleaned_data["fin_date"]).strftime('%Y-%m-%d')
sock.write(json.dumps(["list_cheques", ["date",debut_date,fin_date]] ))
sock.write(json.dumps(["liste_cheques", ["date",debut_date,fin_date]] ))
out = nk.full_read(sock)
if not nk._is_success_code(out["retcode"]):
messages.add_error(request, out["errmsg"])
......@@ -1859,7 +1859,7 @@ def TresorerieCloreRemise(request,sock,kwargs):
messages.add_error(request, out["errmsg"])
return HttpResponseRedirect('%sindex/' % (settings.NOTE_ROOT_URL,))
else:
sock.write(json.dumps(["list_cheques",["idremise",idremise]]))
sock.write(json.dumps(["liste_cheques",["idremise",idremise]]))
out = nk.full_read(sock)
if not nk._is_success_code(out["retcode"]):
messages.add_error(request, out["errmsg"])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment