On Tue, Jun 30, 2009 at 11:57 PM, John Wiegley<[email protected]> wrote:
>
> On Jun 30, 2009, at 2:46 AM, Nguyen Thai Ngoc Duy wrote:
>
>> The first thing, 'ledger -d "T&l<=2" b' no longer works.
>
> Value expressions have been rewritten.  I believe the string you want now
> is:
>
>  -d "total & depth <= 2"

Thanks. I did not know that. The manual still uses the old symbols :-(

>> The second thing is in "ledger b" output, if one account has only one
>> subaccount, the parent account is hidden even when the parent account
>> has some credit in it. It should not be hidden.
>
> Can you use "print --anon" to print out your ledger file, then test with
> that data?  If it still occurs, e-mail it to me and I will fix.  I have been
> hunting down balance reporting errors lately.

I can make a simple ledger file for it:

2009/07/01 * One
  Expenses:Electronics   20 AUD
  Assets:Cash

2009/07/01 * Two
  Expenses:Electronics:Phone   30 AUD
  Assets:Cash

"ledger b" shows me

             -50 AUD  Assets:Cash
              30 AUD  Expenses:Electronics:Phone
--------------------
                   0
-- 
Duy

Reply via email to