Closed bkues3 closed 4 years ago
Thanks for reporting this and the link. A pull request for this is very welcome. Can you add the suggested change and include a test case with the example data that you've seen?
Pull request #42 has been created to resolve this issue.
There are three acceptable codes for transaction type ('S', 'N', and 'F') in Field 61 of MT940, but the parser in
Cmxl::Fields::Transaction
only handles two of them ('N' and 'F').See this link for more information about the acceptable codes.
I believe this issue can be resolved simply by adding this missing third letter to the
swift_code
group of the regex, so that it becomes as follows.Here is an example line that is not currently handled correctly.