This is the input file "/tmp/a":
plugin "beancount.plugins.auto_accounts"
2017-02-10 * "Contribution"
Assets:Vanguard:401k:FUNDA 12.184 FUNDA {32.04 USD}
Assets:Vanguard:401k:Cash -390.37536 USD
2017-02-23 * "Exchange"
Assets:Vanguard:401k:FUNDA -12.184 FUNDA {32.53 USD}
Assets:Vanguard:401k:FUNDB 12.188 FUNDB {32.52 USD}
Then I run "bean-doctor context /tmp/a 5":
Hash:8960232d31fba5113ed6802ab12d5f44
Location: /tmp/a:5
------------ Balances before transaction
------------ Transaction
2017-02-23 * "Exchange"
------------ Balances after transaction
You can see how the two postings of this transaction have disappeared. I've
done some debugging, and "entry.postings" is actually empty.
On Sun, Nov 4, 2018 at 3:13 PM Martin Blais <[email protected]> wrote:
> I don't have enough information from your description to solve the problem.
> That transaction should never have zero postings.
> Run bean-doctor context on it and share the output.
>
>
>
> On Sun, Nov 4, 2018 at 5:45 PM Lluís Pàmies i Juárez <[email protected]>
> wrote:
>
>> Here is my problem. I modified the "auto_account" plugin to open with
>> "NONE" booking all the subaccounts in my Assets:Vanguard:401k. However, I
>> noticed that this thing doesn't quite work, because the loader module runs
>> booking.book() before run_transformations(), and transactions like this one
>> get transformed to having zero postings:
>>
>> 2017-02-23 * "Exchange"
>> Assets:Vanguard:401k:FUNDA -12.184 FUNDA {32.53 USD}
>> Assets:Vanguard:401k:FUNDB 12.188 FUNDB {32.52 USD}
>>
>>
>> For the small example I'm working with, I can invert the order of these
>> two operations and everything seems to work. Is there any reason why these
>> two operations are executed in this order? Am I going to have other things
>> breaking down the road? and if so, what is the right way to have "NONE" for
>> a bunch of subaccounts, without having to open all of them manually?
>>
>> --
>> Lluís Pàmies i Juárez
>> http://lluis.pamies.cat
>>
>> --
>> 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 post to this group, send email to [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/beancount/CAKD2hyHpFsppu3axQcaBXNUyuWL1SbT-RdaYF%3DNsQe7nV5dAcA%40mail.gmail.com
>> <https://groups.google.com/d/msgid/beancount/CAKD2hyHpFsppu3axQcaBXNUyuWL1SbT-RdaYF%3DNsQe7nV5dAcA%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> 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 post to this group, send email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/beancount/CAK21%2BhMpnGX_umg243Be4Dqy5C_1c13Y4%2BRk81yHC0kSKNuoAg%40mail.gmail.com
> <https://groups.google.com/d/msgid/beancount/CAK21%2BhMpnGX_umg243Be4Dqy5C_1c13Y4%2BRk81yHC0kSKNuoAg%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
--
Lluís Pàmies i Juárez
http://lluis.pamies.cat
--
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 post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/beancount/CAKD2hyF_%2BhssB2JOhbL%2BMVATekxhChDoF7s3JdaBkw4Dm-TRNg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.