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.

-- 
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beancount/CAPgTVrbPfjV05o7oWgtR-114ApSDy-znAKF1wqo-yjKOS%3Dt8Lg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to