<?php require_once('../auth/auth.php'); ?>
<?php 
if(isset($_POST['pur_invoice'])){
   $invoice    = $_POST['pur_invoice'];
   $tdate      = $_POST['tdate'].' '.$time;
   $s_acid     = $_POST['s_acid'];
   $m_invoice  = $_POST['m_invoice'];
   $d_man      = $_POST['d_man'];
   $details    = $_POST['details'];
   $wh_id      = $_POST['wh_id'];

  mysqli_query($conn,"UPDATE order_list_edit SET acid='$s_acid',m_invoice='$m_invoice',details='$details',wh_id='$wh_id',d_man='$d_man',userid='$uid',datetime='$tdate',order_type='PDRAFT' WHERE coid='$coid' AND bid='$bid' AND brid='$brid' AND invoice='$invoice'") or die(mysqli_error($conn));
 }
?>