There's a newer syntax for this
{ # total amount}
Instead of
{{ total amount }}
Reason is it can be combined with per unit amount



On Sat, Jan 19, 2019, 02:53 Martin Michlmayr <[email protected] wrote:

> * Jeff Brantley <[email protected]> [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}}
>
> 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
>
> --
> 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/20190118155252.4ypymxfuzbdowgz2%40jirafa.cyrius.com
> .
> 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%2BhP83uxuWvE07C4hiNuuDnKckU6wk-KV-RH6791gNKET6Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to