>>>>> "MB" == Michael Bryant <
mbrya...@gmail.com> 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