reporting assets history

33 views
Skip to first unread message

thierry

unread,
Jan 1, 2010, 5:31:53 PM1/1/10
to Ledger
Hello,

I am trying to use the command report (for plotting with gnuplot) with
the below ledger file.
What I expect is one value for each month.
I do not understand why the "-M" option do not output one value per
month.
How can I reach my goal?
Thanks

Thierry

$ ledger -f test2.ledger -J -M -V reg ^Actif
1994/01/01 120000
2010/01/01 422000
$ cat test2.ledger
1994/01/01 Achat Rialto
Actif:Fixe:Rialto 2 Rialto
Actif:BNP -120000 €
Actif:BNP 120000 €
Revenu:Salaire -120000 €

P 1995/01/01 Rialto 70000 €
P 1996/01/01 Rialto 90000 €
P 1997/01/01 Rialto 90000 €
P 1998/01/01 Rialto 105000 €
P 1999/01/01 Rialto 110000 €
P 2000/01/01 Rialto 120000 €
P 2001/01/01 Rialto 130000 €
P 2002/01/01 Rialto 140000 €
P 2003/01/01 Rialto 150000 €
P 2004/01/01 Rialto 160000 €
P 2005/01/01 Rialto 170000 €
P 2006/01/01 Rialto 180000 €
P 2007/01/01 Rialto 190000 €
P 2008/01/01 Rialto 200000 €
P 2009/01/01 Rialto 210000 €
P 2010/01/01 Rialto 211000 €

John Wiegley

unread,
Jan 1, 2010, 7:23:36 PM1/1/10
to ledge...@googlegroups.com
On Jan 1, 2010, at 5:31 PM, thierry wrote:

> $ ledger -f test2.ledger -J -M -V reg ^Actif
> 1994/01/01 120000
> 2010/01/01 422000

I believe you may need -j, not -J (which is for balance reports).

John

Thierry Daucourt

unread,
Jan 1, 2010, 8:24:10 PM1/1/10
to ledge...@googlegroups.com
I did try with ldeger v2 and ledger v3, but I am unable to get one value by month. Any help appreciated.

Thierry

$ ledger -f test2.ledger -j -M -V reg ^Actif
1994/01/01 120000
2010/01/02 302000
$ ledger3 -f test2.ledger -j -M -V reg ^Actif
1994-01-01 120000
2010-01-02 302000

$ ledger -v
Ledger 2.6.2, the command-line accounting tool
$ ledger3 -v
Ledger master-0-ge3c8b91, the command-line accounting tool

John Wiegley

unread,
Jan 1, 2010, 9:18:18 PM1/1/10
to ledge...@googlegroups.com
On Jan 1, 2010, at 8:24 PM, Thierry Daucourt wrote:

> I did try with ldeger v2 and ledger v3, but I am unable to get one value by month. Any help appreciated.

Hrm, is there a way to send me a bit of sample data? You can use "ledger print --anon" with Ledger3 to create an anonymized data file from your own data.

I won't have time to examine the problem for another week or two yet, but then I hope to get back into Ledger bug fixing full swing.

Thanks, John

Thierry Daucourt

unread,
Jan 2, 2010, 3:47:48 PM1/2/10
to ledge...@googlegroups.com
On Sat, Jan 2, 2010 at 3:18 AM, John Wiegley <jwie...@gmail.com> wrote:
On Jan 1, 2010, at 8:24 PM, Thierry Daucourt wrote:

> I did try with ldeger v2 and ledger v3, but I am unable to get one value by month. Any help appreciated.

Hrm, is there a way to send me a bit of sample data?  You can use "ledger print --anon" with Ledger3 to create an anonymized data file from your own data.

I extracted the relevant transactions and commodity history in one ledger file (already provided in first post, here it is again)
What I expect is that gnuplot do a plot of all historic value of the commodity.


$ cat test2.ledger
1994/01/01 Achat Rialto
       Actif:Fixe:Rialto       2 Rialto
       Actif:BNP              -120000 €
       Actif:BNP               120000 €
       Revenu:Salaire         -120000 €

P 1995/01/01 Rialto 70000 €
P 1996/01/01 Rialto 90000 €
P 1997/01/01 Rialto 90000 €
P 1998/01/01 Rialto 105000 €
P 1999/01/01 Rialto 110000 €
P 2000/01/01 Rialto 120000 €
P 2001/01/01 Rialto 130000 €
P 2002/01/01 Rialto 140000 €
P 2003/01/01 Rialto 150000 €
P 2004/01/01 Rialto 160000 €
P 2005/01/01 Rialto 170000 €
P 2006/01/01 Rialto 180000 €
P 2007/01/01 Rialto 190000 €
P 2008/01/01 Rialto 200000 €
P 2009/01/01 Rialto 210000 €
P 2010/01/01 Rialto 211000 €
 
I won't have time to examine the problem for another week or two yet, but then I hope to get back into Ledger bug fixing full swing.

Ok, thanks
 

Thanks, John

thierry

unread,
Feb 27, 2010, 5:36:18 PM2/27/10
to Ledger
Hello John, did you find any time to work on this one? Is it on your
todo list?
I want to use the "one value by month" to be able to produce graphs
with gnuplot that would show the trend line of what I have in
portfolio. Is there any other way to plot value of a portfolio?
In my example there is one transcation in ledger file, but many values
in pricesdb file.
Thanks
Thierry

On Jan 2, 9:47 pm, Thierry Daucourt <thierry.dauco...@free.fr> wrote:

John Wiegley

unread,
May 28, 2010, 2:53:03 AM5/28/10
to ledge...@googlegroups.com
On Feb 27, 2010, at 3:36 PM, thierry wrote:

> Hello John, did you find any time to work on this one? Is it on your
> todo list?

It's bug #199 now. :) I'll make this top priority now.

http://newartisans.com/bugzilla/show_bug.cgi?id=199

John

Reply all
Reply to author
Forward
0 new messages