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 .
za...@upsilon.cc .
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 "'