Commit 333493a4 authored by Lucas Ficheux's avatar Lucas Ficheux Committed by hydrargyrum
Browse files

[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 ='nature/codefamille')(self), Transaction.TYPE_UNKNOWN)
if type == Transaction.TYPE_CARD and' RELEVE DU \d+\.', Field('raw')(self)):
if (
(type == Transaction.TYPE_CARD and' RELEVE DU \d+\.', Field('raw')(self))) or
(type == Transaction.TYPE_UNKNOWN and'FACTURE CARTE AFFAIRES \w{16} SUIVANT RELEVE DU \d{2}.\d{2}.\d{4}', Field('raw')(self)))
return Transaction.TYPE_CARD_SUMMARY
return type
Supports Markdown
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