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 <[email protected]> wrote: > 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 > (where this type of interpolation is legal and works fine), so instead of > getting a syntax error, you're now getting this error, which incorrectly > seems to hint that automatically inferring the cost ought to work. It > should not. An more accurate reaction from Beancount would be to reject the > syntax. > > You should either: > > a) add an explicit cost to your augmenting postings > b) switch to the newer algorithm, e.g. option "booking_algorithm" "FULL" > > I'd recommend (b). > If you update from head (from the source code) that's the new default. > > I hope this helps, > > > On Sat, Nov 19, 2016 at 7:29 PM, francois PEGORY <[email protected]> > wrote: > >> i used the version 2.0b13 install with pip >> >> regards >> >> 2016-11-19 23:51 GMT+01:00 Martin Blais <[email protected]>: >> >>> Works for me (no error at all). >>> Which version are you using? >>> >>> >>> On Sat, Nov 19, 2016 at 5:45 PM, francois PEGORY <[email protected] >>> > 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 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" >>>> Assets:Inventory 10 WIDGET {} ; Price inferred to 8 GBP/widget >>>> Assets:Cash -80 GBP >>>> >>>> 2014-10-16 * "sell a widget" >>>> Assets:Cash 10 GBP >>>> Assets:Inventory -1 WIDGET {} ; >>>> Assets:Pnl >>>> >>>> >>>> and run bean-check. i get : >>>> /mnt/d/ledger/data/test_trading.ledger:8: Transaction does not >>>> balance: (-80 GBP, 10 WIDGET) >>>> >>>> 2014-10-15 * "buy widgets" >>>> Assets:Inventory 10 WIDGET >>>> Assets:Cash -80 GBP >>>> >>>> i don't understand why ? >>>> >>>> regards >>>> >>>> 2016-11-17 5:28 GMT+01:00 Martin Blais <[email protected]>: >>>> >>>>> 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 this way. It's just the specific list of lots that >>>>> is >>>>> all fakakta (and for non-taxable accounts this doesn't matter anyway). >>>>> >>>>> >>>>> >>>>> >>>>> On Wed, Nov 16, 2016 at 4:10 AM, Stefano Zacchiroli <[email protected]> >>>>> wrote: >>>>> >>>>>> 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 . [email protected] . upsilon.cc/zack . . o . . . o >>>>>> . o >>>>>> Computer Science Professor . CTO Software Heritage . . . . . o . . . >>>>>> o o >>>>>> Former Debian Project Leader . OSI Board Director . . . o o o . . . >>>>>> o . >>>>>> « the first rule of tautology club is the first rule of tautology >>>>>> club » >>>>>> >>>>>> -- >>>>>> 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/20161116091005.c >>>>>> kgmm5dnxqqejut7%40upsilon.cc. >>>>>> 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%2BhPdmcPKc >>>>> -BpSQDaG6Wv2ANzmBm4EmNx3OOgT3zFUJ7%2B7Q%40mail.gmail.com >>>>> <https://groups.google.com/d/msgid/beancount/CAK21%2BhPdmcPKc-BpSQDaG6Wv2ANzmBm4EmNx3OOgT3zFUJ7%2B7Q%40mail.gmail.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/ms >>>> gid/beancount/CALUWbLdoeDUc%2B0oHdfjh%3D_-N_M58nxoAoWzKR7WTB >>>> Z%2Bq2sq7Jw%40mail.gmail.com >>>> <https://groups.google.com/d/msgid/beancount/CALUWbLdoeDUc%2B0oHdfjh%3D_-N_M58nxoAoWzKR7WTBZ%2Bq2sq7Jw%40mail.gmail.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/ms >>> gid/beancount/CAK21%2BhPjK3Zd4cQK9OCjr7JhhWt9U4aHpnJEaRdj9oq >>> _ePt8jA%40mail.gmail.com >>> <https://groups.google.com/d/msgid/beancount/CAK21%2BhPjK3Zd4cQK9OCjr7JhhWt9U4aHpnJEaRdj9oq_ePt8jA%40mail.gmail.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/ms >> gid/beancount/CALUWbLftGZUEcs08Tv6%2BBvrQkJnfAkLQWbm1%3Ddxw1 >> nNkNhHMxg%40mail.gmail.com >> <https://groups.google.com/d/msgid/beancount/CALUWbLftGZUEcs08Tv6%2BBvrQkJnfAkLQWbm1%3Ddxw1nNkNhHMxg%40mail.gmail.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%2BhPg%2BWr4z4oe%2BCJnVzwFszojc7CgcgGs%3DkmoOvvsVJn5yA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
