$award_status = $stMstrObj->getDetails('iStatusId', " AND vForAuction Like '%RFQ2 Award,%' AND (eType='Default' OR vStatus_en IN ('Create','Verify')) ");
 $awardstslvl = array();
 if (is_array($award_status) && count($award_status) > 0) {
     for ($l = 0; $l < count($award_status); $l++) {
         $awardstslvl[] = $award_status[$l]['iStatusId'];
     }
 }
 if (isset($_POST['vRFQ2AwardStatusLevel'])) {
     $awardstslvl = array_merge($awardstslvl, $_POST['vRFQ2AwardStatusLevel']);
 }
 sort($awardstslvl);
 $awardstslvl = @implode(',', $awardstslvl);
 $Data['vRFQ2AwardStatusLevel'] = $awardstslvl;
 // prints($Data); exit;
 $Data['dCreatedDate'] = calcGTzTime(date('Y-m-d H:i:s'), 'Y-m-d H:i:s');
 $orgprefObj->setAllVar($Data);
 $res = $orgprefObj->insert();
 //INSERT THIS RECORD IN ORGANIZATION_MASTER_TOVERIFY TABLE
 $insID = $gdbobj->getMaxId(PRJ_DB_PREFIX . "_organization_default_settings", 'iAdditionalInfoID');
 $Data1 = $Data;
 $Data1['iAdditionalInfoID'] = $insID[0]['id'];
 /*foreach($Data1 as $k=>$v) {
      $Data1[$k] = trim($v);
   }*/
 $orgPrefVrfObj->setAllVar($Data1);
 $res = $orgPrefVrfObj->insert();
 // echo $res; exit;
 if ($res) {
     $orgdtls = $orgObj->select($iOrganizationID);
     if (($orgdtls[0]['eStatus'] == 'Active' || $orgdtls[0]['eStatus'] == 'Inactive') && $orgdtls[0]['eNeedToVerify'] != 'Yes') {
         $rdt['iModifiedByID'] = $_SESSION['SESS_' . PRJ_CONST_PREFIX . '_ID'];
Example #2
0
         $oprfdt['vRFQ2AwardAcceptLevel'] = $awardacceptstslvl;
         //
         $award_status = $stMstrObj->getDetails('iStatusId', " AND vForAuction Like '%RFQ2 Award,%' AND (eType='Default' OR vStatus_en IN ('Create','Verify')) ");
         $awardstslvl = array();
         if (is_array($award_status) && count($award_status) > 0) {
             for ($l = 0; $l < count($award_status); $l++) {
                 $awardstslvl[] = $award_status[$l]['iStatusId'];
             }
         }
         sort($awardstslvl);
         $awardstslvl = @implode(',', $awardstslvl);
         $oprfdt['vRFQ2AwardStatusLevel'] = $awardstslvl;
         // prints($oprfdt); exit;
         $oprfdt['vCurrency'] = $odata['vAccount1Currency'];
         $oprfdt['dCreatedDate'] = calcGTzTime(date('Y-m-d H:i:s'), 'Y-m-d H:i:s');
         $orgprefObj->setAllVar($oprfdt);
         $drs = $orgprefObj->insert();
         if ($drs > 0) {
             $oprfdt['iAdditionalInfoID'] = $drs;
             $orgPrefVrfObj->setAllVar($oprfdt);
             $vds = $orgPrefVrfObj->insert($oprfdt);
         }
     }
     // pr($udata); exit;
     //
 }
 //
 $swh = " AND iSMID!='{$sess_id}' AND eStatus='Active' AND eEmailNotification='Yes' ";
 $arr = $secManObj->getDetails('*', $swh);
 /* $semail = array();  */
 //