Hi all
anyone has the right tip for me?
I made a plugin
here that takes any single expense or income transaction and spreads it out over a given time period. I.e. it converts my yearly vehicle insurance payment into monthly expenses, such that the effect on my net worth is smooth across 12 months.
This involves opening receivables and liabilities accounts, which the plugin does for me. This works well with Fava initially.
However when I modify some transactions in the source and reload fava

, the open-statements seem to get lost, causing lots of Errors


for exactly those accounts that had been opened by the plugin.
Restarting Fava resolves the issue until the next live file change.
Thanks for any hints how to make this work properly. Please Find cookbook examples
below.
Thanks,
nugget
add the plugin in you leger file with
plugin "drnukebean.plugins.spreading" "{'liability_acc_base': 'Assets:Receivables:'}"
and use it for a transaction
2021-12-28 * "insurance" "vehicle insurance 2022"
p_spreading_frequency: "M"
p_spreading_start: "2022-01-01"
p_spreading_times: "12"
Expenses:Insurance 100.00 CHF
Assets:Checkings