Sort of single-entry output: is it possible?
The group you are posting to is a
Usenet group . Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
From:
Lifepillar <git... @lifepillar.com>
Date: Thu, 15 Nov 2012 13:24:04 +0100
Local: Thurs, Nov 15 2012 7:24 am
Subject: Sort of single-entry output: is it possible?
Hi,
before I start writing a script for the purpose, I'm wondering whether Ledger can do the following natively. Assume that each transaction contains exactly one Assets account. For instance:
2012/11/15 * MoneySucker
Expenses:Foo 40 bitcoins
Expenses:Baz 60 bitcoins
Assets:Credit Card
I'd like to produce a report like this:
"2012/11/15","MoneySucker","Assets:Credit Card","Expenses:Foo","40","bitcoins"
"2012/11/15","MoneySucker","Assets:Credit Card","Expenses:Baz","40","bitcoins"
Is there a way to do this, maybe using metadata and things like --pivot?
Life
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
"John Wiegley" <jo... @newartisans.com>
Date: Thu, 15 Nov 2012 10:49:09 -0600
Local: Thurs, Nov 15 2012 11:49 am
Subject: Re: Sort of single-entry output: is it possible?
>>>>> Lifepillar <git
... @lifepillar.com> writes:
> I'd like to produce a report like this:
> "2012/11/15","MoneySucker","Assets:Credit
> Card","Expenses:Foo","40","bitcoins"
> "2012/11/15","MoneySucker","Assets:Credit
> Card","Expenses:Baz","40","bitcoins"
> Is there a way to do this, maybe using metadata and things like --pivot?
I know of no way to achieve this, although it would be a perfect task for the
Python bridge.
John
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
Lifepillar <git... @lifepillar.com>
Date: Thu, 15 Nov 2012 23:58:43 +0100
Local: Thurs, Nov 15 2012 5:58 pm
Subject: Re: Sort of single-entry output: is it possible?
In article <m2a9uiolq2.... @newartisans.com>,
"John Wiegley" <jo... @newartisans.com> wrote:
> >>>>> Lifepillar <git
... @lifepillar.com> writes:
> > I'd like to produce a report like this:
> > "2012/11/15","MoneySucker","Assets:Credit
> > Card","Expenses:Foo","40","bitcoins"
> > "2012/11/15","MoneySucker","Assets:Credit
> > Card","Expenses:Baz","40","bitcoins"
> > Is there a way to do this, maybe using metadata and things like --pivot?
> I know of no way to achieve this, although it would be a perfect task for the
> Python bridge.
Thanks for your prompt reply. So, I have solved the problem with a custom script in Ruby (I am not very familiar with the Python bridge yet).
Life
You must
Sign in before you can post messages.
You do not have the permission required to post.