I love it!

On Thu, Mar 18, 2021, 15:49 Di Weng <mystery...@gmail.com> wrote:

> Hi everyone!
>
> I made a small plugin for checking balances against the simple expressions
> combining multiple accounts. Here are a few examples:
>
> ```
> plugin "beancount_balexpr.balexpr"
>
> 1990-01-01 open Assets:A USD
> 1990-01-01 open Assets:B USD
> 1990-01-01 open Equity:OpenBalance USD
> 1991-01-01 pad Assets:A Equity:OpenBalance
> 1991-01-01 pad Assets:B Equity:OpenBalance
> 1991-01-02 balance Assets:A 213.00 USD
> 1991-01-02 balance Assets:B 264.00 USD
>
> 1991-01-03 custom "balexpr" "Assets:A+Assets:B"               477.00 USD
> 1991-01-03 custom "balexpr" "Assets:A+200.00"                 413.00 USD
> 1991-01-03 custom "balexpr" "Assets:B*(Assets:A+200.00)"   109032.00 USD
> 1991-01-03 custom "balexpr" "Assets:A-Assets:B"               -51.00 USD
> 1991-01-03 custom "balexpr" "Assets:A*Assets:B"             56232.00 USD
> 1991-01-03 custom "balexpr" "Assets:A/Assets:B"                 0.81 USD
> 1991-01-03 custom "balexpr" "Assets:A+Assets:A*Assets:B"    56445.00 USD
> 1991-01-03 custom "balexpr" "(Assets:A+Assets:A)*Assets:B" 112464.00 USD
> ```
>
> I found it particularly useful when a credit card is separated into
> multiple accounts: `Liabilities:CreditCard`, `Liabilities:Due:CreditCard`,
> and `Liabilities:Installment:CreditCard`. In this way I can quickly tell
> how much is due for all credit cards in this month by checking
> `Liabilities:Due` in Fava. However, obtaining the value of
> `Liabilities:CreditCard` from my bank apps requires some manual
> calculation, so with this plugin I can easily accumulate these three
> accounts and check against the total credit card debt.
>
> In case you're interested, here is the project homepage:
> https://github.com/w1ndy/beancount_balexpr
>
> Cheers,
> Di
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/beancount/cdcf2cc7-8061-4f69-ae6a-c82564463652n%40googlegroups.com
> <https://groups.google.com/d/msgid/beancount/cdcf2cc7-8061-4f69-ae6a-c82564463652n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beancount/CAK21%2BhN2q1zCVtsuHKq8Av-KOyjh1Q%2B83FxvmXchsJ9VxZRoXg%40mail.gmail.com.

Reply via email to