Re: document about the new booking functionnality

2016-11-20 Thread Martin Blais
I've added an error for this: https://bitbucket.org/blais/beancount/commits/ccb1eb6a62f74288d1e4756f0bab8242c45edcf1 On Sun, Nov 20, 2016 at 1:02 PM, Martin Blais wrote: > Ha! Yes, I understand. > You're using the older "SIMPLE" booking method. > In this method, the inference of cost was never

Re: document about the new booking functionnality

2016-11-20 Thread Martin Blais
Ha! Yes, I understand. You're using the older "SIMPLE" booking method. In this method, the inference of cost was never supported. This is why it fails. What's adding to the confusion here is that at some point I had to make grammar changes that made this syntax valid for the new booking algorithm

Re: document about the new booking functionnality

2016-11-19 Thread francois PEGORY
i used the version 2.0b13 install with pip regards 2016-11-19 23:51 GMT+01:00 Martin Blais : > Works for me (no error at all). > Which version are you using? > > > On Sat, Nov 19, 2016 at 5:45 PM, francois PEGORY > wrote: > >> ok i test it and maybe i don't use it right. >> but if i use this: >

Re: document about the new booking functionnality

2016-11-19 Thread Martin Blais
Works for me (no error at all). Which version are you using? On Sat, Nov 19, 2016 at 5:45 PM, francois PEGORY wrote: > ok i test it and maybe i don't use it right. > but if i use this: > option "operating_currency" "GBP" > option "booking_method" "FIFO" > 1998-01-01 commodity GBP > 1998-01-01 c

Re: document about the new booking functionnality

2016-11-19 Thread francois PEGORY
ok i test it and maybe i don't use it right. but if i use this: option "operating_currency" "GBP" option "booking_method" "FIFO" 1998-01-01 commodity GBP 1998-01-01 commodity WIDGET 1999-02-01 open Assets:Inventory 1999-02-01 open Assets:Cash 1999-02-01 open Assets:Pnl 2014-10-15 * "buy widgets"

Re: document about the new booking functionnality

2016-11-16 Thread Martin Blais
Not yet. NONE (i.e., like Ledger), STRICT, FIFO, and LIFO are supported. AVERAGE is a tougher nut to crack and will come along later. In the meantime, I use (and recommend using) NONE for those accounts. Like Ledger, calculating the total number of units and the total cost basis works just fine th

Re: document about the new booking functionnality

2016-11-16 Thread Martin Blais
It's basically an improvement on this: http://furius.ca/beancount/doc/proposal-booking Minus the average cost booking method, which is not there yet (though FIFO and LIFO are). I haven't had time to document the changes yet, but whatever used to work should just work (*). There's only one very spe

Re: document about the new booking functionnality

2016-11-16 Thread Stefano Zacchiroli
On Tue, Nov 15, 2016 at 11:41:37PM +0100, francois PEGORY wrote: > i have seen that the new booking functionality is now released. Does that include booking at average cost or is that still unreleased? -- Stefano Zacchiroli . z...@upsilon.cc . upsilon.cc/zack . . o . . . o . o Computer Science P