On Sat, Jul 5, 2014 at 3:52 AM, Stefano Zacchiroli <[email protected]> wrote:
> On Fri, Jul 04, 2014 at 11:52:49AM -0400, Martin Blais wrote: > > I don't feel that pain at all. One creates new accounts only rarely, > > adding new declarations is a very minor annoyance, and it provides the > > system with useful information to help it tell you when you make > > mistakes. Closing accounts also provides useful information for > > reporting purposes, i.e., an account closed before the reporting > > period should not have to appear in a report. > > Does Beancount and/or Ledger have any explicit way of closing an > account? In Ledger-cli-land, I'm aware of the 'account' directive, that > pre-declares an account, but I can't find anything in the manual about > explicitly closing an account. In Beancount, you use the "close" directive: 2006-05-01 open Assets:US:HSBC:Checking ... 2012-06-10 close Assets:US:HSBC:Checking This directive is used in a couple of ways: - It barfs an error message if you have transactions after it for that account (it's a sanity check). - It helps filter which accounts are still active. This is especially useful as your ledger grows in time, as there are accounts that don't exist anymore that you just don't want to see in reports for years that follow their closure. At the moment, once an account is closed, you cannot reopen it. http://furius.ca/beancount/doc/cheatsheet > > FWIW, Beancount is always strict (there is no strict vs. non-strict > > option and I like it like that). > > I like that! I do it as an attempt to minimize the number of available options. -- --- 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.
