<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['in_jobcard_no'];
 $inward_particular=$_POST['inward_particular'];
	$sql_user="select sum(qty) as qty from  jobcard_sublist where jobcard_no='$jobcard_no' and particulars='$inward_particular'";
		$rs_user=mysql_query($sql_user);
			while($rsdata_user=mysql_fetch_object($rs_user))
			{ 
			$qty=$rsdata_user->qty;
			}
			
			$sql_user="select sum(inward_qty) as inward_qty from  inward_sub_list where jobcard_no='$jobcard_no' and inward_particular='$inward_particular'";
		$rs_user=mysql_query($sql_user);
			while($rsdata_user=mysql_fetch_object($rs_user))
			{ 
			$inward_qty=$rsdata_user->inward_qty;
			}
			$balance = $qty-$inward_qty;
			?>
<input type="text" name="inward_qty" id="inward_qty" onKeyUp="inward_sub_clear_validation(this.id)" onkeypress="enterevent(event,'inward_qty','inward_qty')" tabindex="5"  class="types_class1" style="width:100%; height:28px;" value="<?php echo $balance;?>" />