diff --git a/gestion/gest_crans.py b/gestion/gest_crans.py index 8be36b7e..b83b0f15 100755 --- a/gestion/gest_crans.py +++ b/gestion/gest_crans.py @@ -1089,10 +1089,10 @@ def set_solde(clas): annul, comment = dialog(arg) if not annul: - if comment[0]: + if comment: comment = comment[0] else: - comment = None + comment = '' f = Facture(clas) f.ajoute({'nombre': 1, 'code':'SOLDE', 'designation': "Modification du solde par un imprimeur. Moyen de paiement: %s, remarque: %s" % (_mode, comment.decode(config.in_encoding)), 'pu': _montant})