Printing the Lot Number on Transaction is important for other Users. Adding the column Inventory Detail on Advanced PDF/HTML Template of Transaction records will also print other values. The expected output for our sample scenario is to just print the Lot Number only. To do this, we need to apply the code below:
<td align="right" colspan="6">${item.inventorydetail?keep_before("(")}</td>
This will be placed on the Body part of the code. Here is a sample code and its placement:
Here is the printed output before applying the code:
Here is the printed output after applying the code:
Notice that (1) was removed after applying the code. After applying the code, only the Lot Number will be printed.
Let me know if you have questions.