Open juergenhoetzel opened 8 years ago
I have a script that prints out hledger transactions from a GnuCash SQLite database. Uses ruby and activerecord. https://gist.github.com/TomK32/2dcb66bc238cc11ba475
Nice! I'll try this on my old gnucash data as soon as I can fix sqlite saving on OSX.
@TomK32 Works nice at first glance. Thanks!
It would be nice to also convert GnuCash XML files (this is what I use for storage).
@simonmichael Thanks for the hint.
Its also sqlite3-based. Somehow I always preferred the default XML storage in GnuCash. Maybe also because it's text based and doesn't depend on DBs.
FWIW I've had success with MatzeB/pygnucash. I had to remove the commodity
and account
declarations but otherwise this worked great.
This was tested with hledger 0.27 with a gnucash 2.6.6 sqlite database.
Good to know. Current hledger-master supports the commodity
and account
directives (though not all of Ledger's subdirectives).
It would be nice to import GnuCash (2.6+) XML files. This feature has been deprecated from the original ledger implementation. But It seems John is porting this feature again for the next release: http://bugs.ledger-cli.org/show_bug.cgi?id=182