I don't think `record.id` is returning a decimal; ...
# suitescript
e
I don't think
record.id
is returning a decimal; my guess is the problem lies in your
setText()
call on 338; why not just pass the internal ID of the Sales Order instead of using the tranid text?