News for hackers. Stuff that matters.

k_marussy

Re:Plain Text Accounting on Tuesday January 12, 2021 @10:53AM (#25748488)
You can easily create any kind of abstraction with beancount's programming interface [1]. I find it very comfortable, because I can manipulate the data structure directly (and not just the plain text as in e.g. vim).

For example, here is a plugin that I wrote to "delay" a posting of a transaction to another date via an intermediate ("transfer") account [2] and its tests [3] that solves a problem pretty similar to yours (I should someday package my plugins properly and maybe put them on PyPI, but I haven't had the time yet). The beancount documentations also has a list of existing published plugins [4].

[1]: https://beancount.github.io/docs/beancount_scripting_plugins...

[2]: https://linx.marussy.com/selif/v31rtbi5.py

[3]: https://linx.marussy.com/selif/tpwlujdk.py

[4]: https://beancount.github.io/docs/external_contributions.html