Re: Stock/Commodities fee posting positions and cost basis

2020-05-08 Thread John Wiegley
> "o" == o1bigtenor   writes:

o> A semantical question - - - - AIUI what you are referring to in the above
o> is a 'stock' not a 'commodity' - - - yes?

I guess I'm mixing Ledger terminology with market terminology. To Ledger,
everything is a commodity. But yes, in this particular case, the item we're
tracking is a stock.

John

-- 

--- 
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 ledger-cli+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ledger-cli/m2wo5mj7b6.fsf%40newartisans.com.


Re: Stock/Commodities fee posting positions and cost basis

2020-05-08 Thread o1bigtenor
On Thu, May 7, 2020 at 11:07 PM John Wiegley  wrote:
>
> > "JS" == Joel Swanson  writes:
>
> JS> Does posting order affect stock or commodity cost basis in Ledger?
>
> JS> Is that really the desired behavior, where changing the order of postings
> JS> changes the items for which ledger tracks lots? Does this have something
> JS> to do with which postings are considered primary and secondary in a
> JS> transaction with three or more postings?
>
> Yes, that is actually the reasoning. The first posting establishes the
> secondary commodity, while the second is the primary.
>
> You can avoid this confusing by not using the auto-calculation logic, and
> identifying your lots explicitly:
>
> 2004/05/01 Stock purchase
> Expenses:Broker:Commissions$19.95
> Assets:Broker 50 AAPL {$30.00} [2004/05/01] 
> () @ $30.00
> Assets:Broker  $-1,519.95
>
> If you use this fully elaborated lot specification everywhere, then you'll
> always know what Ledger is based its numbers on. Generally when I sell a
> commodity I just copy the details from the opening transaction.
>

A semantical question - - - - AIUI what you are referring to in the above is a
'stock' not a 'commodity' - - - yes?

Regards

-- 

--- 
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 ledger-cli+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ledger-cli/CAPpdf58Sce7aFoDS21Y0hMBTHgYVypig1Y%2BQbCpWxpMUYfde4Q%40mail.gmail.com.


Re: Newbie questions

2020-05-08 Thread Nikos Charonitakis
thanks, problem solved:
Assets:Stocks:stockname  stockname 200 @ EUR 20
i was writing previously:
Assets:stocks:stockname  200 @ EUR 20

Τη Παρασκευή, 8 Μαΐου 2020 - 3:40:57 π.μ. UTC+3, ο χρήστης Martin Michlmayr 
έγραψε:
>
> * Nikos Charonitakis > [2020-05-07 21:12]: 
> > I ll try to see what is wrong with my file because i set stock prices 
> with 
> > eg @ EUR 20 when i first recorded (opening balance) my assets, and after 
> > your reply i set at the end of my file 
> > P 7/5/2020 STOCK_NAME EUR 20 but even this does not change behaviour and 
> > ledger instists reporting stock quantity and no value. 
>
> Can you post a small testcase? 
>
> -- 
> 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 ledger-cli+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ledger-cli/b2ada326-37a3-4f17-88b8-ccab88de798f%40googlegroups.com.