Dear How To add amount field in advanced pdf template for item receipt,
i tried to multiply rate * quantity it didnt work throwing an error
later i have called this filed in code and try to multiply still throwing same error
<#if record.item?has_content>
<table cellspacing="2" border="1" class="itemtable" style="width: 100%; margin-top: 10px;"><!-- start items --><#list record.item as item><#if item_index==0><#assign qty_sum=0><#assign qty_mul=0><#assign qty_multotal=0>
<thead>
<tr>
<th align="center" border-right="1" border-bottom="1" width="5%">S.NO</th>
<th align="center" border-right="1" border-bottom="1" width="15%">Dispaly Name</th>
<th align="center" border-right="1" border-bottom="1" width="20%">Description</th>
<th align="center" border-right="1" border-bottom="1" width="18%">location</th>
<th align="center" border-right="1" border-bottom="1" width="8%">QTY</th>
<th align="center" border-right="1" border-bottom="1" width="8%">Units</th>
<th align="center" border-right="1" border-bottom="1" width="13%">Rate</th>
<th align="center" border-right="1" border-bottom="1" width="13%">Amount</th>
</tr>
</thead>
</#if>
<tr>
<td border-right="1" border-bottom="1" align="left">${item_index+1}</td>
<td border-right="1" border-bottom="1" align="left">${item.item}</td>
<td border-right="1" border-bottom="1" align="left">${item.description}</td>
<td border-bottom="1" border-right="1" align="left">${item.location}</td>
<td border-right="1" border-bottom="1" align="left">${item.quantity}</td>
<td border-right="1" border-bottom="1" align="left">${item.unitsdisplay}</td>
<td border-right="1" border-bottom="1" align="left">${item.rate}</td>
<td border-right="1" border-bottom="1" align="left">${item.rate * item.quantity}</td>
</tr>
<#assign qty_sum = qty_sum + item.quantity><#assign qty_mul= qty_mul + item.rate>
</#list><!-- end items -->
<tr>
<th></th>
<th></th>
<th>Total Quantity</th>
<td></td>
<td>${qty_sum}</td>
<td>${qty_mul}</td>
<td>${qty_mul * qty_sum } </td>
</tr>
</table>
<td>${qty_mul * qty_sum } </td>
<td border-right="1" border-bottom="1" align="left">${item.rate * item.quantity}</td>
i got this error