Hi,
It's not working and I am still getting the same error message.
If I changed the query to
SELECT $[$-22.0.number] from INV1 t0 where $[$-38.18.0] in ('SR','DS','AJS')
I didn't get the error message but still I need to manually refresh the UDF after I have added the invoice.
I got the document total instead of total according to the tax group in 'SR', 'DS' & 'AJS' for the above query.
Thanks & BR,
Leng