* Tobias Pfeiffer <[email protected]> [2022-09-02 08:24]:
> The following works fine, it seems we need to be explicit about both
> lot prices and dates when computing the average:

Yes, you always have to use the same details.

If a lot date is specified, you have to specify the lot date.
If a lot note is specified, you have to specify the lot note.

As I mentioned before, ledger allows you to remove lots that don't
exist, so it's easy to get this wrong.  "bal --lots" is your friend.
You've figured this out in the meantime.

>   2004/05/01 Stock purchase
>     Assets:Broker          10 ETF @ 1,000 JPY
>     Assets:Savings    -10,000 JPY
> 
>   2004/06/01 Stock purchase
>     Assets:Broker          20 ETF @ 1,300 JPY
>     Assets:Savings    -26,000 JPY
> 
>   2004/07/01 Re-evaluate
>     Assets:Broker    -10 ETF {1,000 JPY} [2004/05/01] @ 1,000 JPY
>     Assets:Broker    -20 ETF {1,300 JPY} [2004/06/01] @ 1,300 JPY

Yes, unfortunately you have to specify it manually.  But this is
correct.

-- 
Martin Michlmayr
https://www.cyrius.com/

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" 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/ledger-cli/YxGt8trEecPVcJHd%40jirafa.cyrius.com.

Reply via email to