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

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

Commit 333493a4 authored by Lucas Ficheux's avatar Lucas Ficheux Committed by Vincent A

[bnporc] Type summary_card that weren't typed

Some transactions were typed as unknown while their label
tells us it is a summary_card.
They are type as AUTOP in the json.
parent 65c6fbe2
......@@ -261,7 +261,10 @@ def obj_raw(self):
def obj_type(self):
type = self.page.TYPES.get(Dict('nature/codefamille')(self), Transaction.TYPE_UNKNOWN)
if type == Transaction.TYPE_CARD and re.search(r' RELEVE DU \d+\.', Field('raw')(self)):
if (
(type == Transaction.TYPE_CARD and re.search(r' RELEVE DU \d+\.', Field('raw')(self))) or
(type == Transaction.TYPE_UNKNOWN and re.search(r'FACTURE CARTE AFFAIRES \w{16} SUIVANT RELEVE DU \d{2}.\d{2}.\d{4}', Field('raw')(self)))
):
return Transaction.TYPE_CARD_SUMMARY
return type
......
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