4 ms·
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 structur
by k_marussy 6y ago
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.html https://beancount.github.io/docs/beancount_scripting_plugins...
[2]: https://linx.marussy.com/selif/v31rtbi5.py https://linx.marussy.com/selif/v31rtbi5.py
[3]: https://linx.marussy.com/selif/tpwlujdk.py https://linx.marussy.com/selif/tpwlujdk.py
[4]: https://beancount.github.io/docs/external_contributions.html https://beancount.github.io/docs/external_contributions.html