Fix bug (thanks to JP Dutrève)

This commit is contained in:
Kitof 2013-12-17 22:23:45 +01:00 committed by Romain Bignon
commit bd0f14fd56

4
modules/hellobank/perso/accounts_list.py Normal file → Executable file
View file

@ -52,8 +52,8 @@ class AccountsList(BasePage):
account = Account()
account.label = u''+compte['libellePersoProduit']
account.currency = account.get_currency(compte['devise'])
account.balance = Decimal(compte['soldeDispo'])
account.coming = Decimal(compte['soldeAVenir'])
account.balance = Decimal(str(compte['soldeDispo']))
account.coming = Decimal(str(compte['soldeAVenir']))
account.type = self.ACCOUNT_TYPES.get(id_famille, Account.TYPE_UNKNOWN)
account.id = 0
account._link_id = 'KEY'+compte['key']