Thanks Kumar, this is what was expected.
However I still have the same error, and I do not understand what is
wrong... John, any idea?
$ cat /tmp/test.ledger
2012-01-31 * Buy Apples
Stocks 30 APPLES @ 12 USD
Unknown
2011-02-01 * Buy Apples
Stocks 10 APPLES @ 10 USD
Unknown
2011-02-02 * Buy Apples
Stocks 20 APPLES @ 11 USD
Unknown
$ ledger --args-only --file=/tmp/test.ledger bal --lots "Account" -S
'lot_date(total) || date' -y "%Y-%m-%d"
While evaluating value expression:
(lot_date(total) | date)
^^^^^^^^^^^^^^^
While calling function 'lot_date 0':
Error: boost::bad_get: failed value get using boost::get
Thierry
On Tuesday, January 17, 2017 at 2:24:52 PM UTC+1, Kumar Appaiah wrote:
>
> On Mon, Jan 16, 2017 at 10:57:36AM -0800, thierry wrote:
> > Hi,
> >
> > I wanted to implement some kind of regress test file, not fully
> > documenting the option, but at least keeping trace of the syntax of
> the
> > command.
> >
> > I tried on my own ledger file the command:
> >
> > ledger bal --lots "Account" -f myfile.dat -S 'lot_date(total) ||
> date'
> > -y "%Y-%m-%d"
> >
> > But it is failing with :
> >
> > While evaluating value expression:
> > (lot_date(total) | date)
> > ^^^^^^^^^^^^^^^
> > While calling function 'lot_date 0':
> > Error: boost::bad_get: failed value get using boost::get
> >
> > Can somebody (maybe original poster Kumar Appaiah) provide me with
> some
> > anonymised test file?
>
> This?
>
> 2012-01-31 * Buy Apples
> Stocks 30 APPLES @ 12 USD
> Unknown
>
> 2011-02-01 * Buy Apples
> Stocks 10 APPLES @ 10 USD
> Unknown
>
> 2011-02-02 * Buy Apples
> Stocks 20 APPLES @ 11 USD
> Unknown
>
> Kumar
> --
> Kumar Appaiah
>
--
---
You received this message because you are subscribed to the Google Groups
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.