Custom fields in options_map?

60 views
Skip to first unread message

James Edington Administrator

unread,
Nov 23, 2024, 2:47:12 PM11/23/24
to Beancount
I'm trying to make a plugin to enable temporal settlement, where different legs of a transaction occur at different dates (to cover the major use-cases of “money is in clearing, you lost time value”, “merchants billed you very late, you gained time value”, etc.)

It's going very well so far, except that I can't figure out how to cause my plugin to ingest custom values for options_map; Beancount always complains that my custom option is an “invalid option”. Does anyone know how to declare those?


Timothy Jesionowski

unread,
Nov 23, 2024, 2:54:35 PM11/23/24
to bean...@googlegroups.com

How are you quantifying time value? I can understand using a hypothetically inviolable unit of account like gold or CPI, but you're talking about accounting with an explicit discounting rate attached to things.

Of course that's assuming you're trying to account for opportunity cost. If you're "merely" trying to get a more natural way to represent value-in-transit than the usual pairs of transactions on virtual Payables/Receivables accounts then I wonder what benefit you're expecting beyond what you get from links.


--
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 beancount+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/beancount/53649bb5-390d-4608-b8d2-30514478db03n%40googlegroups.com.

Timothy Jesionowski

unread,
Nov 23, 2024, 2:56:48 PM11/23/24
to bean...@googlegroups.com

A bit more to the point, I can understand wanting to have VUSD (Virtual USD) income expenses just to express an opinion. Is that vaguely what you're trying to do?

Martin Blais

unread,
Nov 23, 2024, 2:59:14 PM11/23/24
to bean...@googlegroups.com

Red S

unread,
Nov 23, 2024, 3:06:55 PM11/23/24
to Beancount

The effective_date plugin does what you want, I believe. If not, you can find code relating to options_map in that repo.

Reply all
Reply to author
Forward
0 new messages