From 98b637ec4a275efa0ff0438cb96e81e6fbc55798 Mon Sep 17 00:00:00 2001 From: Florent Date: Thu, 19 Mar 2015 08:01:50 +0100 Subject: [PATCH] Fix regexp for external transfer Since the SEPA update, the "VIR" prefix is not used anymore. However, add a new regexp instead of removing the old one for compatibility with old transactions --- modules/creditcooperatif/perso/pages.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/creditcooperatif/perso/pages.py b/modules/creditcooperatif/perso/pages.py index b0e03106..ae41afab 100644 --- a/modules/creditcooperatif/perso/pages.py +++ b/modules/creditcooperatif/perso/pages.py @@ -82,6 +82,8 @@ class Transaction(FrenchTransaction): FrenchTransaction.TYPE_CARD), (re.compile('^VIR COOPA (?P
\d{2})/(?P\d{2}) (?P.*)'), FrenchTransaction.TYPE_TRANSFER), + (re.compile('^COOPA (?P
\d{2})/(?P\d{2}) (?P.*)'), + FrenchTransaction.TYPE_TRANSFER), (re.compile('^VIR(EMENT|EMT| SEPA EMET :)? (?P.*?)(- .*)?$'), FrenchTransaction.TYPE_TRANSFER), (re.compile('^(PRLV|PRELEVEMENT) SEPA (?P.*?)(- .*)?$'),