>>>>> "MB" == Michael Bryant <[email protected]> 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/m2a7b2lbp7.fsf%40newartisans.com.

Reply via email to