OFX import from aqbanking (was: Fresh build of jhbuild and gnucash on OSX)

Brad Grupczynski brad.gnucash at gmail.com
Fri May 20 14:59:19 EDT 2011


I didn't touch libofx. Only made aqbanking import match libofx file import more closely.

libofx uses a callback to split the fields where they need to go. What I should do is figure out a way for them both to use the same callback. Or figure out a way for libofx to do the whole job. I'm sure there are ideas out there. And I am ready for them.

In the mean time, I have submitted a patch to aqbanking that was applied to the trunk and available in aqbanking 5.0.6. And I submit the attached patch for GC. Neither depends on each other but when they are both used together, the results from file import and aqbanking import match (from my test data set).

aqbanking changes:
- Update transaction text to match OFX spec (which matches libofx).
- Place NAME tag value into Remote Name field instead of Purpose field.
- Update tags (possible typo) for "Server assigned transaction ID".

GC changes:
- gnc_ab_description_to_gnc cleaned up and returns different result. Not currently used.
- gnc_ab_trans_to_gnc made to match libofx file import callback more closely. Placing tag values into different fields and building up a different memo for the split.

Also - 
Christian wrote:
"
By the way, you can add a "Import OFX file" using the aqbanking module 
(instead of the hand-written OFX importer) by calling the function  
gnc_file_aqbanking_import() with (I think) importername="ofx", 
formatname="default", called from gnc-plugin-aqbanking.c. Just follow the 
examples for e.g. mt940, all in the above directory.
"
But there is already an OFX import menu item so I didn't do anything here.

-Brad
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.diff
Type: application/octet-stream
Size: 3608 bytes
Desc: not available
URL: <http://lists.gnucash.org/pipermail/gnucash-devel/attachments/20110520/3cea0a65/attachment.obj>
-------------- next part --------------


-------------------------
Brad Grupczynski
brad.gnucash at gmail.com






More information about the gnucash-devel mailing list