wolph / mt940

A library to parse MT940 files and returns smart Python collections for statistics and manipulation.
https://mt940.readthedocs.org/en/latest/
BSD 3-Clause "New" or "Revised" License
94 stars 50 forks source link

The ASN bank MT940 file can not be parsed for tag 61 #82

Closed gpaulissen closed 4 years ago

gpaulissen commented 4 years ago

The tag 61 from the ASNB bank has a format for tag 61 which is not conform the Swift specifications. They use the IBAN (34x) for customer reference (16x). See attachment example.

From: https://www.sepaforcorporates.com/swift-for-corporates

Pattern: 6!n[4!n]2a[1!a]15d1!a3!c16x[//16x]

[34x]

But ASN bank puts the IBAN in the customer reference, which is acording to
Wikipedia at most 34 characters.

So this is the new pattern:

Pattern: 6!n[4!n]2a[1!a]15d1!a3!c34x[//16x]

[34x]

0708271685_09022020_164516.940.txt

wolph commented 4 years ago

Thank you for the help. I've created a new release which has your changes incorporated.

Fixed in #83