I would test what value you get from record.create...
# advancedpdf
s
I would test what value you get from record.createdfrom.tranid when there is no parent invoice. In many cases, NetSuite returns empty strings instead of nulls