shubs
11/24/2020, 2:57 PMshubs
11/28/2020, 3:38 PMscriptid
of the created fields.
- Create/Update Advanced PDF/HTML template.
- Replace the code that is similar to
<#if companyInformation.logoUrl?length != 0>
<img src="${companyInformation.logoUrl}" style="float: left; margin: 7px" />
</#if>
<span class="nameandaddress">${companyInformation.companyName}</span><br />
<span class="nameandaddress">${companyInformation.addressText}</span>
with
<!-- If Setup > Company > Printing & Fax > USE LOCATION ADDRESS ON FORMS is checked AND location has logo present, then it will use the location logo and address else it will use the company logo and address. -->
<#if preferences.printlocaddress == true && record.[scriptid for logo field]@url?length != 0>
<img src="${[scriptid for logo field]@url}" style="float: left; margin: 7px" />
<span class="nameandaddress"></span><br />
<span class="nameandaddress">${record.[scriptid for address field]}</span>
<#elseif companyInformation.logoUrl?length != 0>
<img src="${companyInformation.logoUrl}" style="float: left; margin: 7px" />
<span class="nameandaddress">${companyInformation.companyName}</span><br />
<span class="nameandaddress">${companyInformation.addressText}</span>
</#if>
#### Using SDF:
If you are using SDF, you already know what you are doing.
Download/clone the repo, edit, and push to the environment of your choosing.
## Acknowledgments
- [SuiteAnswer ID 61596](https://netsuite.custhelp.com/app/answers/detail/a_id/61596/)
- [AdvancedPDf - dynamic transaction logo based on header location](https://www.reddit.com/r/Netsuite/comments/k077ld/advancedpdf_dynamic_transaction_logo_based_on/)
- Follow [u/Nick_AxeusConsulting](https://www.reddit.com/user/Nick_AxeusConsulting/)