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
This commit is contained in:
Florent 2015-03-19 08:01:50 +01:00
commit 98b637ec4a

View file

@ -82,6 +82,8 @@ class Transaction(FrenchTransaction):
FrenchTransaction.TYPE_CARD),
(re.compile('^VIR COOPA (?P<dd>\d{2})/(?P<mm>\d{2}) (?P<text>.*)'),
FrenchTransaction.TYPE_TRANSFER),
(re.compile('^COOPA (?P<dd>\d{2})/(?P<mm>\d{2}) (?P<text>.*)'),
FrenchTransaction.TYPE_TRANSFER),
(re.compile('^VIR(EMENT|EMT| SEPA EMET :)? (?P<text>.*?)(- .*)?$'),
FrenchTransaction.TYPE_TRANSFER),
(re.compile('^(PRLV|PRELEVEMENT) SEPA (?P<text>.*?)(- .*)?$'),