Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/daniel-wells/beancount_checkclosed

A beancount plugin that automatically inserts a 0 balance check for closed balance sheet accounts
https://github.com/daniel-wells/beancount_checkclosed

beancount

Last synced: 12 days ago
JSON representation

A beancount plugin that automatically inserts a 0 balance check for closed balance sheet accounts

Lists

README

        

![example workflow](https://github.com/daniel-wells/beancount_checkclosed/actions/workflows/python-app.yml/badge.svg)

A [beancount](https://beancount.github.io/docs/) plugin that automatically inserts a 0 balance check for closed balance sheet accounts.

A closing directive e.g.
```
2015-04-23 close Assets:Checking
```
will ensure transactions can not involve this account after that date.
However it will not check that the balance is 0 after closing.
This is what this plugin does. It's equivalent to adding:
```
2015-04-24 balance Assets:Checking 0 GBP
```
for all the commodities of that account.

There is a similarly named plugin within beancount ['check_closing'](https://beancount.github.io/docs/api_reference/beancount.plugins.html#beancount.plugins.check_closing)
but that plugin requires you to add metadata to the specific closing transaction.

Installation:
```
pip install git+https://github.com/daniel-wells/beancount_checkclosed.git
```

Usage:

Add the following line to your ledger file:
```
plugin "beancount_checkclosed.check_closed"
```