John,
I have a few standard queries that I run using ledger 2.x that are
currently broken in Ledger 3.0. I updated to the very latest git this
afternoon before sending this e-mail to make sure I had your latest
changes.
1) I have a script called all_accounts_report.sh [1] that iterates
through all children of a given account and runs the specified
query using my monthly_reports.py [2] script. I use this to get the
monthly balance for each of my asset accounts individually, for example.
To get a list of all of the subaccounts, I use this query (for example):
ledger -F "%A\n" -d "l>=2" bal "Assets"
Ledger 3.0 doesn't like the -d argument, giving me this error:
While evaluating value expression:
((l >= 2) & (l >= 2))
^
Error: Unknown identifier 'l'
Is this a feature not yet supported or has the means of doing this
changed? I honestly don't remember what the l stands for in ledger 2.x,
this is just the query I had written down that I used.
This is the output I'm expecting:
na...@taleswapper:~/Source/ledger/ledger-2.6$ ./ledger -F "%A\n" -d "l>=2" -s
-n bal "Assets"
Assets:Cash
Assets:Checking
Assets:Education Savings
Assets:Travel Savings
Actually, I believe this is my only bug so far, since the -E bug was
fixed earlier this week.
2) This one isn't a bug, more so a feature-request. I'd like to have a
query that gives me the total amount I paidd off on my Liabilities in a
given month. I've been using this query:
ledger -p "this month" -l "a>0" -n bal "Liabilities"
Actually, for some reason, this isn't seeming to even work at all any
more. What it was giving me was the total paid towards liabilities in a
given month. However, it didn't completely reflect what I want, because
it would get cases where I did a balance transfer. So perhaps the
balance of a given Liability might have changed, but the total
Liability balance did not change within that entry. Is there a way for
me to say "Show me the the total of all transactions within this period
that reduced the total Liabilities balance"?
Thanks again for your great work John!
Travis Hartwell
[1]
http://github.com/Nafai77/utilities/blob/fe1ce64db7153648ac75632a13d2189ef3a007f4/HOME/bin/all_accounts_report.sh
[2]
http://github.com/Nafai77/utilities/blob/fe1ce64db7153648ac75632a13d2189ef3a007f4/HOME/bin/monthly_reports.py