Commit 8a233b1e authored by Célande Adrien's avatar Célande Adrien Committed by Romain Bignon

[cices] accounts with no balance have zero

parent 8d06a0cb
......@@ -62,6 +62,9 @@ class AccountsPage(LoggedPage, HTMLPage):
obj_label = CleanText('(//table[@class="fiche"]//td)[1]')
def obj_balance(self):
if CleanText('//td[text()="Vous n\'avez pas d\'avoirs."]')(self):
return 0
balance = MyDecimal('//table[@class="fiche"]//td/em')(self)
if not balance:
balance = MyDecimal('//th[contains(text(), "Montant total")]/em')(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