Commit 7bfcdefa authored by Maxime Gasselin's avatar Maxime Gasselin Committed by Romain Bignon

[creditmutuel] Change Account Type checking

In BMCE, a checking account has been found with a label like:
"XXXXXXX.XX Compte Cheques Particulier Mme XXXX".
parent 6e4d0d46
......@@ -192,7 +192,7 @@ class item_account_generic(ItemElement):
class Type(Filter):
def filter(self, label):
for pattern, actype in item_account_generic.TYPES.items():
if label.startswith(pattern):
if pattern in label:
return actype
return Account.TYPE_UNKNOWN
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