Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Sort of single-entry output: is it possible?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
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:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Lifepillar  
View profile  
 More options Nov 15 2012, 7:24 am
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.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John Wiegley  
View profile  
 More options Nov 15 2012, 11:49 am
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.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Lifepillar  
View profile  
 More options Nov 15 2012, 5:59 pm
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.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »