Workarounds is what I was going to suggest.
Maybe the code should be changed to allow for a balance directive the day
after.
(Balance is defined at the start of day.)

Another idea would be to write a plugin that automatically checks that
inventories are empty - for all currencies - on closing, everywhere,
automatically.
That ought to exist and would be easy to write (and should be included in
beancount/plugins by default if you ask me).



On Sat, Nov 14, 2020 at 12:30 PM James Cook <[email protected]> wrote:

> This is a minor issue, easy to work around, but I'm wondering if I'm
> missing something.
>
> How should I assert that an account's balance was 0 after it closed?
> I'd like to be able to write
>
> 2020-11-09 close Liabilities:Scotiabank:Visa
> 2020-11-10 balance Liabilities:Scotiabank:Visa 0 CAD
>
> but beancount complains: "Invalid reference to inactive account
> 'Liabilities:Scotiabank:Visa'".
>
> I can't change the balance date to 2020-11-09 because I have a
> transaction on the closing date.
>
> I have worked around it with
>
> 2020-11-10 close Liabilities:Scotiabank:Visa
>   note: "Actually closed 2020-11-09."
> 2020-11-10 balance Liabilities:Scotiabank:Visa 0 CAD
>
> but that seems messy.
>
> James
>
> --
> 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/CAHpmPOAXYX0UCTQhq%2B5VVzOXWnw-n97Vp7%3D2WZ8DoU36g43jcw%40mail.gmail.com
> .
>

-- 
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/CAK21%2BhOYnkJ-PJhddtG38ay-L1Oy%3DxNhb921HNia1sSHaZ75dg%40mail.gmail.com.

Reply via email to