$redirecturl = SITE_URL_DUM . 'invpref/' . $id . '/' . $msg; } } else { $msg = "raserr"; $redirecturl = SITE_URL_DUM . 'invoicelist/' . $msg; } $_SESSION['SESS_' . PRJ_CONST_PREFIX . '_MSG'] = $msg; // unset($Data); // unset($_POST); } else { if ($view == 'verify') { $dt = array(); $eDelete = $_POST['edelete']; $iInvoiceID = $_POST['iInvoiceID']; if ($eDelete == 'Yes') { $invOrdObj->delete($iInvoiceID); $msg = "rds"; $_SESSION['SESS_' . PRJ_CONST_PREFIX . '_MSG'] = $msg; header("location:" . SITE_URL_DUM . 'invoicelist/' . $msg); exit; } $nstatus = $_POST['nstatus']; $invdtl = $invOrdObj->select($iInvoiceID); // echo $nstatus; exit; // prints($Data); exit; //if($totusrs > 1) { $stsdtls = $statusmasterObj->getDetails('*', " AND eFor='Invoice' AND vStatus_en='Issued' "); $isusts = $stsdtls[0]['iStatusID']; $iprvsts = ""; $orgposl = @explode(",", $opf[0]['vInvoiceStatusLevel']); for ($l = 0; $l < count($orgposl); $l++) {