On Fri, Apr 18, 2014 at 7:14 PM, Martin Michlmayr <[email protected]> wrote:

>
> In order to calculate the average cost, you need to create a
> transaction which removes all existing lots (make sure to get
> cost and date right) and adds the correct number of the commodity at
> the total price:
>
> 2014-03-02 * Calculate average cost of AAA
>     Assets:Investments          -1 AAA {10.00 GBP} [2014-02-01] @ 10.00 GBP
>     Assets:Investments          -1 AAA {20.00 GBP} [2014-03-01] @ 20.00 GBP
>     Assets:Investments                      2 AAA @@ 30.00 GBP
>

That defeats the purpose of using an accounting system: you're having to
calculate the sum yourself.

Related: For the next iteration of Beancount, I'm adding a feature to book
shares with the avg. cost method (in case that's what you're trying to do).

-- 

--- 
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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to