Improve MT940 import

This commit is contained in:
Raphael Michel
2017-08-25 14:49:57 +02:00
parent 511a49041f
commit f98f25fb6b
4 changed files with 225 additions and 37 deletions

View File

@@ -142,7 +142,7 @@ def process_banktransfers(self, job: int, data: list) -> None:
pattern = re.compile("(%s)[ \-_]*([A-Z0-9]{%s})" % ("|".join(prefixes), code_len))
for trans in transactions:
match = pattern.search(trans.reference.replace(" ", "").upper())
match = pattern.search(trans.reference.replace(" ", "").replace("\n", "").upper())
if match:
if job.event: