[FIX] type field can be arbitrary characters

This commit is contained in:
Holger Brunn
2014-05-07 14:35:54 +02:00
parent 204b7318c5
commit 1ecc7a1e1d

View File

@@ -36,7 +36,7 @@ class IngMT940Parser(MT940, parser):
code = 'INT_MT940_STRUC'
tag_61_regex = re.compile(
'^(?P<date>\d{6})(?P<sign>[CD])(?P<amount>\d+,\d{2})N(?P<type>\d{3})'
'^(?P<date>\d{6})(?P<sign>[CD])(?P<amount>\d+,\d{2})N(?P<type>.{3})'
'(?P<reference>\w{1,16})')
def create_transaction(self, cr):