On Fri, 15 Oct 2021, at 23:57, John Lee wrote:
> 2015-01-01 * Buy VIFSX
> Assets:Broker 100 VIFSX
> Assets:Cash $-1000
>
> 2015-01-02 * Adjustment
> Assets:Broker 10 VIFSX
> Equity:Adjustments
>
>
> Problems:
>
> 1. This prints 110 VIFSX as I expected:
>
> ledger -f test.ledger b Assets:Broker
>
> However this prints 100 VIFSX:
>
> ledger -f test.ledger b Allocation
>
> Why don't they both print 110 VIFSX?
>
>
> 2. If I change that file to remove the explicit Assets:Cash dollar
> amount $-1000 (so the elided value gets filled in by ledger as a VIFSX
> commodity amount), this prints nothing:
>
> ledger -f test.ledger b Allocation
>
> Why doesn't it print 110 VIFSX? It seems again to be related to the
> elided amount -- if I add "-10 VIFSX" explicitly to the second
> transaction, it does print 110 VIFSX.
Sorry, I intended to tack on that last sentence above in the context of problem 1, not problem 2.