Automatic Transactions

99 views
Skip to first unread message

da...@pathfinderfs.com

unread,
Jan 6, 2018, 1:31:34 AM1/6/18
to Beancount
The state of Hawaii imposes an excise tax on all business revenue which gets paid monthly. So every time I add an income/asset transaction pair, I would like beancount to automatically generate a calculated expense/liability transaction pair.

Then when the tax gets paid I record an asset/liability transaction pair.

I can do this with ledger. Does Beancount have something similar?

Thanks,
David

Martin Blais

unread,
Jan 6, 2018, 1:32:54 AM1/6/18
to Beancount
Yes; write a plugin.


--
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+unsubscribe@googlegroups.com.
To post to this group, send email to bean...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/95746097-12ef-490b-aac4-1f9dbb55562f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Martin Blais

unread,
Jan 6, 2018, 3:40:16 AM1/6/18
to Beancount
BTW, your plugin receives the entire stream of transactions.
You write a little bit of Python code to return a modified stream.
It's not as terse as Ledger's minilanguage for transformations, but much more flexible.

da...@pathfinderfs.com

unread,
Jan 6, 2018, 6:27:32 PM1/6/18
to Beancount
Thanks,

Is there any documentation on the entry/transaction data structure used in the plug-in or is it a read the source situation?

Martin Blais

unread,
Jan 6, 2018, 10:17:19 PM1/6/18
to Beancount

On Sat, Jan 6, 2018 at 6:27 PM, <da...@pathfinderfs.com> wrote:
Thanks,

Is there any documentation on the entry/transaction data structure used in the plug-in or is it a read the source situation?

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to bean...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages