LOG CHANGED VIEW ISSUE RESOLVED PD REPORT FEEDBACK
This commit is contained in:
parent
d3bfec93d7
commit
bb21c22096
@ -665,7 +665,7 @@ class PD_Controller extends REST_Controller {
|
||||
if($pd_id != null || $pd_id != '' && $count != 0)
|
||||
{
|
||||
// CALL pdnotification Helper function to send pd alerts @ params pdid,pdstatus
|
||||
$logger = MYLOG::logFunction();
|
||||
$logger = MYLOG::logFunction(null,$pd_id);
|
||||
$logger->info("NEW PD Trigged : ".$pd_id,array('ENV'=>ENVIRONMENT,'DATA' => $pd_details));
|
||||
PDALERTS::pdnotification($pd_id);
|
||||
|
||||
@ -731,10 +731,11 @@ class PD_Controller extends REST_Controller {
|
||||
public function updatePDMaster_post()
|
||||
{
|
||||
$pd_details = $this->post('records');
|
||||
$logger = MYLOG::logFunction();
|
||||
|
||||
if((isset($pd_details['pd_id']) && $pd_details['pd_id'] != "" ) && (isset($pd_details['random_string']) && $pd_details['random_string'] != " "))
|
||||
{
|
||||
|
||||
$logger = MYLOG::logFunction(null,$pd_details['pd_id']);
|
||||
EXTERNAL_DIR_CHECK::checkExternalDirectory($pd_details['pd_id']);
|
||||
$exist_pd_details = $this->PD_Model->getPDMasterDetails($pd_details['pd_id']);
|
||||
//print_r($exist_pd_details);
|
||||
|
||||
@ -919,6 +920,11 @@ class PD_Controller extends REST_Controller {
|
||||
if($pd_id != "" || $pd_id != null)
|
||||
{
|
||||
|
||||
|
||||
if(!file_exists($this->external_path.'/pd_reports/'.$pd_id))
|
||||
{
|
||||
mkdir($this->external_path.'/pd_reports/'.$pd_id,0777);
|
||||
}
|
||||
//update Applicant details
|
||||
$fields = array('pd_co_applicant_id'=>$pd_details['pd_co_applicant_id'],'mobile_no' => $pd_details['mobile_no']);
|
||||
$where_condition_array = array('additional_pd_id' => $pd_id);
|
||||
@ -930,7 +936,7 @@ class PD_Controller extends REST_Controller {
|
||||
$id = $this->PD_Model->updateRecords($temp_data,PDADDRESS,$where_condition_array);
|
||||
|
||||
|
||||
$logger = MYLOG::logFunction();
|
||||
$logger = MYLOG::logFunction(null,$pd_id);
|
||||
$logger->info("TEMPLATE ASSIGN FUNCTIONALTIY CALLED AND TEMPLATED ID - ".$newpd['fk_pd_template_id']." CHOOSED",array('ENV'=>ENVIRONMENT,'Parent-PDID' => $newpd['parent_pd_id'],'Addresss ID'=>$newpd['fk_address_id'] ,'PDID' => $pd_id,'PD Type' => "Addtional PD",'Current_status' => $newpd['pd_status']));
|
||||
|
||||
|
||||
@ -997,11 +1003,12 @@ class PD_Controller extends REST_Controller {
|
||||
|
||||
public function assignPDTempalate($data)
|
||||
{
|
||||
$logger = MYLOG::logFunction();
|
||||
$logger->info("TEMPLATE ASSIGN FUNCTIONALTIY CALLED",array('ENV'=>ENVIRONMENT,'DATA' => $data));
|
||||
|
||||
//print_r($data);
|
||||
if(!is_array($data))
|
||||
{
|
||||
$logger = MYLOG::logFunction(null,$data);
|
||||
$logger->info("TEMPLATE ASSIGN FUNCTIONALTIY CALLED",array('ENV'=>ENVIRONMENT,'DATA' => $data));
|
||||
$fields = array('fk_lender_id','fk_product_id','fk_customer_segment','pd_status');
|
||||
$where_condition_array = array('pd_id' => $data);
|
||||
$res_array = $this->PD_Model->selectCustomRecords($fields,$where_condition_array,PDTRIGGER);
|
||||
@ -1018,6 +1025,8 @@ class PD_Controller extends REST_Controller {
|
||||
else
|
||||
{
|
||||
//print_r('else');
|
||||
$logger = MYLOG::logFunction(null,$data['pd_id']);
|
||||
$logger->info("TEMPLATE ASSIGN FUNCTIONALTIY CALLED",array('ENV'=>ENVIRONMENT,'DATA' => $data));
|
||||
$where_condition_array = array('fk_lender_id'=>$data['lender'] ,'fk_product_id'=> $data['product'],'fk_customer_segment'=> $data['customer_segment'],'isactive' => 1);
|
||||
}
|
||||
|
||||
@ -1362,7 +1371,7 @@ class PD_Controller extends REST_Controller {
|
||||
|
||||
if($pd_id_modified != "" || $pd_id_modified != null)
|
||||
{
|
||||
$logger = MYLOG::logFunction();
|
||||
$logger = MYLOG::logFunction(null,$records['pd_id']);
|
||||
$logger->info("PD UPDATED",array('ENV'=>ENVIRONMENT,'DATA' => $records,'Pre-Status' => 'TRIGGERED','Current_status' => $records['pd_status']));
|
||||
PDALERTS::pdnotification($records['pd_id']);
|
||||
$data['dataStatus'] = true;
|
||||
@ -2900,7 +2909,7 @@ class PD_Controller extends REST_Controller {
|
||||
|
||||
/*################### LOGGING #########################*/
|
||||
|
||||
$logger = MYLOG::logFunction();
|
||||
$logger = MYLOG::logFunction(null,$records['pdid']);
|
||||
$temp_array['pd_co_applicant_id'] = $new_co_appliacant_id;
|
||||
$logger->info("APPLICANT ADDED FROM GENERAL FORM - ENV (".ENVIRONMENT.")",$temp_array);
|
||||
|
||||
@ -2965,7 +2974,7 @@ class PD_Controller extends REST_Controller {
|
||||
{
|
||||
/*################### LOGGING #########################*/
|
||||
|
||||
$logger = MYLOG::logFunction();
|
||||
$logger = MYLOG::logFunction(null,$records['pdid']);
|
||||
|
||||
$logger->info("APPLICANT DELETED FROM GENERAL FORM ENV (".ENVIRONMENT.")",$new_applicant);
|
||||
|
||||
@ -3001,7 +3010,7 @@ class PD_Controller extends REST_Controller {
|
||||
|
||||
/*################### LOGGING #########################*/
|
||||
|
||||
$logger = MYLOG::logFunction();
|
||||
$logger = MYLOG::logFunction(null,$records['pdid']);
|
||||
$temp_array['pd_co_applicant_id'] = $new_co_appliacant_id;
|
||||
$logger->info("COMPANY ADDED AS APPLICANT FROM GENERAL FORM ENV (".ENVIRONMENT.")",$temp_array);
|
||||
|
||||
@ -3027,7 +3036,7 @@ class PD_Controller extends REST_Controller {
|
||||
{
|
||||
/*################### LOGGING #########################*/
|
||||
|
||||
$logger = MYLOG::logFunction();
|
||||
$logger = MYLOG::logFunction(null,$records['pdid']);
|
||||
//$temp_array['pd_co_applicant_id'] = $new_co_appliacant_id;
|
||||
$logger->info("COMPANY(APPLICANT) DELETED FROM GENERAL FORM ENV (".ENVIRONMENT.")",$company);
|
||||
|
||||
@ -4947,7 +4956,7 @@ class PD_Controller extends REST_Controller {
|
||||
function getSatelliteImage($pd_id)
|
||||
{
|
||||
$pdid = $pd_id;
|
||||
$logger = MYLOG::logFunction();
|
||||
$logger = MYLOG::logFunction(null,$pdid);
|
||||
|
||||
if(!file_exists($this->external_path.'/pd_reports/'.$pdid))
|
||||
{
|
||||
@ -5065,8 +5074,8 @@ class PD_Controller extends REST_Controller {
|
||||
$dsc_script_from_db = str_replace('{{html_content}}',$html_content,$dsc_script_from_db);
|
||||
$dsc_script_from_db = $i == 1 ? str_replace('{{img_name}}','dsc_business',$dsc_script_from_db) : str_replace('{{img_name}}','dsc_general',$dsc_script_from_db);
|
||||
//print_r($dsc_script_from_db);die();
|
||||
$logger = MYLOG::logFunction();
|
||||
$logger->info('Score Card Graphical Representation called',array('card_type' => $i,'script' => $dsc_script_from_db));
|
||||
//$logger = MYLOG::logFunction();
|
||||
//$logger->info('Score Card Graphical Representation called',array('card_type' => $i,'script' => $dsc_script_from_db));
|
||||
//echo $dsc_script_from_db;
|
||||
//echo "*************";
|
||||
file_put_contents(APPPATH.'/views/js/phantomdsc.js',$dsc_script_from_db);
|
||||
@ -5088,7 +5097,7 @@ class PD_Controller extends REST_Controller {
|
||||
}
|
||||
else
|
||||
{
|
||||
$logger->error('SCORE CARD SCRIPT NOT FOUND');
|
||||
//$logger->error('SCORE CARD SCRIPT NOT FOUND');
|
||||
}
|
||||
}
|
||||
|
||||
@ -5165,32 +5174,15 @@ class PD_Controller extends REST_Controller {
|
||||
{
|
||||
mkdir($this->external_path.'/pd_reports/'.$pdid,0761);
|
||||
}
|
||||
|
||||
// $pd_string = 'PD accessed-'.$pdid;
|
||||
// MYLOG::logFunction(null,$pdid)->info($pd_string,array('data' => 'Test LOg info'));
|
||||
// MYLOG::logFunction()->warning($pd_string,array('data' => 'Test LOg warn'));
|
||||
// MYLOG::logFunction()->error($pd_string,array('data' => 'Test LOg error'));
|
||||
// $this->load->helper('push_notification');
|
||||
// PUSH_NOTIFICATION::notifyWeb('fbm57p_E5xc:APA91bENk6ZH7J2kj03liCy0FzrtsYUgVjvoYnPBi4bu4UtGjqixn0Z_cUDHjCHeBWNcXlVozoo_uUKr8gwufcOQMfdRK19_sWN9jA5U1hRuwJTpIQKows6wYSHFH7kI4EnnUaj0FtK_','EST','test mesg from server',1);die();
|
||||
|
||||
|
||||
// $path = $_SERVER['DOCUMENT_ROOT'].'/ssa_external_data';
|
||||
// echo $path;
|
||||
// echo file_exists($path);
|
||||
// EXTERNAL_DIR_CHECK::checkExternalDirectory();
|
||||
// die();
|
||||
// $external_path = substr(APPPATH,0,strpos(APPPATH,'sparq'));
|
||||
// echo $external_path;
|
||||
// $external_path .= 'dev_external_data/sample/sample.html';
|
||||
// //$external_path .= 'sample.html';
|
||||
// $fp = fopen($external_path,'a');
|
||||
// $data = 'Hi';
|
||||
// fwrite($fp, $data);
|
||||
// fclose($fp);
|
||||
//$d = $_SERVER['DOCUMENT_ROOT'].'/ssa_external_data/'.ENVIRONMENT.'/program_logs/';
|
||||
//mkdir($d,0777);
|
||||
|
||||
|
||||
// PUSH_NOTIFICATION::notifyWeb('fbm57p_E5xc:APA91bENk6ZH7J2kj03liCy0FzrtsYUgVjvoYnPBi4bu4UtGjqixn0Z_cUDHjCHeBWNcXlVozoo_uUKr8gwufcOQMfdRK19_sWN9jA5U1hRuwJTpIQKows6wYSHFH7kI4EnnUaj0FtK_','EST','test mesg from server',1);
|
||||
//PDALERTS::pdnotification($pdid);
|
||||
//die();
|
||||
|
||||
//PDALERTS::pdnotification(1143);die();
|
||||
|
||||
//$this->demo(5);
|
||||
// $this->demo(0);
|
||||
// die();
|
||||
@ -5273,8 +5265,8 @@ class PD_Controller extends REST_Controller {
|
||||
//echo "*******************************************";
|
||||
$t = $this->load->view('report_templates/JSONTOREPORT',$data,true);
|
||||
//$t = $this->load->view('temp_html.html',null,true);
|
||||
//echo $t;
|
||||
//die();
|
||||
echo $t;
|
||||
die();
|
||||
|
||||
$total_replaces = substr_count($t,'<span class="tooltip">');
|
||||
//echo $total_replaces;
|
||||
@ -6307,7 +6299,7 @@ class PD_Controller extends REST_Controller {
|
||||
$result = array();
|
||||
$pd_details = $this->PD_Model->getPDMasterDetails($pd_id);
|
||||
//print_r($data);die();
|
||||
|
||||
EXTERNAL_DIR_CHECK::checkExternalDirectory($pd_id);
|
||||
foreach($data as $iter => $doc)
|
||||
{
|
||||
$temp_base64_string = $doc['image'];
|
||||
@ -6999,7 +6991,7 @@ class PD_Controller extends REST_Controller {
|
||||
$fk_createdby = $records['fk_createdby'];
|
||||
$random_string = $records['random_string'];
|
||||
$pd_report_time = date('Y-m-d-h-i-s');
|
||||
$pd_report_store = APPPATH.'views/pd_reports/'.$pdid.'/'.$pd_report_time.'.html';
|
||||
$pd_report_store = $this->external_path.'/pd_reports/'.$pdid.'/'.$pd_report_time.'.html';
|
||||
file_put_contents($pd_report_store,$content);
|
||||
|
||||
//Update Latest File name and qc edited status into trigger table
|
||||
@ -7015,7 +7007,7 @@ class PD_Controller extends REST_Controller {
|
||||
|
||||
if($update && $update_reports_version_blob && $pd_reports_version_blob_new)
|
||||
{
|
||||
$logger = MYLOG::logFunction();
|
||||
$logger = MYLOG::logFunction(null,$pdid);
|
||||
$logger->info('QC Edit Called',array('Edited by' => $fk_createdby,'DB Result' => $update .'-'. $update_reports_version_blob .'-'. $pd_reports_version_blob_new));
|
||||
$dat['dataStatus'] = true;
|
||||
$dat['status'] = REST_Controller::HTTP_OK;
|
||||
@ -7023,7 +7015,8 @@ class PD_Controller extends REST_Controller {
|
||||
$this->response($dat,REST_Controller::HTTP_OK);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
public function getPDReportHTML_get()
|
||||
{
|
||||
$pdid = $this->uri->segment(3);
|
||||
@ -7036,8 +7029,20 @@ class PD_Controller extends REST_Controller {
|
||||
$pd_data = $this->PD_Model->selectCustomRecords(array('pd_id','pd_report_html_filename'),array('random_string' => $random_string,'pd_id' => $pdid),PDTRIGGER);
|
||||
if(count($pd_data))
|
||||
{
|
||||
$view_name = 'pd_reports/'.$pd_data[0]['pd_id'].'/'.$pd_data[0]['pd_report_html_filename'].'.html';
|
||||
|
||||
$report_data = file_get_contents($this->external_path.'/pd_reports/'.$pd_data[0]['pd_id'].'/'.$pd_data[0]['pd_report_html_filename']);
|
||||
$temp_file_path = APPPATH.'views/pd_reports/'. $pd_data[0]['pd_id'] .'/temp.html';
|
||||
|
||||
if(!file_exists($temp_file_path))
|
||||
{
|
||||
mkdir(APPPATH.'views/pd_reports',0777);
|
||||
mkdir(APPPATH.'views/pd_reports/'.$pd_data[0]['pd_id'],0777);
|
||||
}
|
||||
file_put_contents($temp_file_path,$report_data);
|
||||
$view_name = 'pd_reports/'. $pd_data[0]['pd_id'] .'/temp.html';
|
||||
$this->load->view($view_name);
|
||||
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -7609,7 +7614,7 @@ class PD_Controller extends REST_Controller {
|
||||
// $incomplete_details[] = 'Client Section - '.$client_name .'- Images Not Found';
|
||||
// }
|
||||
}
|
||||
else if($value['trade_product_name'] == "" || (isset($value['trade_client_name'])) || $value['trade_client_name'] == "" )
|
||||
else if($value['trade_product_name'] == "" || (isset($value['trade_client_name'])) && $value['trade_client_name'] == "" )
|
||||
{
|
||||
$insufficient_client_info++;
|
||||
}
|
||||
@ -7666,8 +7671,9 @@ class PD_Controller extends REST_Controller {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
//echo $client_count;die();
|
||||
if($client_form['bill_info'] == 'yes' && $client_count && (count($client_images) < 3) ){ $incomplete_details[] = 'Client Section - Images not sufficient';}
|
||||
if(isset($client_form['bill_info']) && $client_form['bill_info'] == 'yes' && $client_count && (count($client_images) < 3) ){ $incomplete_details[] = 'Client Section - Images not sufficient';}
|
||||
if($insufficient_client_info){ $incomplete_details[] = 'Client Section - Information Not Sufficient';}
|
||||
}
|
||||
|
||||
|
||||
@ -6,7 +6,7 @@ class EXTERNAL_DIR_CHECK
|
||||
|
||||
|
||||
// Create the logger
|
||||
public static function checkExternalDirectory() //$msg,$data,$log_type
|
||||
public static function checkExternalDirectory($pd_id = null) //$msg,$data,$log_type
|
||||
{
|
||||
//echo 'EXTERNAL_DIR_CHECK called';
|
||||
$path = $_SERVER['DOCUMENT_ROOT'].'/ssa_external_data';
|
||||
@ -30,6 +30,15 @@ class EXTERNAL_DIR_CHECK
|
||||
}
|
||||
}
|
||||
|
||||
if($pd_id != null)
|
||||
{
|
||||
$pd_folder = $array[3].'/'.$pd_id;
|
||||
if(!file_exists($pd_folder))
|
||||
{
|
||||
mkdir($pd_folder,0761);
|
||||
}
|
||||
}
|
||||
|
||||
// $fp = fopen($path.'/ci_logs/sample.html','a');
|
||||
// $data = '<h1>WELCOME</h1>';
|
||||
// fwrite($fp, $data);
|
||||
@ -51,9 +60,6 @@ class EXTERNAL_DIR_CHECK
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@ -130,8 +130,9 @@ class INLINEPHOTOTRANSFORM
|
||||
$temp_base64_string = $base64;
|
||||
$title = $doc_name;
|
||||
$external_path = $CI->config->item('extrenal_data_path');
|
||||
$output_file = $external_path."/pd_reports/". $pd_details[0]['pd_id'] ."temp_base64_image.jpeg";
|
||||
$output_file = $external_path."/pd_reports/". $pd_details[0]['pd_id'] ."/temp_base64_image.jpeg";
|
||||
|
||||
EXTERNAL_DIR_CHECK::checkExternalDirectory($pd_details[0]['pd_id']);
|
||||
//Generate Random File Name
|
||||
$characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
|
||||
$charactersLength = strlen($characters);
|
||||
|
||||
@ -6,13 +6,16 @@ class MYLOG
|
||||
|
||||
|
||||
// Create the logger
|
||||
public static function logFunction($dynamic = null) //$msg,$data,$log_type
|
||||
public static function logFunction($dynamic = null,$pd_id = null) //$msg,$data,$log_type
|
||||
{
|
||||
$CI =& get_instance();
|
||||
$channel = $dynamic ? $dynamic : 'pdgenie_logger';
|
||||
$log_folder = $dynamic ? 'request_logs' : 'syslogs';
|
||||
$log_folder = $dynamic ? $CI->config->item('external_data_path').'/api_request_logs': $CI->config->item('external_data_path').'/app_logs';
|
||||
include_once APPPATH.'/vendor/autoload.php';
|
||||
$logger = new \Monolog\Logger($channel);
|
||||
$streamHandler = new \Monolog\Handler\StreamHandler(APPPATH.$log_folder.'/ssa_app_'.date('Y-m-d').'.html', $logger::DEBUG);
|
||||
$log_folder_path = $log_folder.'/ssa_app_'.date('Y-m-d').'.html';
|
||||
if($pd_id != null) { $log_folder_path = $log_folder.'/'. $pd_id .'.html';}
|
||||
$streamHandler = new \Monolog\Handler\StreamHandler($log_folder_path, $logger::DEBUG);
|
||||
$streamHandler->setFormatter(new \Monolog\Formatter\HtmlFormatter());
|
||||
$browserHanlder = new \Monolog\Handler\BrowserConsoleHandler($logger);
|
||||
$logger->pushProcessor(new \Monolog\Processor\WebProcessor());
|
||||
@ -51,13 +54,16 @@ class MYLOG
|
||||
}
|
||||
|
||||
|
||||
public static function logFunction2($dynamic = null) //$msg,$data,$log_type
|
||||
public static function logPD($dynamic = null,$pd_id = null) //$msg,$data,$log_type
|
||||
{
|
||||
$channel = 'external';
|
||||
$log_folder = $dynamic ? $dynamic : 'syslogs';
|
||||
include_once APPPATH.'/vendor/autoload.php';
|
||||
$CI =& get_instance();
|
||||
$channel = $dynamic ? $dynamic : 'pdgenie_logger';
|
||||
$log_folder = $dynamic ? $CI->config->item('external_data_path').'/api_request_logs': $CI->config->item('external_data_path').'/app_logs';
|
||||
$logger = new \Monolog\Logger($channel);
|
||||
$streamHandler = new \Monolog\Handler\StreamHandler($log_folder.'/ssa_app_'.date('Y-m-d').'.html', $logger::DEBUG);
|
||||
$path_file_name = $log_folder.'/ssa_app_'.date('Y-m-d').'.html';
|
||||
if($pd_id != null) { $path_file_name = $log_folder.'/'.$pd_id.'.html';}
|
||||
|
||||
$streamHandler = new \Monolog\Handler\StreamHandler($path_file_name, $logger::DEBUG);
|
||||
$streamHandler->setFormatter(new \Monolog\Formatter\HtmlFormatter());
|
||||
$logger->pushHandler($streamHandler);
|
||||
|
||||
|
||||
@ -12,11 +12,11 @@ class PUSH_NOTIFICATION
|
||||
|
||||
if($web_token != "" || $web_token != null)
|
||||
{
|
||||
PUSH_NOTIFICATION::notifyWeb($web_token,$pd_status,$msg,$additional_data);
|
||||
PUSH_NOTIFICATION::notifyWeb($web_token,$msg,$additional_data);
|
||||
}
|
||||
if($mob_token != "" || $mob_token != null)
|
||||
{
|
||||
PUSH_NOTIFICATION::notifyMob($mob_token,$pd_status,$msg,$additional_data);
|
||||
PUSH_NOTIFICATION::notifyMob($mob_token,$msg,$additional_data);
|
||||
}
|
||||
|
||||
|
||||
@ -81,7 +81,7 @@ class PUSH_NOTIFICATION
|
||||
curl_close( $ch );
|
||||
$CI =&get_instance();
|
||||
//print_r($result);
|
||||
MYLOG::logFunction()->info("PUSH NOTIFICATION ",array('firebase_result' => $result,'additional_data' => $additional_data,'token_type' => ($type == 1? 'WEB' : 'MOB'),'token' => $token));
|
||||
MYLOG::logFunction(null,$additional_data['pd_id'])->info("PUSH NOTIFICATION ",array('firebase_result' => $result,'additional_data' => $additional_data,'token_type' => ($type == 1? 'WEB' : 'MOB'),'token' => $token));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -18,7 +18,7 @@ class SMS_GUPSHUP
|
||||
$response = $client->post($sms_api_url);
|
||||
$contents = (string) $response->getBody();
|
||||
|
||||
$logger = MYLOG::logFunction();
|
||||
$logger = MYLOG::logFunction(null,$additional_data['pd_id']);
|
||||
$logger->info("Msg Send Status",array('response_data' => $contents,'mobile_no' => $no,'msg' => $msg,'sms_api_url' => $sms_api_url,'additional_data' => $additional_data));
|
||||
|
||||
}
|
||||
|
||||
@ -2614,7 +2614,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
$temp['supplier_name_for_photo'] = $name_for_photo;
|
||||
$temp['supplier_second_row'] = $supplier_second_row.'</tr>';
|
||||
|
||||
$temp['supplier_third_row'] = '<tr><td class="customtd">3</td><td class="customtd_leftalign">Mobile Number </td>'.'<td class="customtd">'. (isset($raw['manufacturing_contact_person_mobile_number']) ? $raw['manufacturing_contact_person_mobile_number'].'</td></tr>' : 'Not Provided' .'</td></tr>');
|
||||
$temp['supplier_third_row'] = '<tr><td class="customtd">3</td><td class="customtd_leftalign">Mobile Number </td>'.'<td class="customtd">'. ($raw['manufacturing_contact_person_mobile_number'] ? $raw['manufacturing_contact_person_mobile_number'].'</td></tr>' : 'Not Provided' .'</td></tr>');
|
||||
|
||||
$temp['supplier_fourth_row'] = '<tr><td class="customtd">4</td><td class="customtd_leftalign">Landline No</td>';
|
||||
|
||||
@ -2665,7 +2665,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
$supplier_second_row .= ' '.$tradeRow['trade_supplier_name'].'</td>';
|
||||
$temp['supplier_second_row'] = $supplier_second_row.'</tr>';
|
||||
|
||||
$temp['supplier_third_row'] = '<tr><td class="customtd">3</td><td class="customtd_leftalign">Mobile Number </td>'.'<td class="customtd">'. (isset($tradeRow['trade_product_contact_person_mobile_number']) ? $tradeRow['trade_product_contact_person_mobile_number'].'</td></tr>' : 'Not Provided' .'</td></tr>');
|
||||
$temp['supplier_third_row'] = '<tr><td class="customtd">3</td><td class="customtd_leftalign">Mobile Number </td>'.'<td class="customtd">'. ($tradeRow['trade_product_contact_person_mobile_number'] ? $tradeRow['trade_product_contact_person_mobile_number'].'</td></tr>' : 'Not Provided' .'</td></tr>');
|
||||
|
||||
$temp['supplier_fourth_row'] = '<tr><td class="customtd">4</td><td class="customtd_leftalign">Landline No</td>';
|
||||
|
||||
@ -2717,7 +2717,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
$supplier_second_row .= ' '.$serviceRow['service_provider_supplier_name'].'</td>';
|
||||
$temp['supplier_second_row'] = $supplier_second_row.'</tr>';
|
||||
|
||||
$temp['supplier_third_row'] = '<tr><td class="customtd">3</td><td class="customtd_leftalign">Mobile Number </td>'.'<td class="customtd">'. (isset($serviceRow['service_provider_contact_person_mobile_number']) ? $serviceRow['service_provider_contact_person_mobile_number'].'</td></tr>' : 'Not Provided' .'</td></tr>');
|
||||
$temp['supplier_third_row'] = '<tr><td class="customtd">3</td><td class="customtd_leftalign">Mobile Number </td>'.'<td class="customtd">'. ($serviceRow['service_provider_contact_person_mobile_number'] ? $serviceRow['service_provider_contact_person_mobile_number'].'</td></tr>' : 'Not Provided' .'</td></tr>');
|
||||
|
||||
$temp['supplier_fourth_row'] = '<tr><td class="customtd">4</td><td class="customtd_leftalign">Landline No</td>';
|
||||
|
||||
@ -3754,7 +3754,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
foreach($pd_processed_forms[19] as $rowKey=> $nrcRow) {
|
||||
$neighbourRefRow = json_decode($nrcRow['processed_json'],true);
|
||||
//print_r($applicants_details);
|
||||
//print_r($neighbourRefRow);
|
||||
//print_r($neighbourRefRow);die();
|
||||
$neighbourhood_form_common_remarks = $neighbourRefRow['neighbour_reference_remark'];
|
||||
if(strcasecmp($neighbourRefRow['neighbourhood_status'],'could not verify')){
|
||||
$pd_offiecer_status_about_neighbor = $neighbourRefRow['neighbourhood_status'];
|
||||
@ -3764,14 +3764,17 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
$existNeighRefCheck=NEIGHBOURREFERENCECHECKFORM::getNeighbourhoodDetails($company_name,$neighbourRefRow['neighbourhood_list'],$pd_master_details[0],$applicants_details);//applicants_details comes from controller
|
||||
}
|
||||
}
|
||||
// if(&& count($neighbourRefRow['referencecheck_list'])>0){
|
||||
// if(&& count($neighbourRefRow['referencecheck_list'])>0){
|
||||
// $existNeighRefCheck=NEIGHBOURREFERENCECHECKFORM::getReferenceDetails($neighbourRefRow['referencecheck_list'],$pd_master_details[0]);
|
||||
// }
|
||||
}
|
||||
?>
|
||||
|
||||
<h3>Neighbourhood / Reference Check</h3>
|
||||
<?php if(count($existNeighRefCheck)>0){
|
||||
<?php
|
||||
|
||||
//echo $pd_offiecer_status_about_neighbor;
|
||||
if(count($existNeighRefCheck)>0){
|
||||
//print_r($existNeighRefCheck);
|
||||
?>
|
||||
|
||||
@ -3785,16 +3788,18 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
<li style="margin: 15px 0;"><?php echo $nfValue['neighbourhood_do_know']; ?></li>
|
||||
<li style="margin: 15px 0;"><?php echo $nfValue['neighbourhood_business_running_yr']; ?></li>
|
||||
<li style="margin: 15px 0;"><?php echo $nfValue['ownership']; ?>
|
||||
<?php if(count($existNeighRefCheck) == $nkey){?>
|
||||
<li style="margin: 15px 0;"> Neighbourhood Check Status is <span style="font-size:16px;font-weight:bold;"><?php echo $pd_offiecer_status_about_neighbor;}?>.</span></li>
|
||||
</li>
|
||||
</ul>
|
||||
<?php }
|
||||
?>
|
||||
<?php }?>
|
||||
|
||||
<li style="margin: 15px 0;"> Neighbourhood Check Status is <span style="font-size:16px;font-weight:bold;"><?php echo $pd_offiecer_status_about_neighbor;?>.</span></li>
|
||||
</li>
|
||||
|
||||
|
||||
<?php }
|
||||
|
||||
<?php
|
||||
}
|
||||
else{?>
|
||||
<!-- <p>Status of check: Could Not Verify. <br>Neighbour Check was not possible due to Could not verify</p> -->
|
||||
<p>Neighbour Check was not possible due to Could not verify</p>
|
||||
|
||||
<?php
|
||||
|
||||
Loading…
Reference in New Issue
Block a user