-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parsing of the transaction description: Missing information #40
Comments
Hi, I referred to this issue in issue #23 .
|
This can potentially be solved by the structured description. I added code to actually expose it here: #48 |
The Problem is, that there may be lines starting with "-", so the line |
- added new test for fix - added phpunit as dev requirement in composer file
The workaround from @mgrundkoetter has helped me, too. Thank you for that. |
Fix postbank and tan mechanisms
Hi @mschindler83,
first of all: Great work! I really love this tool.
I used it with comdirect bank and found an issue with the MT940-parser. I some cases, the reponse contains a divider-string within the description section, although it is still the same transaction. As a result there are parts of the name and/or description missing. Here an example:
RAW-Response (divided and personal information taken out):
Array
(
[0] =>
[1] => 20:MT940-1701250150
[2] => 21:NONREF
[3] => 25:20041144/418311700EUR
[4] => 28C:0/1
[5] => 60F:C170123EUR1921,44
[6] => 61:1701230123DR139,63NMSCNONREF//POS 3393590253
[7] => 86:820?20ÃœBERTRAG/ÃœBERWEISUNG?21RECHNUNGSNR. 17/27?22END-TO-END-REF.
[8] => ?23NICHT ANGEGEBEN?24Ref. J9217021C1831775/2?30GENODEF1HTR?31DExxxxxxxxxxx?32DR. MEIER
[9] => 61:1701230123DR69,58NMSCNONREF//POS 3394043541
[10] => 62M:C170124EUR1199,64
)
The information from index 8 is completely lost, as the parser expects it to be part of index 7.
My workaround is as follows:
MT940.php:
As I'm not a php-expert, I'm pretty sure that you can find a much more flexible and elegant solutions for this issue. I just wanted to show my workaround for better unterstanding. Also I'm not aware about problems which could arise from this code, when using it with other banks.
Thanks and best regards!
Edit:
It's even worse. The parser has a problem with the divider-string that comdirect returns. Comdirect is sometimes sending "\r\n" in the middle of a description. If then a "-" is accidently right behind it (as it belongs to the description), the parser threats it as a new transaction.
The text was updated successfully, but these errors were encountered: