Hi All,
THis may sound like a simple question, but I'm trying to edit some of our PDF templates in order to determine the logo that appears on them. For the majority of situations the logo will pull directly from the subsidiary record. However there is one situation that the logo needs to reflect a business unit under one of the subs rather than the actual sub. Therefore, rather than say "if the sub is X, display this logo", I need to say "if the sub is X, and the operating unit (which appears on the item line) is Y, display this logo".
Therefore my question is, how do I pull the OU from the actual line item on the invoice? The current code I have is this, but I know it's not correct:
<!-- To print the company logo -->
<td rowspan="12" width="50%">
<#if record.subsidiary == "X && item.operatingunit == "Y" >
<img src="https://system.netsuite.com/core/media/media.nl?id=amp;amp;c=5077651_SB1&h=c3cfe" style="float: left; margin: 7px"/><br/><br/><br/><br/><br/><br/><br/>
<#elseif subsidiary.logo?length != 0 >
<img src="${subsidiary.logo@url}" style="float: left; margin: 7px"/><br/><br/><br/><br/><br/><br/><br/>
<#elseif companyInformation.logoUrl?length != 0>
<img src="${companyInformation.logoUrl}" style="float: left; margin: 7px" /><br/><br/><br/><br/><br/><br/>
</#if>
It's obviously the item.operatingunit part that is wrong, but I'm not sure how that should be changed to pick up the OU from the line item.
Thanks in advance!