Issue 18 in hledger: register, --display and --empty don't play nicely

2 views
Skip to first unread message

codesite...@google.com

unread,
Dec 18, 2009, 11:43:31 PM12/18/09
to hle...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 18 by sampointon: register, --display and --empty don't play
nicely
http://code.google.com/p/hledger/issues/detail?id=18

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


--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

codesite...@google.com

unread,
Dec 21, 2009, 1:06:34 AM12/21/09
to hle...@googlegroups.com
Updates:
Status: Fixed
Labels: Milestone-Release0.8

Comment #1 on issue 18 by si...@joyful.com: register, --display and --empty

Thanks for the report, this is fixed in darcs.

Reply all
Reply to author
Forward
0 new messages