On Sat, May 10, 2014 at 05:37:14PM +0000, John Wiegley wrote:
> >>>>> Jeffrey Brent McBeth <[email protected]> writes:
> 
> > I'm struggling to get my head around how to write value expressions with
> > respect to automatic transactions
> >
> > /^Liabilities:CrushingDebt/ and (d > [2014/04/15])
> 
> Try:
> 
>     expr account =~ /^Liabilities:CrushingDebt/ and date > [2014/04/15]

I swear I'm smarter than this....

#+BEGIN_EXAMPLE
account =~ /^Liabilities:CrushingDebt/ and date > [2014/04/15]
 Assets:Checking  0.5
 Assets:RichUncle  -0.5

2014/04/01 * Foo
  Liabilities:CrushingDebt  $100
  Assets:Checking

2014/04/25 * Bar
  Liabilities:CrushingDebt  $150
  Assets:Checking

2014/04/25 * Unrelated
  Liabilities:TolerableDebt  $150
  Assets:Gubment
#+END_EXAMPLE

ledger --debug expr.calc -f foo.ledger bal

#+BEGIN_EXAMPLE
               $-400  Assets
               $-250    Checking
               $-150    Gubment
                $400  Liabilities
                $250    CrushingDebt
                $150    TolerableDebt
--------------------
                   0
#+END_EXAMPLE

> > Pointers on how one debugs this sort of thing would be appreciated too.
> 
> The best is:
> 
>     --debug expr.calc
> 
> Which requires that you've built with debugging support enabled.

so, I thought that that was what I would get when I ran
./acprep debug && sudo make install

but, the debug switch, while recognized appears to responf with nothing?
again, I recognize I'm being dense.  Thank you for yur time and efforts.


-- 
"The man who does not read good books has no advantage over 
 the man who cannot read them."
 -- Mark Twain

-- 

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