Commit 961852c7 authored by Abderraouf Zerroug's avatar Abderraouf Zerroug Committed by Vincent A

[creditdunord] Modified get_account_type to take into account type 'COMPTE COURANT TITRE"

parent 7d91ba35
......@@ -318,7 +318,6 @@ class AccountsPageMixin(LoggedPage, CDNBasePage):
'PRÊT': Account.TYPE_LOAN,
'CREDIT': Account.TYPE_LOAN,
'FACILINVEST': Account.TYPE_LOAN,
'TITRES': Account.TYPE_MARKET,
'COMPTE TIT': Account.TYPE_MARKET,
'PRDTS BLOQ. TIT': Account.TYPE_MARKET,
'PRODUIT BLOQUE TIT': Account.TYPE_MARKET,
......@@ -326,6 +325,10 @@ class AccountsPageMixin(LoggedPage, CDNBasePage):
}
def get_account_type(self, label):
# To differenciate between 'COMPTE COURANT' & 'COMPTE COURANT TITRES',
# in the TYPES dictionary, we type Market accounts right away
if 'TITRES' in label:
return Account.TYPE_MARKET
for pattern, actype in sorted(self.TYPES.items()):
if label.startswith(pattern) or label.endswith(pattern):
return actype
......
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