<?php 
$PageSecurity = 4;
include('includes/session.inc');
include('includes/DefineSuppTransClass.php');
?>
	<p align="left">
<input type="button" onclick="opendata()" value="Pick Item" class="search" />&nbsp;
<input type="button" class="search"  onclick="deleteRow_return('dataTable')" value="Delete" />
</p>
<table width="100%" border="0" cellpadding="3" cellspacing="0" id="tableDataProduction" class="thborder">
  <tr>
    <th width="3%"></th>
    <th width="10%">Item Code</th>
    <th width="1"></th>
    <th>Description</th>
    <th width="7%">UOM</th>
    <!--<th colspan="2"><center>Specification</center></th>-->
	  <th width="10%">Item Stock Qty.</th>
    <th width="10%">Batch Stock Qty.</th>
	  <th width="10%">Batch No.</th>
    <th width="10%">Return Qty.</th>
    <th width="10%">Rate</th>
    <th width="10%">Total Amount</th>
  </tr>
  <tbody id="dataTable">
  <tr>
  <td><input name="delitem[]" type="checkbox"  id="delitem" /></td>
  <td><input type="text" value="" tabindex=""  readonly id="itemcode_1" name="itemcode[]"size="20" /></td>
  <td><input  type="hidden"   readonly=""  id="itemdataid_1"  name="itemdataid[]" /></td>
  <td><input type="text" name="desc[]"  id="descriptions_1" size="25"  value="" readonly  /></td>
  <td><input type="text" name="uom[]" id="uom_1" value="" readonly  size="30"  /></td>
  <!--  <td width="6%"><select  name="sizesp[]" id="sizesp_1" >
   	<option value="0">select</option>
   	<?php
     $resultSize=DB_query("select * from size_master",$db);
     while($rowSize=DB_fetch_array($resultSize))
     { ?>
    <option value="<?php echo $rowSize['id']; ?>"><?php echo $rowSize['size']; ?></option>
     <?php }
   	 ?>
   </select></td>
  <td width="6%"><select  name="gradesp[]" id="gradesp_1" >
   	<option value="0">select</option>
   	<?php
      $resultGrade=DB_query("select * from product_grade",$db);
      while($rowGrade=DB_fetch_array($resultGrade))
      { ?>
     <option value="<?php echo $rowGrade['id']; ?>"><?php echo $rowGrade['grade']; ?></option>
       <?php }
   	 ?>
   
   </select></td> -->
  <td><input type="text" name="stock[]" id="stock_1" value="" readonly  size="30"  /></td>
  <td><input type="text" name="batchstock[]" id="batchstock_1" value="" readonly  size="30"  /></td>
  <td><input  type="text" name="batch_no[]" readonly  id="batchno_1" size="30"  placeholder="Press double click to get batch"  value="" ondblclick="displayBatch(this.value,this.id);"   /></td>
  <td><input  type="text" name="returnqty[]" onkeyup="chk_recived_qty(this)" autocomplete="off" onkeypress="return isNumberKey(event)"  id="reciveqty_1" size="30"   value=""   /></td>   
  <td><input  type="text" name="rate[]" autocomplete="off"  onkeyup="chk_recived_qty(this)" onkeypress="return isNumberKey(event)"  id="rate_1" size="30"   value=""   /></td>   
  <td><input  type="text" name="totalamt[]" readonly autocomplete="off" class="total" onkeypress="return isNumberKey(event)"  id="totalamt_1" size="30"   value=""   /></td>   
  </tr>
   </tbody>
</table>
<div class="body_lightbox1" id="lightbox1" style="overflow:auto; width:600px; height:250px; display:none;"></div>
<input type="hidden" name="hiditemcount" id="hiditemcount" value="" />
  <input type="hidden" name="" value="" id="edit_cnt" />
  <input type="hidden" name="" value="1" id="rowcount1" />

<br />
<table width="100%" border="0" cellpadding="3" cellspacing="0" style="border-collapse:collapse;">
  <tr class="row1">
    <td width="13%" align="right"><strong>Remarks:</strong></td>
    <td><textarea name="remarks" id="remarks" cols="" rows="" style="width:99%; height:60px;"></textarea></td>
    <td style="text-align:right;"><strong>Total Amount</strong></td>
    <td><input type="text" name="grand_total" id="grand_total" value="<?php echo $grand_total; ?>" readonly /></td>
  </tr>
</table>

<p align="center"><input type="submit" name="Save" value="Save" onclick="return validate()" class="search" /></p>
<div id="PickedItems1" style="display:none"></div>

