Commit 7c963940 authored by Lucas Ficheux's avatar Lucas Ficheux Committed by ntome

[bp] Added Transaction typing

Corrected regex for FRAIS TRIMESTRIELS DE TENUE DE COMPTE.

Typed Transactions with COMMISSION PAIEMENT PAR CARTE in their label
as TYPE_BANK.

Typed Transactions with CREDIT CARTE BANCAIRE in their label as
TYPE_CARD and added rdate parsing.
parent b2bbc59e
Pipeline #2751 canceled with stages
......@@ -59,9 +59,10 @@ class Transaction(FrenchTransaction):
(re.compile(r'^(?P<category>COTISATION TRIMESTRIELLE).*'), FrenchTransaction.TYPE_BANK),
(re.compile(r'^REMISE COMMERCIALE.*'), FrenchTransaction.TYPE_BANK),
(re.compile(r'^(?P<category>.*UTILISATION DU DECOUVERT$)'), FrenchTransaction.TYPE_BANK),
(re.compile(r'^(?P<category>FRAIS (TRIMESTRIELS) DE TENUE DE COMPTE.*)'), FrenchTransaction.TYPE_BANK),
(re.compile(r'^(?P<category>FRAIS (TRIMESTRIELS )?DE TENUE DE COMPTE).*'), FrenchTransaction.TYPE_BANK),
(re.compile(r'^(?P<category>FRAIS IRREGULARITES ET INCIDENTS).*'), FrenchTransaction.TYPE_BANK),
(re.compile(r'^(?P<category>COMMISSION PAIEMENT PAR CARTE)'), FrenchTransaction.TYPE_BANK),
(re.compile(r'^(?P<category>CREDIT CARTE BANCAIRE) (?P<text>.*) (?P<dd>\d{2})\.(?P<mm>\d{2})\.(?P<yy>\d{2,4}) .*'), FrenchTransaction.TYPE_CARD),
]
......
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