Pas de commentaire => commentaire vide, pas None
This commit is contained in:
parent
e46f6ba4d8
commit
947047dea0
1 changed files with 2 additions and 2 deletions
|
@ -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})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue