{assign var=i value={$itr}}
{foreach $productsData as $data}
<tr>
    <td>
        <input type="text" name="productName{$i}" id="productName{$i}" class="form-control proname" value="{$data->productName}" readonly/>
        <input type="hidden" name="productid{$i}" id="productid{$i}" class="proid" value="{$data->productId}"/>
    </td>
    <td>
        <input type="text" name="currentquantity{$i}" id="currentquantity{$i}" class="form-control" value="{$data->sumProductQuantity}" readonly/>
    </td>
    <td>
        <input type="text" name="quantity{$i}"id="quantity{$i}" class="form-control" value="{if $data->sumProductQuantity <0}{$data->sumProductQuantity * -1}{else}1{/if}"/>
    </td>
    <td>
        <a class="btn btn-default btn-lg removeicon removethis" tabindex="0"></a>
    </td>
</tr>
{capture assign=i}{$i+1}{/capture}
{/foreach}
