Richard Lawrence wrote at 2017-03-16 10:16 -0500:
I think maybe you just need to add the --empty flag for this. Not
sure if this will still work with the custom format string you're
using, but if it does, it's a simple fix!
Thank you for the suggestion. The `--empty` flag actually has no
effect in this case, unless I again use the dummy automated
transaction. In that case, it does solve the problem, after a
fashion.
Here is the same example journal, with the dummy automated
transaction commented out.
~~~
account Assets
account Expenses
account Expenses:Clothing
account Expenses:Food
account Income
#= expr true
# Assets 0
# Expenses 0
# Expenses:Clothing 0
# Expenses:Food 0
# Income 0
2017-03-15 Employer
Income $-100
Assets $100
2017-03-15 Restaurant
Assets $-20
Expenses:Food $20
~~~
The `--empty` option has no effect, empty/zero accounts
(Expenses:Clothing) and parent accounts (Expenses) are still skipped.
Removing the `--balance-format` has no effect on which accounts are
shown.
~~~
$ ledger --no-total --empty balance
$80 Assets
$20 Expenses:Food
$-100 Income
~~~
But if I enable the dummy automated transaction shown above, I get
all the accounts.
~~~
$ ledger --no-total --empty balance
$80 Assets
$20 Expenses
0 Clothing
$20 Food
$-100 Income
~~~
~~~
$ ledger --version | head -n1
Ledger 3.1.1-20160111, the command-line accounting tool
~~~
I have filed a bug:
<http://bugs.ledger-cli.org/show_bug.cgi?id=1204>
--
---
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.