Thanks, this is exactly what I needed to know.
On Friday, January 18, 2019 at 9:52:58 AM UTC-6, Martin Michlmayr wrote:
>
> * Jeff Brantley <[email protected] <javascript:>> [2019-01-18 07:29]:
> > 1. Is it possible to have beancount infer the unit price, or do I
> > need to provide it explicitly? One could imagine writing 123.456
> > HOOL {} @@ 789.10 USD
>
> You can write:
>
> Assets:Investments 123.456 HOOL {{789.10 USD}}
>
> I think this is missing from the Language Syntax document, but I do see
now that it's listed in the Syntax Cheat Sheet.
> beancount will covert from 789.10 USD to a per share price internally:
>
> 2019-01-18 * Bought 123.456 HOOL {6.39 USD}
> 2019-01-18 * Bought -789.100 USD
>
> > 2. The documentation sometimes shows a 2- or 3-tuple for the lot
> > definition, including date. Can an explicit date be given when the lot
> is
> > acquired, separate from the date of the transaction. That is, can I have
> an
> > Equity:Opening-Balance type entry with a transaction date of 2016-01-01
> > (when I started keeping books) and a lot date of, e.g., 2013-05-13
>
> Yes.
>
> 2016-01-01 * "Bought"
> Assets:Investments 123.456 HOOL {{789.10 USD, 2013-05-10}}
> Equity:Opening-Balance
>
> Okay, I found an example of explicitly dating the purchase in Trading with
Beancount, and eventually explicit wording about overriding the date in How
Inventories Work. It's listed in the Cheat Sheet as well. But again, I
can't find any reference to it in Language Syntax, which seems peculiar.
Anyhow, thanks for your help!
> --
> Martin Michlmayr
> https://www.cyrius.com/
>
--
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/4925fb26-a22b-4963-8900-1af496c6fbd0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.