We can add Lot No from the inventory details to the pdf print of the records. The following screen shot; Lot No is displayed as a separate line in the table.

<#assign serialNumbers =[]>
<#if item.inventorydetail?has_content>
<#if item.inventorydetail?contains(",")>
<#list item.inventorydetail?split("/>") as x><#assign serialNo = x?split(",")[0]><#assign serialNumbers = serialNumbers + [serialNo]/></#list>
<#else><#list item.inventorydetail?string?split("<br />") as x><#assign serialNumbers = serialNumbers + [x]/></#list>
</#if>
</#if>
<#list serialNumbers as val>
<tr>
<td colspan="1"> </td>
<td colspan="1"> </td>
<td colspan="1">Lot No:${val}</td>
<td colspan="1"> </td>
<td colspan="1"> </td>
<td colspan="1"> </td>
<td colspan="1"> </td>
<td colspan="1"> </td>
<td colspan="1"> </td>
</tr>
</#list>
After the item details are defined, this code will be written. The number of <td>s depends on how many columns are in the table. We define the variable ‘val’ where we need to display the Lot Number.