{foreach $allRawProducts as $pro}
<tr>
    <td>
        <input type="hidden" readonly name="product{$pro@iteration}" value="{$pro->productId}"/>
        {$pro->productName}
    </td>
    <td>
        <input type="hidden" readonly name="unit{$pro@iteration}" value="{$pro->unitId}"/>
        {$pro->unitName}
    </td>
    <td>
        {if $proNumber > 1}  {$pro->quantity * $proNumber} {else}{$pro->quantity}{/if}
        <input type="hidden" class="quantity" name="quantity{$pro@iteration}" data-val="{$pro->quantity}" value="{if $proNumber > 1}  {$pro->quantity * $proNumber} {else}{$pro->quantity}{/if}"/>
    </td>
</tr>
{/foreach}
<input type="hidden" name="rowitr" value="{count($allRawProducts)}"/>