jseutter / ofxparse

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

Feature Request - Add Transaction Parsing for "DTAVAIL" Field in <STMTTRN> #176

Open paulusbd opened 6 months ago

paulusbd commented 6 months ago

Hello Jerry,

I really like this tool and am using it in a ofx2csv script.

I have been running into a case where I'm wanting both the DTPOSTED and DTAVAIL fields when I'm justifying the date of the transaction verses when the bank posted the transaction. It is a special case.

It looks like I could add and modify the fields in transaction for the dates to be:

class Transaction(object):
    def __init__(self):
        self.payee = ''
        self.type = ''
        self.date = ''
        self.avail_date = '' #new
        self.user_date = None
        self.amount = None
        self.id = ''
        self.memo = ''
        self.sic = None
        self.mcc = ''
        self.checknum = ''

And make the corresponding changes in the rest of the code and parser. I'm fairly new to coding, but find I'm now driven by necessity and desire to not do this by hand.