jseutter / ofxparse

Ofx file format parser for Python
http://sites.google.com/site/ofxparse/
MIT License
204 stars 121 forks source link

Transaction that is not a DEBIT nor a CREDIT #162

Open papin1 opened 3 years ago

papin1 commented 3 years ago

Hi everybody,

Excerpt from my bank (LCL.FR) statement. Please notice the TRNTYPE value:

CHECK 20190221 -19.87 003 1090381 1090381

I believe this kind of transaction is not handled correctly because its field "payee" is empty. On the other hand, I don't know which values the tag TRNTYPE can take besides DEBIT and CREDIT.

papin1 commented 3 years ago

Hi everybody,

Excerpt from my bank (LCL.FR) statement. Please notice the TRNTYPE value:


<STMTTRN>
<TRNTYPE>CHECK
<DTPOSTED>20190221
<TRNAMT>-19.87
<FITID>003 1090381
<CHECKNUM>1090381
</STMTTRN>

I believe this kind of transaction is not handled correctly because its field "payee" is empty. On the other hand, I don't know which values the tag TRNTYPE can take besides DEBIT and CREDIT.

fdinel commented 3 years ago

Hi, according to the OFX spec (available https://www.ofx.net/downloads.html ), CHECK is a valid TRNTYPE. Also, to my understanding PAYEE is optional, so ofxparse should support that use case.