register, --display and --empty don't play nicely #18

Closed
simonmichael opened this Issue Apr 8, 2013 · 1 comment

Projects

None yet

1 participant

@simonmichael
Owner

Original author: sampoin...@googlemail.com (December 19, 2009 04:42:28)

borked.ledger:
2009-12-01 * foo
foo £1.00
bar

2009-12-15 * bar
foo £1.00
baz

2009-12-21 * baz
bar £2.00
foo

hledger -f borked.ledger register foo -W -E --display=d>=[2009-12-07]
2009/11/30 - 2009/12/06 0
£1.00
2009/12/07 - 2009/12/13 0
£1.00
2009/12/14 - 2009/12/20 foo £1.00
£2.00
2009/12/21 - 2009/12/27 foo £-2.00
0

This looks wrong to me. register should not display entries where the
entire date range is excluded by a --display predicate. Instead, I'd expect
this:
2009/12/07 - 2009/12/13 0
£1.00
2009/12/14 - 2009/12/20 foo £1.00
£2.00
2009/12/21 - 2009/12/27 foo £-2.00
0

Original issue: http://code.google.com/p/hledger/issues/detail?id=18

@simonmichael
Owner

From simon@joyful.com on December 21, 2009 06:05:25
Thanks for the report, this is fixed in darcs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment