Hi all
anyone has the right tip for me?

I made a plugin here
<https://github.com/Dr-Nuke/drnuke-bean/blob/master/src/drnukebean/plugins/spreading.py>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 [image:
image.png], the open-statements seem to get lost, causing lots of Errors
[image: image.png][image: image.png]
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

-- 
You received this message because you are subscribed to the Google Groups 
"Beancount" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beancount/CAHUjHhH8658i28zdx2MupyYhFSbUoL-8s3MCZq5yYXnQYj6z%3Dw%40mail.gmail.com.

Reply via email to