Problem using --invert with --monthly

22 views
Skip to first unread message

Janne

unread,
Apr 5, 2012, 2:41:17 PM4/5/12
to ledge...@googlegroups.com
Hello!

I'm on branch "next", make-cleaned and acprep-updated today.

Here's my test file and some register reports with --monthly or --invert:

~$ cat test.dat
2012-04-05 Test
  Assets:Checking  10 e
  Income:Employer

~$ ledger --file test.dat --monthly reg income
2012-04-01 - 2012-04-30         Income:Employer       -10,00 e   -10,00 e

~$ ledger --file test.dat --invert reg income
2012-04-05 Test                 Income:Employer        10,00 e    10,00 e

These are as I expected. With --monthly *and* --invert, however, I don't
get inverted values:

~$ ledger --file test.dat --monthly --invert reg income
2012-04-01 - 2012-04-30         Income:Employer       -10,00 e   -10,00 e

Is it a bug, or am I not supposed to mix --invert with -D/-W/-M/-Y? Or,
as usual, am I missing something else? I ran into this when trying to
make some plots using the -j parameter, and wanted the amounts to show
in positive numbers. Otherwise I don't mind my Income being negative :)

Thanks for your time.

JR

John Wiegley

unread,
Apr 5, 2012, 5:07:29 PM4/5/12
to ledge...@googlegroups.com
>>>>> Janne <jruuttun-Re5JQE...@public.gmane.org> writes:

> These are as I expected. With --monthly *and* --invert, however, I don't get
> inverted values:

> Is it a bug, or am I not supposed to mix --invert with -D/-W/-M/-Y? Or, as


> usual, am I missing something else? I ran into this when trying to make some
> plots using the -j parameter, and wanted the amounts to show in positive
> numbers. Otherwise I don't mind my Income being negative :)

This is a bug! I found out what's happening, attempting a fix now...

John

Janne

unread,
Apr 7, 2012, 4:27:00 AM4/7/12
to ledge...@googlegroups.com
JohnW wrote:

This is a bug!  I found out what's happening, attempting a fix now...

It works now! Thanks for your quick response!
Janne 
Reply all
Reply to author
Forward
0 new messages