From 7c963940efa5cf0335c3d9a38cd2b7f87f8f9ffb Mon Sep 17 00:00:00 2001 From: Lucas Ficheux Date: Sat, 30 Nov 2019 16:20:22 +0100 Subject: [PATCH] [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. --- modules/bp/pages/accounthistory.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/bp/pages/accounthistory.py b/modules/bp/pages/accounthistory.py index 31c1571876..a92056fdb9 100644 --- a/modules/bp/pages/accounthistory.py +++ b/modules/bp/pages/accounthistory.py @@ -59,9 +59,10 @@ class Transaction(FrenchTransaction): (re.compile(r'^(?PCOTISATION TRIMESTRIELLE).*'), FrenchTransaction.TYPE_BANK), (re.compile(r'^REMISE COMMERCIALE.*'), FrenchTransaction.TYPE_BANK), (re.compile(r'^(?P.*UTILISATION DU DECOUVERT$)'), FrenchTransaction.TYPE_BANK), - (re.compile(r'^(?PFRAIS (TRIMESTRIELS) DE TENUE DE COMPTE.*)'), FrenchTransaction.TYPE_BANK), + (re.compile(r'^(?PFRAIS (TRIMESTRIELS )?DE TENUE DE COMPTE).*'), FrenchTransaction.TYPE_BANK), (re.compile(r'^(?PFRAIS IRREGULARITES ET INCIDENTS).*'), FrenchTransaction.TYPE_BANK), - + (re.compile(r'^(?PCOMMISSION PAIEMENT PAR CARTE)'), FrenchTransaction.TYPE_BANK), + (re.compile(r'^(?PCREDIT CARTE BANCAIRE) (?P.*) (?P
\d{2})\.(?P\d{2})\.(?P\d{2,4}) .*'), FrenchTransaction.TYPE_CARD), ] -- GitLab