Commit 474e3b0f authored by Quentin Defenouillere's avatar Quentin Defenouillere Committed by Vincent A

[oney] Set account balance for loans

Loans currently have balance == NotLoaded, which is a problem for the
backend: "TypeError: '>' not supported between instances of
'NotAvailableType' and 'int'"
parent 7cc50b7a
......@@ -212,6 +212,7 @@ class CreditHome(LoggedPage, HTMLPage):
obj_type = Account.TYPE_LOAN
obj__site = 'other'
obj_balance = 0
obj_label = CleanText('//div[@class="conteneur"]/h1')
obj_number = obj_id = CleanText('//td[contains(text(), "Mon numéro de compte")]/following-sibling::td', replace=[(' ', '')])
obj_coming = CleanDecimal.US('//td[strong[contains(text(), "Montant de la")]]/following-sibling::td/strong')
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