The following code to display the subsidiary logo ...
# advancedpdf
s
The following code to display the subsidiary logo works on the Invoice Template, but it will not work on a Sales Order template. Any suggestions?
Copy code
<macro id="nlheader">
            <table class="header" border="0" style="width: 100%; height: 100px;">
              <tr>
				<td rowspan="3" style="height: 105px; width:110px;">
                  <#if subsidiary.logo?length != 0>
                    <img src="${subsidiary.logo@url}" style="float: left; margin: 7px; height: 100px; width:100px;" />
                  <#else>
                   	<img src="${companyInformation.logoUrl}" style="float: left; margin: 7px; height: 100px; width:100px;" />
                  </#if>
                 </td>
                <td rowspan="3" style="padding-top: 10px;"><span class="nameandaddress">${companyInformation.companyName}</span><br /><span class="nameandaddress">${companyInformation.addressText?replace('United States', '')}</span></td>
				<td align="right" style="padding-top: 5px;"><span class="title">${record@title}</span></td>
			 </tr>
			 <tr>
				<td align="right"><span class="number">#${record.tranid}</span></td>
			 </tr>
			 <tr>
				<td align="right">${record.trandate}</td>
			 </tr>
          </table>
        </macro>
r
It will work for all transactions that have a subsidiary field.
s
When I try to print ${subsidiary.logo@url} to text, it's empty, so something else going on...
r
Is there a logo stored on the subsidiary record?
s
Yes. If I run the same code from the Invoice, it works perfectly for all subsidiaries. Just noticed the Subsidiary is NOT editable on the Sales Order form. Not sure where/how this is being set to inline?
Customize>Customize Form>Display Type = Normal
Don't see any workflows setting this to inline either.
a
Sales Order subsidiary defined by customer record and related customer..
s
perfect! thank you!