-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hubert Bahr schrieb: > As suggested I am starting with OFX Import. Investigation of libofx > shows that it supports sufficient fields to provide the necessary data, > based on the examination of its ofxdump utility. > > I have established bug 385366 as a collection point for file transfers, > and uploaded two files the first id 78266 is an ofx file to be used as > the initial test case. The second id# 78267 is the output of ofxdump. > It will be used for the initial discussions.
That's http://bugzilla.gnome.org/show_bug.cgi?id=385366 . Thanks for the initial test file there. (NB: It was quite unexpected to have the second file in OpenOffice-Writer format (ODT). In the future I'd ask you to stick to plain text files, as this is more easily accessible on the bunch of machines developers tend to have around. But nevermind.) Can you please explain now more clearly which parts of your test file are imported correctly, and which parts are erroneous or missing data? Please be as specific as possible (for one concrete example). > Where would I find the appropriate functions for passing these values to > the engine. Some of them seem to be described in > src/engine/Transaction.h but the list seems incomplete. > > To me the majority of the changes look like they belong in > ofx_proc_transaction_cb of gnc-ofx-import.c Yes, absolutely. You have to retrieve the data from libofx by accessing the members of the "struct OfxTransactionData" (the variable "data") and write it into the gnucash transaction (variable "transaction") or its first split (variable "split") by using the xaccTransactionSet... or xaccSplitSet... functions for Transaction.h or Split.h, respectively. As for the difference Transaction vs. Split: The final transaction contains two or more splits; each split represents the amount that goes into one particular account. If you want to read more of this, read the comments in Transaction.h and Split.h. Also, do you work with SVN-trunk source code for this? I hope so. Regards, Christian -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.1 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iQCVAwUBRX/Q2GXAi+BfhivFAQIlXQQAj9FI0aqnZQEP2swkCRy1NwjwAkpUALCt rSx+UH3e3ZZ9IPWRWON93kTV9gnrgJqTEo2TdZc+7mXqMhpokpgIQ2NfpHuy/hmO hPBDTlZMSCUuzo7dhJVoIdBQX7xYO0xyRNu17dgHyqrFkHdm1OYXnz2g5TVrJnlx 2ZmbZmdxZ7M= =jsDG -----END PGP SIGNATURE----- _______________________________________________ gnucash-devel mailing list [email protected] https://lists.gnucash.org/mailman/listinfo/gnucash-devel
