Sort of single-entry output: is it possible?

35 views
Skip to first unread message

Lifepillar

unread,
Nov 15, 2012, 7:24:04 AM11/15/12
to ledge...@googlegroups.com
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

John Wiegley

unread,
Nov 15, 2012, 11:49:09 AM11/15/12
to ledge...@googlegroups.com
>>>>> 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

Lifepillar

unread,
Nov 15, 2012, 5:58:43 PM11/15/12
to ledge...@googlegroups.com
In article <m2a9uio...@newartisans.com>,
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

Reply all
Reply to author
Forward
0 new messages