[ENH] Add back support for both old and new ING mt940 format.

This commit is contained in:
Ronald Portier (Therp BV)
2015-06-12 17:46:42 +02:00
parent 64d54edae4
commit 719ca1e9b9
3 changed files with 90 additions and 11 deletions

View File

@@ -112,7 +112,7 @@ class MT940(object):
This in fact uses the ING syntax, override in others."""
self.mt940_type = 'General'
self.header_lines = 3 # Number of lines to skip
self.header_regex = '^{1:[0-9A-Z]{25,25}}' # Start of relevant data
self.header_regex = '^0000 01INGBNL2AXXXX|^{1' # Start of relevant data
self.footer_regex = '^-}$|^-XXX$' # Stop processing on seeing this
self.tag_regex = '^:[0-9]{2}[A-Z]*:' # Start of new tag
self.current_statement = None