On Sat, Feb 20, 2016 at 04:14:48PM -0600, Ryan Nowakowski wrote:
> With this ledger file:
> 
> ~ Monthly 2016/1/1 
>     Expenses:Salary $4000
>     Assets:Checking
> 
> ~ Monthly 2016/2/1
>     Expenses:Salary $5000
>     Assets:Checking
> 
> 2016/1/1 Salary
>     Expenses:Salary $4000
>     Assets:Checking
> 
> 2016/2/1 Salary
>     Expenses:Salary $4000
>     Assets:Checking
> 
> ...when I run this: ledger register ^Expenses --monthly
> 
> ...I get this:
> 16-Jan-01 - 16-Jan-31           Expenses:Salary               $4000        
> $4000
> 16-Feb-01 - 16-Feb-29           Expenses:Salary               $4000        
> $8000
> 
> Which looks correct.  When I add --budget like this: ledger register 
> ^Expenses --monthly --budget
> 
> ...I get this:
> 
> 16-Feb-01 - 16-Feb-29           Expenses:Salary              $-1000       
> $-1000
> 
> I would expect to get this instead:
> 
> 16-Jan-01 - 16-Jan-31           Expenses:Salary               $4000           
>  0
> 16-Feb-01 - 16-Feb-29           Expenses:Salary              $-1000       
> $-1000
> 
> Could this be a bug?  This is using release/3.1.1 compiled from git
> 
> - Ryan

So I took the time today to poke around and figure this out.  When an
account is zero by default it doesn't get printed.  Since January
perfectly hit budget that "account" is zero so it doesn't get printed.
So if I add the "--empty" flag, it works as expected.

-- 

--- 
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.

Reply via email to