Example #1
0
}
if (!isset($rfq2awObj)) {
    include_once SITE_CLASS_APPLICATION . "user/class.Rfq2Award.php";
    $rfq2awObj = new Rfq2Award();
}
if (!isset($rfq2bidObj)) {
    include_once SITE_CLASS_APPLICATION . "user/class.Rfq2Bids.php";
    $rfq2bidObj = new Rfq2Bids();
}
$iInvoiceID = PostVar('invoiceid');
$iPurchaseOrderID = PostVar('poid');
// $orgdtls = $orgObj->select($curORGID);
$dtls = array();
if (trim($iInvoiceID) != '' && $iInvoiceID > 0) {
    $dtls = $invOrdObj->select($iInvoiceID);
    $bdtls = $bnkObj->select($dtls[0]['iBankId']);
    if ($dtls[0]['iPurchaseOrderID'] != "" && $dtls[0]['iPurchaseOrderID'] != "0") {
        $rfq2_dets = $rfq2Obj->getDetails('*', " AND iPurchaseOrderID = '" . $dtls[0]['iPurchaseOrderID'] . "' ");
        if (count($rfq2_dets) > 0) {
            $awrdtls = $rfq2awObj->getDetails('*', " AND iRFQ2Id='" . $rfq2_dets[0]['iRFQ2Id'] . "' ");
            $bid_dtls = $rfq2bidObj->getDetails('*', " AND iBidId='" . $awrdtls[0]['iBidId'] . "' ");
            $dtls[0]['fPOAwardAdvace'] = $bid_dtls[0]['fBidAdvanceTotal'];
            $dtls[0]['fPOAwardPrice'] = $bid_dtls[0]['fBidPriceTotal'];
            $dtls[0]['fPOAwardAmount'] = $bid_dtls[0]['fBidAmount'];
        }
    }
}
if (trim($iPurchaseOrderID) != '' && $iPurchaseOrderID > 0) {
    $dtls = $purOrdObj->select($iPurchaseOrderID);
}
if (trim($iInvoiceID) != '' && $iInvoiceID > 0) {
Example #2
0
}
if (!isset($cntstObj)) {
    include_once SITE_CLASS_GEN . "class.countrystate.php";
    $cntstObj = new CountryState();
}
$gdbobj->getRequestVars();
$view = GetVar("view");
$iBankId = GetVar("iBankId");
$actionfile = GetVar("file");
$arr = array();
$arr[0]['var_msg'] = isset($arr[0]['var_msg']) ? $arr[0]['var_msg'] : '';
if (count($_POST) > 0) {
    $arr[0] = $_POST;
} else {
    if ($view == 'edit') {
        $arr = $bankObj->select($iBankId);
        // prints($arr);exit;
        $vPhone = explode("-", $arr[0]['vPhone']);
        $vPhone1 = $vPhone[0];
        $vPhone2 = isset($vPhone[1]) ? $vPhone[1] : '';
    } else {
        $view = "add";
    }
}
//Get State Array
$state = $cntstObj->getgeneralArr(PRJ_DB_PREFIX . "_state_master", " AND eStatus='Active'", "vStateCode", "vState", "vCountryCode", "vStateCode,vState,vCountryCode");
$stateArr = $state[0];
$db_country = $countryObj->getCountryDetail("iCountryId,vCountry,vCountryCode", "AND eStatus = 'Active'");
//prints($db_country);exit;
$db_state = $stateObj->getStateDetail("iStateId, vStateCode, vState", "AND eStatus = 'Active'", "vState");
//prints($db_state);exit;