<?php 
$i = $_POST['row'];
?>
<tr>
	<td><?php echo $i+1?></td>
	<td>
    	<input type="text" id="pm<?php echo $i?>" class="input" value="<?php echo $pmdesc?>" 
        autocomplete="off" style="width:100%" onfocus="pm_auto_complete('<?php echo $i?>')" onblur="get_ums('<?php echo $i?>')">
        <input type="hidden" id="pm_autoid<?php echo $i?>"  autocomplete="off" name="pm_autoid<?php echo $i?>" value="<?php echo $rsd['pm_autoid']?>">
    </td>
    <td>
    	<input type="text" class="input tr" onkeyup="calc_cb()" id="pm_bprice<?php echo $i?>" value="<?php echo $qty?>"
         name="pm_bprice<?php echo $i?>" onkeydown="chk_coa('<?php echo $i?>')" style="width:100%" autocomplete="off">
    </td>
    <td>
    	<input type="text" class="input tr" onkeyup="calc_cb()" id="qty<?php echo $i?>" value="<?php echo $qty?>"
         name="qty<?php echo $i?>" onkeydown="chk_coa('<?php echo $i?>')" style="width:100%" autocomplete="off">
    </td>
    <td class="tr">
    	<input type="text" class="input tr" style="width:70px"
         name="pm_disc<?php echo $i?>" id="pm_disc<?php echo $i?>" value="<?php echo $pm_disc?>" onkeyup="calc_cb()" >
         
        <select name="pm_disctype<?php echo $i?>" id="pm_disctype<?php echo $i?>" class="input" style="width:50px" onchange="calc_cb()" >
	        <option value="P">%</option>
	        <option value="R">Rp</option>
        </select>
        <input type="hidden" id="nett_price<?php echo $i?>" name="nett_price<?php echo $i?>" value="<?php echo $nett_price?>">
     </td>
    <td>
    	<input type="text" class="input tr" onkeyup="calc_cb()" id="subtotal<?php echo $i?>" value="<?php echo $qty?>"
         name="subtotal<?php echo $i?>" onkeydown="chk_coa('<?php echo $i?>')" style="width:100%" autocomplete="off" onblur="chk_field('<?php echo $i?>')">
    </td>
</tr>