On Fri, Oct 14, 2016 at 4:58 PM, <[email protected]> wrote:
> Hi,
>
> Thank you for writing beancount as well as exellent documentation in terms
> of introduction to accounting and beancount as a software package. I have
> read several of them like Getting Started Guide, Trading with Beancount,
> Cookbook. I still have a few questions as I'm coming to grips with using
> the software effectively.
>
> Is there a way to define default currency so I don't have to enter it
> beside a very large portion (over 50%) of entries?
>
Beancount does not have a concept of "default currency".
When selling stocks, is there a quick way to generate credit entries for
> the stocks with their book vaule? For example if I purchase a stock 10
> times, 20 stocks at a time, when I want to record the sale of 181 units I
> need to track down all previous purchases to figure out book value of each,
> and type 10 with book value in {}. What's the quickest way to make this
> type of entry? If there's an "automatic" way to express this in beancount
> language assume I don't care how stocks are picked - LIFO or FIFO.
>
Yes; see the booking_algorithm to FULL and make the default booking method
on those accounts to e.g. "FIFO". Like this:
option "booking_algorithm" "FULL"
...
2015-01-01 open Assets:JTrade:MSFT MSFT "FIFO"
The new, "FULL" booking algorithm (as opposed to the older "SIMPLE",
inferior one) will become the default at some point hopefully soon (I
started to make that happen earlier this week but I still need to port a
number of unit tests over to it).
> I need to calculate adjusted cost base in some cases when selling stock.
>
"Adjusted" is a heavily overloaded term. Could you be more specific?
> Does anyone have any suggestions on the most effective way to do ths? For
> example can you help me write a query/report to generate book value for
> each purchase trade, since the last time stock count was 0. The reason I
> had 0 in there is for example if I purchase 5 stock, sell 5 stock, purchase
> 10 stock, then another 10. I'm only interested in the last 2 transactions
> for this calculation, the fact that I previously had 5 stock at some price
> is not relevant to current ACB calculation.
>
If you had this pattern, after the sale of 5 you'd have an empty inventory.
Sales further on could only match on more recent purchases.
Tell us what ACB calculation you'd expect and we can help.
Once the booking_algorithm will be "FULL" by default I plan to
automatically add metadata to link buy/sell pairs so you can easily produce
lists of trades by any period.
Thank you.
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Beancount" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/beancount/cb10e18b-6711-48e6-b301-5ebe8131080f%40googlegroups.com
> <https://groups.google.com/d/msgid/beancount/cb10e18b-6711-48e6-b301-5ebe8131080f%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
--
You received this message because you are subscribed to the Google Groups
"Beancount" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/beancount/CAK21%2BhOvXpQ%2BAq%3DES_Qq9G0dix2C96noi5oDHUSrRQokABz%2B5Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.