fix getting accounts

This commit is contained in:
Romain Bignon 2012-03-15 15:50:47 +01:00
commit 4422a25421

View file

@ -142,7 +142,9 @@ class AccountsPage(BasePage):
elif name=="compte":
account.id+=value
elif name=="nature":
account.type=value
# TODO parse this string to get the right Account.TYPE_* to
# store in account.type.
account._type=value
account.label=a.getparent().getprevious().text.strip()
balance=a.text.replace(u"\u00A0",'').replace(' ','').replace('.','').replace('+','').replace(',','.')
account.balance=float(balance)