* Martin Blais <[email protected]> [2014-04-19 14:37]: > > 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.
I wouldn't go as far in saying that it defeats the purpose, but it's definitely a very manual process. I see two solutions: either ledger should implement a function for average cost, or there could be an external script that generates a transaction you can easily paste into your journal. In any case, I agree that this is the biggest weakness of ledger. While the core is very powerful and flexible, we need more business logic on top of it. > 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). Can you share how you're going to implement this feature and what other features does beancount have that ledger doesn't? -- Martin Michlmayr http://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]. For more options, visit https://groups.google.com/d/optout.
