gest_crans: s'adapte à dialog (plus de '\n') (bis)

J'en avais oublié
This commit is contained in:
Daniel STAN 2015-02-20 18:16:48 +01:00
parent 5c3a8ee252
commit f3711404a6

View file

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