Thanks! This works. Any idea when the fix will appear in a new release?

On Tuesday, September 17, 2019 at 4:55:59 PM UTC-7, John Wiegley wrote:
>
> >>>>> "MB" == Michael Bryant <[email protected] <javascript:>> writes: 
>
> MB> As maintainer of Ledger, would you be willing to merge a pull request 
> to 
> MB> support querying account information if I were to try to implement it? 
> I 
> MB> imagine the best implementation would be exposing all information via 
> a 
> MB> struct-like syntax (as in your example). I can also run example syntax 
> by 
> MB> you before implementing anything, if that makes things easier. 
>
> I've pushed a commit to master that makes this work now: 
>
>   = expr account =~ /^Income/ && account("Assets:Budgets:Foo").total <= 
> $60 
>       [Assets:Budgets:Foo]    0.1 
>       [Assets:Savings]       -0.1 
>   
>   2019-09-16 Payee 
>       Assets:Budgets:Foo   $40 
>       Equity:Balances 
>   
>   2019-09-16 Payee2 
>       Assets:Checking    $100 
>       Income 
>
> Turns out the support to do this _was_ there, it was just the query parser 
> that was broken (which is what gets used after '=' up there). 
>
> John 
>

-- 

--- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ledger-cli/d0e04ad3-f761-47a5-9ff5-85147bf0babd%40googlegroups.com.

Reply via email to