Hi,
I got a simple report with bean-query for taxable interest and filter on the Income account so the amount is negative.
I though I could use the absolute function to get ride of the sign but it doesn't work:
select year, abs(sum(position)) as interest where account ~ "Income:Interest" and not account ~ "TFSA|RRSP" group by year order by year
ERROR: Invalid type for argument 0 of Abs: found <class 'beancount.core.inventory.Inventory'> expected <class 'decimal.Decimal'>.
Any suggestion? It's not a big deal but I'm still curious.