Hello everyone. I created a Custom PDF for a Pack...
# general
u
Hello everyone. I created a Custom PDF for a Packing Slip-type record, with intention to use it in an Item Fulfillment's form. My problem is that when I do print using this template, the {trandate} field is fetching the trandate field of the Sales Order, instead of the Item Fulfillment's (as both have fields that share the same internal ID). Is there any way to supersede the default and fetch the trandate value from the Item Fulfillment instead? Thanks.
l
Are you printing from a script ? We're using {record.trandate} to print the date on a delivery note directly from the Item Fulfillment record, and it displays the IF date.
u
Thanks for responding! Unfortunately no, I'm trying to print using the built-in printing features of Netsuite, hence me using a Custom PDF. I'll try adding that freemarker tag in the Custom PDF and see what happens. Any other suggestions in the event it doesn't?
I just tried it, and to no avail. I don't suppose you know any other way I can retrieve it without relying on Suitescript?
l
I know that you can retrieve certain dates from the SO directly, like actual ship date (if the if is fulfilled). Maybe there are other dates that are updated by the IF that could be retrieved on your print.
u
Thanks for the help. I decided on a crude solution for now: that is to create a custom field that sources its value from the IF's {trandate} field, and won't be visible on the form, but accessible via the Custom PDF template editor. I'm writing this down for anyone in the future who might see this and have the same problem. Granted it's not the cleanest solution (as I'm sure there's a few other methods that involve manipulating the freemarkers), it's the one that works best for us right now. Thanks again for the help, I really appreciate it.
t
Hi John, Are you using an Advanced PDF form or a basic transaction PDF form? You should be able to do this using Advanced PDF.
u
Hi Tim, sorry for the late reply. I'm not using Advanced PDF templates for this, just the Custom PDF templates for this form. I understand that I could do this with Advanced PDF/HTML templates, but I've also tried it, and the problem persists, wherein plugging {trandate} still fetches the Sales Order's {trandate} over the Item Fulfillment's. I appreciate the concern, and given time I might give this another look, but as it stands, I've solved my issue with the solution I mentioned prior.