Commit 394b029c authored by Quentin Defenouillere's avatar Quentin Defenouillere Committed by ntome

[bp] typed PERP Solésio correctly

It is important to type the 'assurance retraite' (PERP) accounts
correctly because there is a specific way of retrieving the balance
(Valorisation instead of rente) and customers complain that the balance
is not correct.

Also added obj_number = obj_id for all non-card accounts.

Closes: 13422@zendesk
parent 7b27bc19
......@@ -57,7 +57,7 @@ class item_account_generic(ItemElement):
(len(self.el.xpath('.//div//*[contains(text(),"pas la restitution de ces données.")]')) == 0 and
len(self.el.xpath('.//div[@class="amount"]/span[contains(text(), "Contrat résilié")]')) == 0)))
obj_id = CleanText('.//abbr/following-sibling::text()')
obj_id = obj_number = CleanText('.//abbr/following-sibling::text()')
obj_currency = Currency('.//span[@class="number"]')
def obj_url(self):
......@@ -145,6 +145,7 @@ class item_account_generic(ItemElement):
'plan d\'epargne en actions': Account.TYPE_PEA,
'comptes? attente': Account.TYPE_CHECKING,
'perp': Account.TYPE_PERP,
'assurances? retraite': Account.TYPE_PERP,
}
# first trying to match with label
......
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