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: about 1 month ago
JSON representation
A beancount plugin that automatically inserts a 0 balance check for closed balance sheet accounts
- Host: GitHub
- URL: https://github.com/daniel-wells/beancount_checkclosed
- Owner: daniel-wells
- License: gpl-2.0
- Created: 2022-02-06T21:48:52.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-07T23:36:16.000Z (almost 2 years ago)
- Last Synced: 2024-08-02T06:14:49.744Z (4 months ago)
- Topics: beancount
- Language: Python
- Homepage:
- Size: 19.5 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-beancount - beancount-checkclosed - Automatically insert a 0 balance check for closed balance sheet accounts (Plugins / Misc)
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"
```