* Jostein Berntsen <[email protected]> [2014-06-20 04:26]:
> > ; Selling 2 ShareB at 2014/04/01 
> > 2014-04-01 Selling 2 ShareB 
> >   Assets:Investments:Stocks:ShareB     -2 ShareB @ 100€ 
> >   Assets:SoldStocks:SoldB                    2 ShareB @ 120€ 
> >      Income:Investment Gains 
> >
> Martin: Does this seem right for you?

I'm not sure what Assets:SoldStocks:SoldB is for.  If you're selling
two stocks for cash, you get cash; but in your example, you still have
those 2 stocks as an asset:

ledger -f qq bal Assets:SoldStocks:SoldB
            2 ShareB  Assets:SoldStocks:SoldB

What you want is this:

; Initial openings at 2014/01/01
2014-01-01 Opening Balance
  Assets:Bank:Check Account                      5000,00 €
  Equity:Opening Balance

; Details of shares at 2014/01/01
;P 2014-01-01 00:00:00   ShareA 20€
;P 2014-01-01 00:00:00   ShareB 100€
2014-01-01 Details for shares
  Equity:Opening Balance:Initial Investments
  Assets:Investments:Stocks:ShareA    15 ShareA @ 20€
  Assets:Investments:Stocks:ShareB    5 ShareB @ 100€

; Selling 2 ShareB at 2014/04/01
2014-04-01 Selling 2 ShareB
  Assets:Investments:Stocks:ShareB     -2 ShareB {100€} @ 120€
  Assets:Cash                                   240€
  Income:Investment Gains                       -40€

; Selling 2 ShareB at 2014/04/01
2014-04-02 Selling 4 ShareA
  Assets:Investments:Stocks:ShareA     -4 ShareA {20€} @ 30€
  Assets:Cash                                   120€
  Income:Investment Gains                       -40€

-- 
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.

Reply via email to