Commit c342ea15 authored by Maxime Pommier's avatar Maxime Pommier Committed by Romain Bignon

[ing] We scrapped the "previsionnal balance" instead of coming

There are no way to get coming in ing, we scapped the wrong data

Closes: 7788@zendesk
parent 7bfcdefa
......@@ -219,11 +219,6 @@ class IngBrowser(LoginBrowser):
accounts_list.append(loan)
yield loan
def get_coming_balance(self, account):
if account.type == Account.TYPE_CHECKING:
self.go_account_page(account)
return self.page.get_coming_balance()
return NotAvailable
@need_login
@start_with_main_site
......@@ -235,20 +230,17 @@ class IngBrowser(LoginBrowser):
if space:
for acc in self.get_accounts_on_space(space, get_iban=get_iban):
acc.coming = self.get_coming_balance(acc)
yield acc
elif self.multispace:
for space in self.multispace:
for acc in self.get_accounts_on_space(space, get_iban=get_iban):
acc.coming = self.get_coming_balance(acc)
yield acc
else:
for acc in self.page.get_list():
acc._space = None
if get_iban:
self.get_iban(acc)
acc.coming = self.get_coming_balance(acc)
yield acc
for loan in self.iter_detailed_loans():
......
......@@ -323,11 +323,6 @@ class AccountsList(LoggedPage, HTMLPage):
self.fillup_form(form, r"\),\{(.*)\},'", on_click)
form.submit()
def get_coming_balance(self):
return CleanDecimal('//div[@class="previsionnel"]/div[@class="solde_value"]//label',
replace_dots=True,
default=NotAvailable)(self.doc)
class IbanPage(LoggedPage, HTMLPage):
def get_iban(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment