On Thursday, June 19, 2014 12:30:37 AM UTC+2, Jostein Berntsen wrote:
>
> On 11.06.14,22:10, Christophe Schockaert wrote:
> > Hi all,
> >
>
> ....
>
> >
> > So, what's the status for this question ?
> >
> > 2) The left-over for "Share B" shows 260€, which does not render the
> fact that
> > I still have 3 plain stocks, which would at least value 300€ (from
> their
> > initial value), or 360€ for the current value.
> >
> > In the documentation example, everything was sold at one time, so we are
> not in
> > the same situation.
> >
> > 3) I would like to have a view of the left-over value of the stocks, at
> time
> > "t". In "case A", the total still show "800€" which is the initial
> value,
> > and in "case B", I see 560€, which reflects the "800€-240€", but not
> the
> > sum of the 10 ShareA and the 3 remaining ShareB.
> >
> > I understand that it shows what it has to show, but I would like to know
> how to
> > set things up, so that I can see what I described there.
> >
> > I also tried to play with lines like:
> > P 2014-01-01 00:00:00 ShareB 100€
> > P 2014-04-01 00:00:00 ShareB 120€
> >
> > In that case, I can toggle the display of share or values with the
> option "-V",
> > which gets close to what I want.
> >
> > However, I run into other issues, mainly that it only uses the last
> value, even
> > for the initial value, and if I mix the notation in "plain shares" (-2
> ShareB)
> > and the notation with attributed values (-2 ShareB {100€} @ 120€), they
> don't
> > get along very well.
> >
> > So, I prefered to narrow things down and start with my first two
> examples.
> >
> > Thank you for having the patience to read that all way through.
> >
> > Do you have any clues or advices so I can get a clear view of stocks in
> my
> > files, in accountancy terms, and with ledger in particular ?
> >
> > Any help will be appreciated,
> > Thanks in advance,
> >
> > Christophe S.
>
> Can you try this way to do it?
>
> dat file:
>
> ; Initial openings at 2014/01/012014-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€
> Assets:SoldStocks:SoldB 2 ShareB @ 120€
> Income:Investment Gains
>
> ; Selling 2 ShareB at 2014/04/01
> 2014-04-02 Selling 4 ShareA
> Assets:Investments:Stocks:ShareA -4 ShareA @ 20€
> Assets:SoldStocks:SoldA 4 ShareA @ 30€
> Income:Investment Gains
>
> Output:
>
> jostein:~/Documents/Finans/ledger/testing$ ledger -B bal -f testshares.dat
> 5880,00 € Assets
> 5000,00 € Bank:Check Account
> 520,00 € Investments:Stocks
> 220,00 € ShareA
> 300,00 € ShareB
> 360,00 € SoldStocks
> 120,00 € SoldA
> 240,00 € SoldB
> -5800,00 € Equity:Opening Balance
> -800,00 € Initial Investments
> -80,00 € Income:Investment Gains
> --------------------
> 0
>
> jostein:~/Documents/Finans/ledger/testing$ ledger -V bal -f testshares.dat
> 6050,00 € Assets
> 5000,00 € Bank:Check Account
> 690,00 € Investments:Stocks
> 330,00 € ShareA
> 360,00 € ShareB
> 360,00 € SoldStocks
> 120,00 € SoldA
> 240,00 € SoldB
> -5800,00 € Equity:Opening Balance
> -800,00 € Initial Investments
> -80,00 € Income:Investment Gains
> --------------------
> 170,00 €
>
>
>
>
Martin: Does this seem right for you?
Jostein
--
---
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.