LCL: strip balance string
Signed-off-by: Pierre Mazière <pierre.maziere@gmail.com>
This commit is contained in:
parent
011dcc9688
commit
681f6c0bec
1 changed files with 2 additions and 2 deletions
|
|
@ -151,9 +151,9 @@ class AccountsPage(BasePage):
|
|||
if not div.text.strip():
|
||||
div = div.find('div')
|
||||
account.label=u''+div.text.strip()
|
||||
balance=a.text.replace(u"\u00A0",'').replace(' ','').replace('.','').replace('+','').replace(',','.')
|
||||
balance=a.text.replace(u"\u00A0",'').replace(' ','').replace('.','').replace('+','').replace(',','.').strip()
|
||||
if '-' in balance:
|
||||
balance='-'+balance.strip().replace('-', '')
|
||||
balance='-'+balance.replace('-', '')
|
||||
account.balance=Decimal(balance)
|
||||
l.append(account)
|
||||
return l
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue