The new woob repository is here: https://gitlab.com/woob/woob. This gitlab will be removed soon.

Commit 200516b0 authored by Florent Viard's avatar Florent Viard Committed by Vincent A

[creditmutuel] fixes get_iban_document not working for some accounts

To find the iban document line in the table, we compare the line content
with the label.

But for some accounts, the account title in the line will be uppercase,
but not for all of them.
parent c2925a0a
......@@ -1786,7 +1786,7 @@ def fill_iban(self, accounts):
def get_iban_document(self, subscription):
for raw in self.doc.xpath('//table[has-class("liste")]//tbody//tr[not(@class)]'):
if raw.xpath('.//td[1]')[0].text_content().startswith(subscription.label.upper()):
if raw.xpath('.//td[1]')[0].text_content().upper().startswith(subscription.label.upper()):
iban_document = Document()
iban_document.label = 'IBAN {}'.format(subscription.label)
iban_document.url = Link(raw.xpath('.//a'))(self.doc)
......
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