fix getting accounts
This commit is contained in:
parent
0e0bf2ad37
commit
4422a25421
1 changed files with 3 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue