How to display a client with a zero balance?

70 views
Skip to first unread message

Keith David Bershatsky

unread,
Dec 1, 2020, 9:45:48 PM12/1/20
to Ledger
How can I instruct ledger-cli to show a client with a zero balance?

I am using the following command to display balances for multiple clients:

ledger -f file.dat bal "ASSETS:CLIENT_LEDGER:RETAINER:CLIENT_ONE" "ASSETS:CLIENT_LEDGER:RETAINER:CLINT_TWO"

When either client has a zero balance on the books, the client is not displayed.  I would like to display both CLIENT_ONE and CLIENT_TWO even if one or both have zero balances.

Thanks,

Keith

Kent R. Spillner

unread,
Dec 1, 2020, 10:35:25 PM12/1/20
to ledge...@googlegroups.com
I believe you’re looking for —empty.  That’s documented in the fine man page: https://www.ledger-cli.org/3.0/doc/ledger.1.html 

Sent from my iPhone

On Dec 1, 2020, at 20:45, Keith David Bershatsky <keith.david...@gmail.com> wrote:

How can I instruct ledger-cli to show a client with a zero balance?
--

---
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 ledger-cli+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ledger-cli/cfe43804-b3fe-4b52-b7d2-09a258d85313n%40googlegroups.com.

Keith David Bershatsky

unread,
Dec 1, 2020, 10:56:10 PM12/1/20
to ledge...@googlegroups.com
Yes, the --empty command line argument resolved this issue.  Thank you very much!

Keith

Reply all
Reply to author
Forward
0 new messages