<?php 
include('../include/session.php');
$additional_num = $_GET['additional_num'];
$m=0;
while ($m<$additional_num) {
	$item_id = $_SESSION['additional_item_id'.$m];
	$edit_value = $_GET['additional_quantity_'.$m];
	$_SESSION['additional_quantity_'.$m] = $edit_value;
	
	if ($_SESSION['additional_line'.$m]=='0') {
	$table_name = $_SESSION['db_prefix']."_captured_sundries_temp";
	$sundries_query = "UPDATE $table_name SET auth_quantity = '".$edit_value."' WHERE cap_item_id = '".$item_id."' AND cap_job = '".$_SESSION['job_no']."'  AND user =  '".$_SESSION['username']."'  ";
	//echo '<br>'.$mitek_query;
	execsql($sundries_query);	
	}
	$_SESSION['start5']=1;
	
	$m++;
}

?>

<script language="javascript" type="text/javascript">
      window.location="authorisationWizbase.php?p=5&s=&screen=1";
</script>



