From f3711404a6311ee20765a031cf783daffc33ed40 Mon Sep 17 00:00:00 2001 From: Daniel STAN Date: Fri, 20 Feb 2015 18:16:48 +0100 Subject: [PATCH] =?UTF-8?q?gest=5Fcrans:=20s'adapte=20=C3=A0=20dialog=20(p?= =?UTF-8?q?lus=20de=20'\n')=20(bis)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit J'en avais oubliƩ --- gestion/gest_crans.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gestion/gest_crans.py b/gestion/gest_crans.py index a3c3b2b9..080f2e44 100755 --- a/gestion/gest_crans.py +++ b/gestion/gest_crans.py @@ -1756,7 +1756,7 @@ def set_facture_recu(facture): annul, res = dialog(arg) if annul: return 1 - if "Pmt\n" in res: + if u"Pmt" in res: facture.recuPaiement(strftime("%Y-%m-%d %H:%M:%S")) else: facture.recuPaiement(False) @@ -1774,9 +1774,9 @@ def set_facture_controle(facture): annul, res = dialog(arg) if annul: return 1 - if "Ctl\n" in res: + if "Ctl" in res: facture.controle(True) - elif "NCtl\n" in res: + elif "NCtl" in res: facture.controle(False) else: facture.controle("")