Is this the correct way to impose 2 conditions in a template's source code?
<#elseif record.currency=="USA" && record.subsidiary=="ABC">
<br/>
l
Lalo
10/09/2020, 6:25 PM
Yes, you use && (and) for both to be true or || (or) for one of statements to be true.
n
NS.TX
10/09/2020, 7:04 PM
is that format correct? It doesnt seem to be honoring both conditions rn
p
PNJ
10/09/2020, 7:17 PM
Sure you don’t want USD? Rather than USA?
l
Lalo
10/09/2020, 7:17 PM
You beat me to do reply 🙂 @PNJ
🇺🇸 1
Lalo
10/09/2020, 7:20 PM
Looking at the XML code of one sales order, I see that Currency uses 1 (internal ID).
Lalo
10/09/2020, 7:23 PM
The same goes for your subsidiary. NetSuite uses internal ID's. So your code should look something like this:
<#elseif record.currency=="1" && record.subsidiary=="#">
where # is the internal ID of your subsidiary that you're matching against