<style>
.style1 {border-top: solid 1px;border-top-color: #CCCCCC;}
.style21 {border-bottom: solid 1px;border-bottom-color: #CCCCCC;}
.style5 {border-left: solid 1px;border-left-color: #CCCCCC;}
.style3{ border-right: solid 1px;border-right-color: #CCCCCC; }
.style4 {border-bottom: solid 1px;border-bottom-color: #CCCCCC;}
.text{ font-family: Verdana; font-size:13px;}
#tot_amt::-webkit-input-placeholder { color:#666; }
</style>
<?php error_reporting(0);
/***************************** PREVIOUS NEXT CODING ****************************************/
 include("../../include/db.php");
 $jobcard_no=$_POST['job_no'];
 $deliv_particulars=$_POST['deliv_particulars'];
 
        $sql_user="select sum(qty) as qty  from  return_sublist where job_no='$jobcard_no' and particulars='$deliv_particulars'";
		$rs_user=mysql_query($sql_user);
		while($rsdata_user=mysql_fetch_object($rs_user))
		{ 
		 $qty=$rsdata_user->qty;
		}
 
 
	     $sql_user="select sum(prod_qty) as prod_qty  from  fusing_production_sublist where job_card_no='$jobcard_no' and prod_size='$deliv_particulars'";
		 $rs_user=mysql_query($sql_user);
			while($rsdata_user=mysql_fetch_object($rs_user))
			{ 
			 $prod_qty=$rsdata_user->prod_qty;
			}
			
			$bal_qty=$prod_qty-$qty;
			?>
            
            <input type="text" name="inward_qty" id="inward_qty" class="types_class1" tabindex="4" onKeyUp="enterevent(event,'add','inward_qty')"  style="width:100%; height:29px;" value="<?php  echo $bal_qty; ?>" />
            <input type="text" name="tot_qty" id="tot_qty" class="types_class1"   style="width:100%; height:29px;" value="<?php echo $prod_qty; ?>" />