CrAgr: when transferring money, the reason was not optional as expected. (closes #696)

This commit is contained in:
Xavier G 2011-08-14 20:22:43 +02:00 committed by Romain Bignon
commit 13aa381335

View file

@ -161,7 +161,8 @@ class Cragr(BaseBrowser):
self['numCompteBeneficiaire'] = ['%s' % self.dict_find_value(target_accounts, to)]
self['montantPartieEntiere'] = '%s' % amount_euros
self['montantPartieDecimale'] = '%02d' % amount_cents
self['libelle'] = reason
if reason != None:
self['libelle'] = reason
self.submit()
# look for known errors