<?php include 'connection.php';
session_start();
if (!isset($_SESSION['is_logged_in'])) {
    header("Location:login.php");
    die();
    }
?>
<?php 
//echo $query3;
 
$query3q ="DELETE FROM  vendorpo_more_product_02 WHERE more_vproduct_id ='".$_REQUEST['more_vproduct_id']."'" ;
$r3q=mysqli_query($conn,$query3q);
//echo $query3q;




//echo $query3r;
//exit();
if($_REQUEST['proforma_id']!=''){
?>

<script>
javascript:window.location.href="create_po_01.php?vendor_id=<?php echo $_REQUEST['vendor_id']; ?>&&customer_id=<?php echo $_REQUEST['customer_id']?>&&call_follow_up_id=<?php echo $_REQUEST['call_follow_up_id']?>&&proforma_id=<?php echo $_REQUEST['proforma_id'];?>&&vendor_no=<?php echo $_REQUEST['vendor_no']?>&&create_new=<?php echo $_REQUEST['create_new']?>&&vendorpo_id=<?php echo $_REQUEST['vendorpo_id']?>";
</script>
<?php }else{?>

<script>
javascript:window.location.href="create_vpo_01.php?vendor_id=<?php echo $_REQUEST['vendor_id']; ?>&&customer_id=<?php echo $_REQUEST['customer_id']?>&&call_follow_up_id=<?php echo $_REQUEST['call_follow_up_id']?>&&proforma_id=<?php echo $_REQUEST['proforma_id'];?>&&vendor_no=<?php echo $_REQUEST['vendor_no']?>&&create_new=<?php echo $_REQUEST['create_new']?>&&vendorpo_id=<?php echo $_REQUEST['vendorpo_id']?>";
</script>

<?php } ?>