On Wed, Oct 15, 2014 at 4:29 AM, Gour <[email protected]> wrote:

> On Wed, 15 Oct 2014 00:20:23 -0400
> Martin Blais <[email protected]> wrote:
>
> Hello Martin,
>
> > Tonight I implemented a new command to convert from Beancount to an
> > SQL database (SQLite3 implementation).
>
> I still did not convert from Gnucash to ledger-based accounting and
> wonder what is your priority in regard to some tool to provide ledger
> <--> Beancount conversion?
>

I'm interested in writing a conversion script from and to GNUcash to
Beancount and/or Ledger (I don't see why the script could not support both
output types, that should be easy). I had a quick look a while back and
GNUcash exports an XML file that should be easily parseable--I think this
would be a moderate to easy task. The only hurdle to doing this so far is
that I don't have a decent input corpus to work from and I haven't cared
enough to fiddle with GNUcash myself to produce something realistic.

If you want to help expedite this, you can create a GNUcash ledger that has
at least one of every kind of transaction (especially with units held at
cost, investments, etc.) that you use and share it with the list, either I
or someone will surely pick it up and make a little conversion script that
you can then try it on your real GNUcash ledger (note that this will take
iterations, we might not get it right the first time and without access to
your own file it would take cooperation and debug support to iron out all
the issues that come up converting your file).

If we could build such a script, you could keep working with GNUcash for a
while as you test out getting data out of Ledger or Beancount or whatever,
until you're satisfied enough you'd be willing to move your source file
over. I'm happy starting to hash this out and include it in the LedgerHub
implementation.



Of course, my inquiry is in the context of looking your general
> development of Beancount.
>

On Wed, Oct 15, 2014 at 6:33 AM, Gour <[email protected]> wrote:

> On Wed, 15 Oct 2014 10:29:07 +0200
> Gour <[email protected]> wrote:
>
> > I still did not convert from Gnucash to ledger-based accounting and
> > wonder what is your priority in regard to some tool to provide ledger
> > <--> Beancount conversion?
>

I built one recently:
https://bitbucket.org/blais/beancount/src/539d531607f17f6f90599fbb73ea9b41b4dde66d/src/python/beancount/reports/convert_reports.py?at=default

It's certainly imperfect at this point.



>
> Excuse me for making noice...now I'm looking at tutorial and see:
>
> "It should be possible to convert example files generated from the
> script to Ledger syntax, like this:
>
> bean-query example.beancount ledger > example.lgr "
>
> which really makes me enthusiastic to try Beancount. ;)
>

The conversion is imperfect; the feature sets between the two softwares do
not overlap 100%. There are things I can do in Beancount that I cannot
convert to Ledger, and Ledger also has features that have no equivalent in
Beancount. But it works on the example file for Beancount which has a
moderate amount of complexity.


Now, I'm going to check whether there is some helper for creating
> budgets...both (h)ledger require some extra calc to be done to estimate
> correct monthly amounts.
>

I have so far only thoughts about how to handle budgets, and it's not clear
how to best carry this out. You would have to write a plugin yourself if
what you need is a budget feature. It's pretty low down the list of things
I care about.

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to