On Fri, Jun 20, 2014 at 8:50 AM, Martin Michlmayr <[email protected]> wrote:

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

That's indeed incorrect.
You don't have the assets anymore, you surely don't want them to show up on
the balance sheet.



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€


What I think has been confusing some people is that the 120E and 30E values
above are [correctly] ignored (with your patch).

They are going to be ignored, other than for adding an entry to the price
DB, right?
If not, how are they going to be used?

-- 

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