On Thu, Nov 24, 2016 at 6:12 AM, Oon-Ee Ng <[email protected]> wrote:

> So as an update, I did a gnucash to ledger conversion and took a look
> with hledger, general accounts seem fine.
>
> However running ledger2beancount.py produced what looks like a valid
> beancount file, except I got TONS of Invalid account names. Reading up
> a bit it seems beancount has 5 'base' account types, and is more
> strict in this regard that ledger (and gnucash).


The issue may simpler than this; it may just be that the conversion script
you use doesn't output an Open directive for each account. Beancount is
pedantic by default; it requires that you declare all the accounts before
you use them (and also allows you to close them).

If you like, you can also use a plugin that auto-declares all the accounts
for you.
At the top of the file, try adding

  plugin "beancount.plugins.auto_accounts"

This might get rid of the problem you're seeing.
(If the problem is the root accounts, read below.)



>
> I have regular backups of my gnucash accounts, and am not averse to
> modifying them to fit the beancount model. What I am averse to is
> jumping straight in and abandoning a system I use daily with a
> conversion which isn't repeatable. Anyone have any experience/ideas on
> what to do? Would it be sufficient for me to (in gnucash) move
> everything to Equity etc. base accounts?


Which root accounts you have?

You can customize the names of your root accounts.
See the name_* options in
http://furius.ca/beancount/doc/options

If you have other root accounts, you could also choose a particular
category for them, or if you feel that no category is a fit, put them under
Equity: ... ; ultimately, choosing one of the four (Assets, Liabilities,
Income, Expenses) categories allows you to build balance sheets and income
statements, it's good practice. If you need help selecting a category, feel
free to email the group.

-- 

--- 
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