Commit ed2bb00a authored by Baptiste Delpey's avatar Baptiste Delpey Committed by Romain Bignon

Revert "[societegenerale] Handle mortgage type"

This reverts commit 7d455f0d256e404a4dfe4bcfc1f77831ce696546.
parent 086a29c5
Pipeline #2276 created with stages
......@@ -218,7 +218,7 @@ class SocieteGenerale(LoginBrowser, StatesMixin):
if account._prestation_id in account_comings:
account.coming = account_comings[account._prestation_id]
if account.type in (account.TYPE_LOAN, account.TYPE_CONSUMER_CREDIT, account.TYPE_MORTGAGE):
if account.type in (account.TYPE_LOAN, account.TYPE_CONSUMER_CREDIT, ):
self.loans.stay_or_go(conso=(account._loan_type == 'PR_CONSO'))
account = self.page.get_loan_account(account)
......
......@@ -166,7 +166,6 @@ class AccountsPage(JsonBasePage):
'AVANCE_PATRIMOINE': Account.TYPE_REVOLVING_CREDIT,
'PRET_EXPRESSO': Account.TYPE_CONSUMER_CREDIT,
'PRET_EVOLUTIF': Account.TYPE_CONSUMER_CREDIT,
'PR_IMMO': Account.TYPE_MORTGAGE,
'PERP_EPICEA': Account.TYPE_PERP,
}
......@@ -185,10 +184,7 @@ class AccountsPage(JsonBasePage):
obj__cards = Dict('cartes', default=[])
def obj_type(self):
account_type = self.TYPES.get(Dict('produit')(self), Account.TYPE_UNKNOWN)
if account_type == Account.TYPE_LOAN:
account_type = self.TYPES.get(Dict('codeFamille')(self), Account.TYPE_LOAN)
return account_type
return self.TYPES.get(Dict('produit')(self), Account.TYPE_UNKNOWN)
def obj_ownership(self):
# 'groupeRoleDTO' can contains 'TITULAIRE', 'MANDATAIRE' or 'REPRESENTATION'
......@@ -205,7 +201,7 @@ class AccountsPage(JsonBasePage):
def obj__loan_type(self):
if Field('type')(self) in (Account.TYPE_LOAN, Account.TYPE_CONSUMER_CREDIT,
Account.TYPE_REVOLVING_CREDIT, Account.TYPE_MORTGAGE,):
Account.TYPE_REVOLVING_CREDIT, ):
return Dict('codeFamille')(self)
return None
......
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