I'm trying to filter postings based on whether the corresponding amount
is positive or negative, e.g.:

  select position where account ~ "^Expenses:Medical" and value(position) > 0;

but this fails with:

  error: Operator greater(Amount, int) not supported

(using today's beanquery from git master branch).

I understand an Amount is not an integer, but a (number, currency)
pair. But I don't know how to peak into the number field using BQL.

Any suggestion?
-- 
Stefano Zacchiroli . [email protected] . upsilon.cc/zack          _. ^ ._
Full professor of Computer Science              o     o   o     \/|V|\/
Télécom Paris, Polytechnic Institute of Paris     o     o o    </>   <\>
Co-founder & CTO Software Heritage            o o o     o       /\|^|/\
Former Debian Project Leader & OSI Board Director               '" V "'

-- 
You received this message because you are subscribed to the Google Groups 
"Beancount" 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/beancount/20221019151203.r2umwm632y3wnwue%40upsilon.cc.

Reply via email to