fruitl00p / php-mt940

A mt940 parser in PHP
MIT License
103 stars 60 forks source link

Some fix for Sparkasse for parsing the transaction price and transaction debit/credit #14

Closed sven-codeculture closed 9 years ago

sven-codeculture commented 9 years ago

According to the german docs of MT940 the :61: line can have some differences wich prevents some of the statements i got to be parsed:

  1. Credit/Debit can be C or D for normal transactions, and RC and RD for cancellations
  2. After the C/D/RC/RD there is an optional 1 character that contains the 3rd letter of the currency name (ISO code)

(Docs at https://www.sparkasse-nuernberg.de/pdf/content/sfirm/mt940-satz.pdf?IFLBSERVERID=IF@@053@@IF)

This pull should fix this two issues. Would be nice to get it to an update/new version fast because i would need it in composer for a project to work.

Greeting Sven

fruitl00p commented 9 years ago

LGTM! Thanks!