Hello,

I think, the question of where ledger gets it is answered by this:

$ ledger reg -f list.ldg --revalued -X '$' -w

18-Dec-31 Opening Balances                   Assets:Stocks
                        $1000                $1000

                                             Equity:Opening Balances
                        $-1000                    0

19-Feb-01 Commodities revalued               <Revalued>
                          $80                  $80

19-Feb-02 Broker                             Assets:Stocks
                        $-540                $-460

                                             Assets:Checking
                          $540                  $80

19-Feb-10 Commodities revalued               <Revalued>
                          $-50                  $30

19-Feb-10 Broker                             Assets:Stocks
                          $490                 $520

                                             Assets:Checking
                        $-490                  $30

19-Mar-01 Commodities revalued               <Revalued>
                          $70                 $100


It seems to me it is the gains are the sum of the positive, while the
losses the negative revaluations.

What I couldn't wrap my head around is this:

MAC-0073934:Private f7745312$ ledger reg -f list.ldg --lot-prices -w

18-Dec-31 Opening Balances                   Assets:Stocks
                2 AAPL {$500}        2 AAPL {$500}

                                             Equity:Opening Balances
                        $-1000               $-1000


                                      2 AAPL {$500}

19-Feb-02 Broker                             Assets:Stocks
                -1 AAPL {$540}               $-1000


                                      2 AAPL {$500}


                                    -1 AAPL {$540}

                                             Assets:Checking
                          $540                $-460


                                      2 AAPL {$500}


                                    -1 AAPL {$540}

19-Feb-10 Broker                             Assets:Stocks
                1 AAPL {$490}                $-460


                                      1 AAPL {$490}


                                      2 AAPL {$500}


                                    -1 AAPL {$540}

                                             Assets:Checking
                        $-490                $-950


                                      1 AAPL {$490}


                                      2 AAPL {$500}


                                    -1 AAPL {$540}
Does that mean, ledger is unable to decide which one I really sold? Or am I
missing the point of the whole lot-pricing system?

Regards,
Dan

On Fri, 29 Mar 2019 at 06:28, Martin Michlmayr <[email protected]> wrote:

> * Richard Lawrence <[email protected]> [2019-03-22 13:10]:
> > I never got a reply, so since it's possible there's a bug here, I
> > thought I would bump this message.  Does anyone have any insights about
> > my Example 3?
>
> I think we need John to comment on this.  It certainly looks incorrect
> to me.
> --
> Martin Michlmayr
> https://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.
>

-- 

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