-
Notifications
You must be signed in to change notification settings - Fork 25
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
Negative Debit #34
Comments
sorry for the late reply. |
This is my only experience with the format, so I unfortunately don't 😕 |
I don't think that the i like that source for quick reference: https://www.kontopruef.de/mt940s.shtml |
I ended up doing this on each line: # Replace `D-100,00` with `RD100,00`
content.gsub!(/D-/, 'RD')
# Replace `C-100,00` with `RC100,00`
content.gsub!(/C-/, 'RC') And it has worked so far 🤷♂ |
👍 |
@LQkkeN have you checked if the - is really meant to be a negative sign and not a broken currency? if so all is well but if not this makes things worse as you return incorrect statements |
Yes 😆 |
I have a case like this:
:61:1908150815D-104,12NMSCNONREF//010F214191270328
It fails to parse correctly, likely because of the
D-104,12
. I'm not certain that's correct or not though. I guess it comes down to the-
being allowed or not. Perhaps you've seen such a case before?The text was updated successfully, but these errors were encountered: