<tr>
    {if $bill_type == 'ins'}
     <td >
                                                <select name="productcode{$itr}" id="productcode{$itr}" data-placeholder="اختر" data-itr="{$itr}"  class="select2 wdt100 " >
                                                    <option value="-1"> اختر </option>
                                                    <option value="OPT001">OPT001</option>
                                                    <option value="OPT002">OPT002</option>
                                                    <option value="OPT003">OPT003</option>
                                                     <option value="OPT004">OPT004</option>
                                                    <option value="OPT005">OPT005</option>
                                                    <option value="OPT006">OPT006</option>
                                                     <option value="OPT007">OPT007</option>
                                                    <option value="OPT008">OPT008</option>
                                                    <option value="OPT008">OPT009</option>
                                                     <option value="OPT0010">OPT0010</option>
                                                    <option value="OPT0011">OPT0011</option>
                                                    <option value="OPT0012">OPT0012</option>
                                                    <option value="OPT0013">OPT0013</option>
                                                    <option value="FRM001">FRM001</option>
                                                    <option value="FRM002">FRM002</option>
                                                    <option value="FRM003">FRM003</option>
                                                    <option value="FRM004">FRM004</option>
                                                    <option value="FRM005">FRM005</option>
                                                    <option value="FRM006">FRM006</option>
                                                    <option value="FRM007">FRM007</option>
                                                    <option value="FRM008">FRM008</option>
                                                    <option value="FRM009">FRM009</option>
                                                    <option value="FRM0010">FRM0010</option>
                                                    <option value="FRM0011">FRM0011</option>
                                                    <option value="FRM0012">FRM0012</option>
                                                    <option value="FRM0013">FRM0013</option>
                                                    <option value="FRM0014">FRM0014</option>


                                                </select>

                                            </td>
                                            {/if}
                                            
    <td>
        <select name="service{$itr}" id="service{$itr}" data-placeholder="اختر" data-itr="{$itr}"  class=" wdt100 opticService" >
            <option value="-1"> اختر </option>
            <!--option value="single vision"> single vision</option>
            <option value="Hi - index">Hi - index </option>
            <option value="Bi / Multi focal / Progressive">Bi / Multi focal / Progressive </option>
            <option value="Contact Lenses"> Contact Lenses</option>
            <option value="Frame"> Frame</option-->
            <option value="Single vision">Single vision</option>
            <option value="polycarbonate">polycarbonate</option>
            <option value="Hi index">Hi index</option>
            <option value="Contact lenses Plano">Contact lenses Plano</option>
            <option value="Contact lenses power">Contact lenses power</option>
            <option value="Sunglasses">Sunglasses</option>
            <option value="Medical frame">Medical frame</option>
            <option value="Reading">Reading</option>
            <option value="Accessories">Accessories</option>
            <option value="Bifocal">Bifocal</option>
            <option value="Multifocal/Progressive">Multifocal/Progressive</option>
        </select>

    </td>
     
    <td>
        <!--input type="hidden" id="product{$itr}" name="product{$itr}"  class="  productchange wdt100" data-itr="{$itr}"  data-newR="0"  /-->
        <select class="select2 productCat productCat{$itr}" data-level="0" data-itr ="{$itr}"  style="width:30%;" name="productCatId0_{$itr}" id="productCatId0_{$itr}" >
            <option value="-1">اختر تصنيف</option>
            {foreach $catDataReport as $data}
            <option value="{$data->productCatId}">{$data->productCatName}</option>
            {/foreach}
        </select>
        <input type="hidden" id="level_{$itr}" name="level_{$itr}" value="0" data-itr ="{$itr}">
        <div id="manyParents_{$itr}" data-itr ="{$itr}" style="display: inline">

        </div>
    </td>
    <td>
        <textarea class="form-control txt-nonraduis" rows="1" name="note{$itr}" id="note{$itr}"  tabindex="7"></textarea>
    </td>

    <td>
        <input name="pronum{$itr}" id="pronum{$itr}" value="1"  class="form-control txt-nonraduis proNumChange changePrice positivefloat" data-itr="{$itr}" placeholder="العدد" type="text" tabindex="7" />
        <input name="pronumOld{$i}" id="pronumOld{$itr}" type="hidden" value="0" />
    </td>
    <td>
        <input name="proprice{$itr}" id="proprice{$itr}" placeholder="السعر" value="0" data-itr="{$itr}" class="form-control positivefloat  txt-nonraduis changePrice" type="text"   tabindex="7"/>
    </td>
    <td>
        <input name="discount{$itr}" id="discount{$itr}" placeholder="الخصم" value="0" data-itr="{$itr}" class="form-control positivefloat  txt-nonraduis change_discount" type="text"   tabindex="7"/>
    </td>
    <td class="aw_totalprice">
        <div  class="aw_mt form-control-static"><span id="prototal{$itr}">0 </span> <span> {$currency}</span></div>
        <input name="totalProductPrice{$itr}" id="totalProductPrice{$itr}" type="hidden" value="0" />
    </td>
    <td>
        <button type="button" id="remove{$itr}" class="removeproduct close flt-none" data-itr="{$itr}" aria-hidden="true">&times;</button>
        <div id ="tobedel2">
            <input type="hidden" id="thisItr" name="thisItr" value="{$itr}">
        </div>
    </td>
</tr>


{literal}
<script>
    var hidden_itr = $('#hidden_itr').val();
    $(".positiveNo").forcepositiveNum();
    $(".positivefloat").forcepositivefloat();
    $('#service' + hidden_itr).select2();
    var thisItr = $('#thisItr').val();
    $('#tobedel2').remove();
    $('#productCatId0_' + thisItr).select2();
</script>
{/literal}