what am I doing wrong in this script ?
# suitescript
k
what am I doing wrong in this script ?
r
I think you need to provide the template id or make sure that the form of the transaction is linking to the correct pdf template
k
This is for transfer order
I'm only able to get picking ticket but not able to get line items
what is the best template to use for transfer order
r
Can't answer, haven't done any PDF for transfer order
b
i dont think render.transaction allows you to choose a template directly
k
Yes, it isn't allowing to print into PDF
b
you can choose a form that has a template correctly set
a quick look at a transfer order suggests its one of those transactions that dont have a direct printing option
you might want to try render.pickingTicket instead
k
I tried but it isn't giving me line items
it's just printing shipping address and ids
b
does your account have a preferred printing ticket template
k
Advanced or basic ? actually no but just created one
b
if there wasnt one before
id make sure your transfer order was approved
but if you are creating your own template, you can also use render.create and set the template and record to go outside the normal netsuite printing options
k
@battk Thanks for you time and for suggestions. it worked for basic forms.