Hi
I can raise a bug about this, but I'm posting here in the hope of getting a
clue re what is going on to cause this and maybe fix it.
Given this ledger file:
2018-12-09 * Investment
; food:
Assets:Investments:Funds 1 GOOG @ $1000
Assets:Investments:Funds 1 BLAH @ $200
Assets:Investments:Cash
Note the comment with an empty metadata value -- it could have a non-empty
value, it doesn't make a difference. But the metadata name has to end with a
"d"!
When I run this:
./ledger -f my.ledger b -X --date-format '%Y-%m-%d' --flat
'Assets:Investments:Funds'
I get this (i.e. it's failing to filter on the query as I would expect):
$-1200 Assets:Investments:Cash
1 BLAH
1 GOOG Assets:Investments:Funds
--------------------
$-1200
1 BLAH
1 GOOG
I would expect instead the following output:
1 BLAH
1 GOOG Assets:Investments:Funds
Doing any of the following makes the output look like what I expect:
- Changing "food:" to "fooe:"
- Removing the '%d' at the end of the --date-format string -- this is related
*somehow* to the trailing "d" of course -- but I don't know exactly how! What
feature is relevant to metadata names? Is it trying to substitute those
somehow?
- Removing the -X. Again, I don't know why this is relevant.
- Moving the -X to after the "--date-format. Again, no idea why!
--
---
You received this message because you are subscribed to the Google Groups
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.