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("")