Hi all, in the invoice PDF I want to display texts...
# advancedpdf
m
Hi all, in the invoice PDF I want to display texts which changes if item type is different. For example, if sold items are Services, then display "X". If sold items are Inventory items, then display "Y". Is this possible within PDF/HTML template? Thanks in advance!!
d
yes, check the value of
item.itemtype
in an if statement (potentially a
<#switch item.itemtype>
would be more suited). Let us know how you get on
🙏 1
m
Thanks @David B It worked. Here's the formula I used: item.itemtype == "InvtPart" || item.itemtype == "Assembly"