mt940

Bug 10

classification
Title: Knab MT940 file can not be parsed
Type: crash Severity: normal
Components: Versions:
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: ced Nosy List: ced, vlad.lep@gmail.com
Priority: normal Keywords: patch

Created on 2018-08-22 12:16 by vlad.lep@gmail.com, last changed 2018-09-29 21:10 by ced.

Files
File name Uploaded Description Edit Remove
Knab example.txt vlad.lep@gmail.com, 2018-08-22 12:16
0001-fix-importing-of-knab-files.patch vlad.lep@gmail.com, 2018-08-22 12:28
Messages
msg10 Author: [hidden] (vlad.lep@gmail.com) Date: 2018-08-22 12:16
The MT940 from Knab can not be parsed  by the library. Their 
format is a bit different than others, 
 - they add a \ at the end of each line and which breaks 
parsing of amounts for :60F
 - the end_balance is not always added for each entry, some 
have only the start balance. The :62F: is missing 

Below I added an example file from one of our customers with 
the personal information altered.
msg11 Author: [hidden] (vlad.lep@gmail.com) Date: 2018-08-22 12:28
This is a patch that solves the problems for the example I 
had from our customers. Also it does not seem to break 
anything else.

If you could make a new release to incorporate this would be 
very useful. 


Thanks,
Vlad
msg12 Author: [hidden] (ced) Date: 2018-09-29 21:10
I found this document[1] which shows that start and closing
balances are optional.
So here is review369860043 which make it not failing on
missing optional values.

For the strip of trailing '\', I think it is an error of
file format decoding. From file1, it seems the file is
embedded into another format and I guess the trailing '\'
are part of this format.

[1]
http://www.sepaforcorporates.com/swift-for-corporates/account-statement-mt940-file-format-overview/
msg13 Author: [hidden] (ced) Date: 2018-09-29 21:10
Here is the link to the review:
https://codereview.appspot.com/369860043/
History
Date User Action Args
2018-09-29 21:10:51cedsetmessages: + msg13
2018-09-29 21:10:01cedsetstatus: open
severity: major -> normal
nosy: + ced
messages: + msg12
priority: high -> normal
assignee: ced
keywords: + patch
2018-08-22 12:28:01vlad.lep@gmail.comsetfiles: + 0001-fix-importing-of-knab-files.patch
messages: + msg11
2018-08-22 12:16:22vlad.lep@gmail.comcreate