How new? I'm running Beancount 2.2.0, per `bean-check --version`.

If I try to use { # 123 USD} instead of {{123 USD}}, bean-check barfs with 
"Too many missing numbers for currency group 'USD'" for each instance.

(And the beancount plugin for Sublime Text doesn't recognize this as valid 
syntax, highlighting the # character in an unhappy pink shade. So I'm 
guessing this is pretty new.)


On Friday, January 18, 2019 at 11:50:16 PM UTC-6, Martin Blais wrote:
>
> 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] 
> <javascript:> 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}}
>>
>> 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] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> 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/3c1822fc-c4ea-4612-905c-7ef7db53738e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to