Thanks!
Been a user of ledger 2.6 for a while and recently (about 3 months ago)
upgraded to the 3.0 binaries (locally built from source on Ubuntu 12.04).
It's great!.
First time posting on the forum.
Just came across this feature and think it's a great addition. I am trying
to get a d/c report for my credit card balance, so I enter
ledger -f data.dat -w register --dc -S 'date' register
Liabilities:CreditCard
12-Jan-01 Credit report Liabilites:CreditCard
$69.950 0 $69.950
12-Jan-10 Refund Credit report Liabilites:CreditCard
0 $39.950 0
and it (correctly prints out the report). However, since instead of the
"Liabilities:CreditCard", I would like to print out the Note metadata that
I have for that entry.
12-Jan-01 Credit report Wrongly charged check ticket
number 12X8BT $69.950 0
$69.950
12-Jan-10 Refund Credit report Refunded closed ticket
0
$69.950 0
Is there any way to do it?
Thanks,
c.b
On Saturday, March 10, 2012 7:37:51 PM UTC-8, John Wiegley wrote:
>
> If you use --dc with either the register (reg) or balance (bal) commands,
> you
> will now get extra columns. The register goes from this:
>
> 12-Mar-10 Employer Assets:Cash $100
> $100
> Income:Employer $-100
> 0
> 12-Mar-10 KFC Expenses:Food $20
> $20
> Assets:Cash $-20
> 0
> 12-Mar-10 KFC - Rebate Assets:Cash $5
> $5
> Expenses:Food $-5
> 0
> 12-Mar-10 KFC - Food & Reb.. Expenses:Food $20
> $20
> Expenses:Food $-5
> $15
> Assets:Cash $-15
> 0
>
> To this:
>
> 12-Mar-10 Employer Assets:Cash $100 0
> $100
> In:Employer 0 $100
> 0
> 12-Mar-10 KFC Expens:Food $20 0
> $20
> Assets:Cash 0 $20
> 0
> 12-Mar-10 KFC - Rebate Assets:Cash $5 0
> $5
> Expens:Food 0 $5
> 0
> 12-Mar-10 KFC - Food &.. Expens:Food $20 0
> $20
> Expens:Food 0 $5
> $15
> Assets:Cash 0 $15
> 0
>
> Where the first column is debits, the second is credits, and the third is
> the
> running total. Only the running total may contain negative values.
>
> For the balance report, before it was this:
>
> $70 Assets:Cash
> $30 Expenses:Food
> $-100 Income:Employer
> --------------------
> 0
>
> And with --dc it becomes this:
>
> $105 $35 $70 Assets:Cash
> $40 $10 $30 Expenses:Food
> 0 $100 $-100 Income:Employer
> --------------------------------------------
> $145 $145 0
>
> What I like most about this option (which has been requested several times
> in
> the past) is that it reveals data that was hidden before: in a single
> period -- say, this month -- you can see both to increase and decrease of a
> given account in one glance, rather than having to generate two separate
> reports to distinguish inflow from outflow.
>
> Enjoy, John
>
>