Use
bean-query <filename> print
to view what the padding directive actually does

On Thu, Nov 28, 2019 at 4:55 AM nug get <[email protected]> wrote:
>
> with the following minimal example i get an error on balancing the parent 
> account:
>
> 2000-01-01 open Assets:Parent CHF
> 2000-01-01 open Assets:Parent:Child CHF
> 2000-01-01 open Equity:Opening-Balance CHF
> 2000-01-01 open Expenses:Expenses CHF
>
> ;get random amounts on the accounts
> 2010-01-01 * "initialize"
>     Assets:Parent:Child 20 CHF
>     Assets:Parent 1 CHF
>     Equity:Opening-Balance
>
> ; pad child and parent
> 2010-01-02 pad Assets:Parent:Child Expenses:Expenses
> 2010-01-03 balance Assets:Parent:Child 0 CHF
>
> 2010-01-04 pad Assets:Parent Expenses:Expenses
> 2010-01-05 balance Assets:Parent 0 CHF
>
>
> $ bean-check testpad.bean
> >testpad.bean:17:      Balance failed for 'Assets:Parent': expected 0 CHF != 
> >accumulated -20 CHF (20 too little)
> >
> >   2010-01-05 balance Assets:Parent                                   0 CHF
>
> I would have expected the parent account to be padded to zero with no error.
> removing the pad / balance of the child makes the parent balance correctly.
> I do not understand, why does the balancing of the parent account fail?
> How would I pad both accounts correctly?
> Thanks!
>
>
>
> --
> 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/1312bcca-1a78-470f-be0a-4d4a59bebdae%40googlegroups.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%2BhNcmNHOL77aiuCEYKFBLx6vQ2i-_QSjE9LPsdC6y%3DJMWg%40mail.gmail.com.

Reply via email to