This repository has been archived by the owner on Sep 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
Statement information parsed as transaction description #12
Comments
Hi @ndrsn ! |
ndrsn
added a commit
to ndrsn/mt940-js
that referenced
this issue
Feb 26, 2020
Fixes issue raised in webschik#12, where an `:86:` field relating to the statement as a whole was being parsed as relating to a specific transaction.
How about this? |
I've encountered another issue related to this field: when no transactions at all are present in the file, and the parser encounters field
This is because I've fixed this in the latest commit on |
Thank you for contributing ;) |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
First of all, thank you for all the work on this! It's already saved me a bunch of time.
That said, I believe there may be a bug in the way statements are parsed, with regards to field type
86
.This definition describes how field
86
is used for extra information pertaining a transaction, when it follows field 61.However, this definition, following field
65
describes it as a field containing extra information on the statement as a whole.I've encountered an issue with
mt940-js
when attempting to read an MT940 similar to the one below (simplified):I would expect the transaction description to match
whereas now it sets it to
...which is the information related to the statement, not the transaction.
I believe this is because right now no accounting is made for the relative position of field
86
(see this line, which indiscriminately sets/overwrites the transaction description.Can you confirm this is a bug in the implementation?
The text was updated successfully, but these errors were encountered: