In pricelist pdf template, I'm trying to output so...
# advancedpdf
b
In pricelist pdf template, I'm trying to output some custom fields or native fields but some field shows but some are not. like native
itemid
doesn't show. Any idea please?
p
If some are showing you have the right structure at least - the fields that are not showing - are you sure they are referenced correctly? I am not sure itemid is correct, I think its just 'item' - but there are some special issues in the sense that it concatenates id and name in many instances. I'll share a sample item listing, maybe it will help (its from a customer saas-type invoice but same principle:
Copy code
<#if record.item?has_content>
<table class="items" style="width: 100%; margin-top: 20px;">
<thead>
<tr>
<th style="width: 15%; padding-left: 10px;">Item</th>
<th style="width: 25%;">Description</th>
<th style="width: 10%;"><p align="center">List Price</p></th>
<th style="width: 10%;"><p align="center">One-time Credit</p></th>
<th style="width: 10%;"><p align="center">Qty</p></th>
<th style="width: 13%;"><p align="center">Unit Price</p></th>
<th style="width: 17%; border: none;"><p align="right" style="margin-right: 15px;">Total</p></th>
</tr>
</thead>
<#list record.item as item>
<#if item.item!="Empty line" && item.item!="Description">
<tr>
<td style="padding-left: 10px;">${item.item}<br />${record.custcol_y_customization_id}</td>
<td><p align="left">${item.description}</p></td>
    <td><p align="right" style="margin-right: 7px;"><#if item.rate?has_content>${nsformat_currency(item.custcol_y_conversion_rebate+item.rate)}<#else><#assign zero=0.00>${zero?string.currency}</#if></p></td>
  <td><p align="right" style="margin-right: 7px;"><#if item.custcol_y_conversion_rebate?has_content>${item.custcol_y_conversion_rebate}<#else><#assign zero=0.00>${zero?string.currency}</#if></p></td>
  <td><p align="center">${item.quantity}</p></td>
<td><p align="right" style="margin-right: 10px;"><#if item.rate?has_content>${item.rate}<#else><#assign zero=0.00>${zero?string.currency}</#if></p></td>
<td><p align="right" style="margin-right: 15px;">${item.amount}</p></td>
</tr>
</#list>
</#if>
b