Ignore spaces in bank transfer references

This commit is contained in:
Raphael Michel
2017-07-06 17:39:32 +02:00
parent 34d59c7741
commit f28d5f19a7
2 changed files with 13 additions and 1 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.upper())
match = pattern.search(trans.reference.replace(" ", "").upper())
if match:
if job.event: