On an Advanced PDF template for Purchase Orders, h...
# ask-stanley-ai
a
On an Advanced PDF template for Purchase Orders, how do I reference the Location's "address" and "logo" fields?
c
AI generated answer (using internal Slack threads):
To reference the Location's "address" and "logo" fields in an Advanced PDF template for Purchase Orders, you would need to create custom fields on the transaction/record that source data from the location record. This is done via the location field on the transaction/field. For the address, you can use a similar approach to the one used for the 'billaddress' in the invoice form. In the context of a Purchase Order, you might use something like
${record.location.address}
to reference the address of the location associated with the record. As for the logo, it's a bit more complex because the logo is not a text field, but an image. You would need to create a custom field that references the logo from the location record, and then use that custom field in your Advanced PDF template. The syntax might look something like this:
<img src="${record.location.logo}" />
. Please note that the exact syntax might vary depending on the specifics of your NetSuite setup and the names of your custom fields. ****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ******
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.842960954
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.842407942
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.837740779
Please provide your feedback on this answer.