TELE PD REPORTS ALL
This commit is contained in:
parent
211d7bf31b
commit
2cf2a5eb74
@ -22,7 +22,8 @@
|
||||
"tecnickcom/tcpdf": "^6.2",
|
||||
"phpmailer/phpmailer": "^6.0",
|
||||
"php-curl-class/php-curl-class": "^8.5",
|
||||
"guzzlehttp/guzzle": "^6.3"
|
||||
"guzzlehttp/guzzle": "^6.3",
|
||||
"twilio/sdk": "^6.10"
|
||||
|
||||
},
|
||||
"suggest": {
|
||||
|
||||
@ -93,6 +93,7 @@ defined('ROUTE_LOGIN_Z') OR define('ROUTE_LOGIN_Z', 'getSalesPDImgDataCus
|
||||
defined('ROUTE_LOGIN_W') OR define('ROUTE_LOGIN_W', 'saveSalesPDImage'); // no errors
|
||||
defined('ROUTE_LOGIN_V') OR define('ROUTE_LOGIN_V', 'generateSatelliteImg'); // no errors
|
||||
defined('ROUTE_LOGIN_A') OR define('ROUTE_LOGIN_A', 'getAuditedImages'); // no errors
|
||||
defined('TURN_SERVER_API') OR define('TURN_SERVER_API', 'getServerInfo'); // no errors
|
||||
//defined('ROUTE_LOGIN') OR define('ROUTE_LOGIN','getFullPDDetails'); // no errors
|
||||
|
||||
/*********************AWS resources Constants*************************************************/
|
||||
|
||||
@ -84,6 +84,7 @@ $route['getProduct'] = 'Common_Masters_Controller/getProduct';
|
||||
$route['getCustomerSegment'] = 'Common_Masters_Controller/getCustomerSegment';
|
||||
$route['(checkAppVersion/:any)'] = 'Common_Masters_Controller/checkAppVersion';
|
||||
$route['getCommonConfig'] = 'Common_Masters_Controller/getCommonConfig';
|
||||
$route['getServerInfo'] = 'Common_Masters_Controller/getServerInfo';
|
||||
|
||||
|
||||
|
||||
|
||||
@ -1205,4 +1205,27 @@ class Common_Masters_Controller extends REST_Controller {
|
||||
$data['records'] = $config;
|
||||
$this->response($data,REST_Controller::HTTP_OK);
|
||||
}
|
||||
|
||||
|
||||
public function getServerInfo_get()
|
||||
{
|
||||
$this->load->library('Twlio');
|
||||
$d = $this->twlio->getServerInfo();
|
||||
|
||||
if($d)
|
||||
{
|
||||
$data['dataStatus'] = true;
|
||||
$data['status'] = REST_Controller::HTTP_OK;
|
||||
$data['records'] = $d;
|
||||
$this->response($data,REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
{
|
||||
$data['dataStatus'] = false;
|
||||
$data['status'] = REST_Controller::HTTP_NO_CONTENT;
|
||||
$data['msg'] = 'Something went wrong!';
|
||||
$this->response($data,REST_Controller::HTTP_OK);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@ -38,6 +38,7 @@ class PD_Controller extends REST_Controller {
|
||||
$this->load->helper('MYUTIL');
|
||||
$this->load->helper('satellite_image');
|
||||
$this->load->library('pdfgenerator');
|
||||
|
||||
//$this->load->library('excel');
|
||||
$this->load->library('phpmailer_library');
|
||||
}
|
||||
@ -4925,7 +4926,24 @@ public function getPDFormDetailsJSON_post()
|
||||
else if($data['pd_master_details'][0]['fk_pd_type'] == 3) //Tele PD
|
||||
{
|
||||
|
||||
$t = $this->load->view('report_templates/JSONTOREPORT_DI_AI_TELE_PD',$data,true);
|
||||
if($data['pd_master_details'][0]['lender_short_name'] == 'CLIX' || ($data['pd_master_details'][0]['lender_short_name'] == 'MWISE'))// && $data['pd_master_details'][0]['product_abbr'] == 'BL'))
|
||||
{
|
||||
$t = $this->load->view('report_templates/JSONTOREPORT_CLIX_TELE_PD',$data,true);
|
||||
}
|
||||
else if($data['pd_master_details'][0]['customer_segment_abbr'] == 'SAL')
|
||||
{
|
||||
$t = $this->load->view('report_templates/JSONTOREPORT_SAL_TELE_PD',$data,true);
|
||||
}
|
||||
else if($data['pd_master_details'][0]['customer_segment_abbr'] == 'SE-RI')
|
||||
{
|
||||
$t = $this->load->view('report_templates/JSONTOREPORT_RI_TELE_PD',$data,true);
|
||||
|
||||
}
|
||||
else if($data['pd_master_details'][0]['customer_segment_abbr'] == 'SE-DI' || $data['pd_master_details'][0]['customer_segment_abbr'] == 'SE-AI' || $data['pd_master_details'][0]['customer_segment_abbr'] == 'SEP_INDV')
|
||||
{
|
||||
$t = $this->load->view('report_templates/JSONTOREPORT_DI_AI_TELE_PD',$data,true);
|
||||
|
||||
}
|
||||
}
|
||||
// }
|
||||
// else
|
||||
@ -6006,6 +6024,13 @@ public function getPDFormDetailsJSON_post()
|
||||
|
||||
public function codeigniterViewTest_post()
|
||||
{
|
||||
|
||||
|
||||
// $records = $this->post('records');
|
||||
// $pd_master_details = $this->PD_Model->getPDMasterDetails($records['pd_id']);
|
||||
// $video_key = '9dBgX9Lg';
|
||||
// $final_video_name = $records['pd_id'].'-'.$video_key;
|
||||
// $this->mergeVideo($records['pd_id'],$pd_master_details,$final_video_name,$video_key);die();
|
||||
// $msg = "OTP for starting your personal discussions with the verification officer is 999999.Pls share this only when the officer has reached your place in person.";
|
||||
// $res = SMS_GUPSHUP::sendSMS($msg,9715454901 ,array(),true);
|
||||
//print_r($res);
|
||||
@ -6292,7 +6317,24 @@ public function getPDFormDetailsJSON_post()
|
||||
}
|
||||
else if($data['pd_master_details'][0]['fk_pd_type'] == 3) //Tele PD
|
||||
{
|
||||
$t = $this->load->view('report_templates/JSONTOREPORT_DI_AI_TELE_PD',$data,true);
|
||||
if($data['pd_master_details'][0]['lender_short_name'] == 'CLIX' || ($data['pd_master_details'][0]['lender_short_name'] == 'MWISE'))// && $data['pd_master_details'][0]['product_abbr'] == 'BL'))
|
||||
{
|
||||
$t = $this->load->view('report_templates/JSONTOREPORT_CLIX_TELE_PD',$data,true);
|
||||
}
|
||||
else if($data['pd_master_details'][0]['customer_segment_abbr'] == 'SAL')
|
||||
{
|
||||
$t = $this->load->view('report_templates/JSONTOREPORT_SAL_TELE_PD',$data,true);
|
||||
}
|
||||
else if($data['pd_master_details'][0]['customer_segment_abbr'] == 'SE-RI')
|
||||
{
|
||||
$t = $this->load->view('report_templates/JSONTOREPORT_RI_TELE_PD',$data,true);
|
||||
|
||||
}
|
||||
else if($data['pd_master_details'][0]['customer_segment_abbr'] == 'SE-DI' || $data['pd_master_details'][0]['customer_segment_abbr'] == 'SE-AI' || $data['pd_master_details'][0]['customer_segment_abbr'] == 'SEP_INDV')
|
||||
{
|
||||
$t = $this->load->view('report_templates/JSONTOREPORT_DI_AI_TELE_PD',$data,true);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
@ -9487,7 +9529,7 @@ public function getCompaniesListsFromGeneralFormRawJSON_post()
|
||||
$file_type = explode('/', ($_FILES['video_file']['type']))[1];
|
||||
$folder_to_check = XLPATH.'/pd_reports/'.$records['pd_id'].'/videos';
|
||||
//echo $folder_to_check;//die();
|
||||
if(!file_exists($folder_to_check)) { mkdir($folder_to_check,0777); }
|
||||
if(!file_exists($folder_to_check)) { mkdir(XLPATH.'/pd_reports/'.$records['pd_id'],0777); mkdir($folder_to_check,0777); }
|
||||
//die();
|
||||
$config = array('upload_path' => $folder_to_check,'overwrite' => TRUE,'allowed_types' => '*','file_name' => $file_name_wo_extension.'.'.$file_type);
|
||||
$this->load->library('upload', $config);
|
||||
@ -9514,7 +9556,7 @@ public function getCompaniesListsFromGeneralFormRawJSON_post()
|
||||
log_message('ERROR','###PDVIDEO stored in S3'.$records['pd_id']);
|
||||
$record_data = array('fk_pd_id' => $records['pd_id'],'video_part_name'=>$records['filename'],'video_key' => $records['video_key']);
|
||||
$id = $this->PD_Model->saveRecords($record_data,CUS_VIDEO);
|
||||
unlink($folder_to_check.'/'.$file_name_wo_extension.'webm');
|
||||
unlink($folder_to_check.'/'.$file_name_wo_extension.'.webm');
|
||||
unlink($folder_to_check.'/'.$file_name_wo_extension.'.mp4');
|
||||
|
||||
}
|
||||
@ -9580,10 +9622,11 @@ public function getCompaniesListsFromGeneralFormRawJSON_post()
|
||||
$pd_id = $this->post('pd_id');
|
||||
$random_string = $this->post('random_string');
|
||||
$pd_master_details = $this->PD_Model->getPDMasterDetails($pd_id,$random_string);
|
||||
//$pd_master_details = $this->PD_Model->getPDMasterDetails($pd_id);//,$random_string);
|
||||
$bucket_name = LENDER_BUCKET_NAME_PREFIX.$pd_master_details[0]['fk_lender_id'];
|
||||
$result_data = array();
|
||||
//echo $bucket_name;
|
||||
$query = "SELECT * FROM ".CUS_VIDEO." where fk_pd_id = $pd_id group by video_key";
|
||||
$query = "SELECT * FROM ".CUS_VIDEO." where fk_pd_id = $pd_id and is_active = 1 group by video_key";
|
||||
//$video_info = $this->PD_Model->selectCustomRecords(array('*'),array('fk_pd_id' => $pd_id,'is_active' => 1,'video_key' => $video_key),CUS_VIDEO);
|
||||
$video_info = $this->db->query($query);
|
||||
if($video_info->num_rows())
|
||||
@ -9593,9 +9636,9 @@ public function getCompaniesListsFromGeneralFormRawJSON_post()
|
||||
{
|
||||
if($value['video_key'] != null && $value['video_key'] != "")
|
||||
{
|
||||
$video_name = $pd_id.'-'.$value['video_key'].'.webm';
|
||||
$video_name = $pd_id.'-'.$value['video_key'].'.mp4';
|
||||
$final_key = 'pd'.$pd_id.'/video/'.$video_name;
|
||||
$singed_uri = $this->aws_s3->getSingleObjectInaBucketAsSignedURI($bucket_name,$final_key,'+3 hrs');
|
||||
$singed_uri = $this->aws_s3->getSingleObjectInaBucketAsSignedURI($bucket_name,$final_key,'+7 days');
|
||||
$result_data[] = array('video_name' => $video_name, 'url' => $singed_uri);
|
||||
}
|
||||
}
|
||||
@ -9627,8 +9670,9 @@ public function getCompaniesListsFromGeneralFormRawJSON_post()
|
||||
//prit_r($pd_master_details);die();
|
||||
// if(count($pd_master_details) && isset($pd_master_details[0]['pd_id']))
|
||||
// {
|
||||
|
||||
$bucket_name = LENDER_BUCKET_NAME_PREFIX.$pd_master_details[0]['fk_lender_id'];
|
||||
$final_key = 'pd'.$pd_master_details[0]['pd_id'].'/video/'.$final_video_name.'.webm';
|
||||
$final_key = 'pd'.$pd_master_details[0]['pd_id'].'/video/'.$final_video_name.'.mp4';
|
||||
|
||||
//Get all video info
|
||||
$video_info = $this->PD_Model->selectCustomRecords(array('*'),array('fk_pd_id' => $pd_id,'is_active' => 1,'video_key' => $video_key),CUS_VIDEO);
|
||||
@ -9649,7 +9693,8 @@ public function getCompaniesListsFromGeneralFormRawJSON_post()
|
||||
|
||||
$file_name_wo_extension = explode('.', ($video_info_value['video_part_name']))[0];
|
||||
|
||||
fwrite($file_pointer,"file "."'".$file_name_wo_extension.".mp4"."'\n");
|
||||
//fwrite($file_pointer,"file "."'".$file_name_wo_extension.".mp4"."'\n");
|
||||
fwrite($file_pointer,"file "."'".$file_name_wo_extension."'\n");
|
||||
}
|
||||
}
|
||||
fclose($file_pointer);
|
||||
@ -9667,17 +9712,18 @@ public function getCompaniesListsFromGeneralFormRawJSON_post()
|
||||
$s3result= $this->aws_s3->uploadFileToS3Bucket($bucket_data);
|
||||
if(is_object($s3result) && $s3result['ObjectURL'] != '' && $s3result['@metadata']['statusCode'] == 200)
|
||||
{
|
||||
log_message('ERROR','###PDVIDEO final video stored in S3'.$pd_id);
|
||||
log_message('ERROR','###PDVIDEO merged video stored in S3'.$pd_id);
|
||||
$record_data = array('is_video_merged' => 1);
|
||||
$id = $this->PD_Model->updateRecords($record_data,PDTRIGGER,array('pd_id' => $pd_id));
|
||||
unlink($folder_to_check.'/'.$final_video_name.'.mp4');
|
||||
|
||||
}
|
||||
|
||||
foreach($video_info as $video_info_key => $video_info_value)
|
||||
{
|
||||
$file_name_wo_extension = explode('.', ($video_info_value['video_part_name']))[0];
|
||||
//unlink($folder_to_check.'/'.$file_name_wo_extension.'.ts');
|
||||
unlink($folder_to_check.'/'.$file_name_wo_extension.'.mp4');
|
||||
unlink($folder_to_check.'/'.$file_name_wo_extension);
|
||||
}
|
||||
|
||||
|
||||
@ -9691,7 +9737,7 @@ public function getCompaniesListsFromGeneralFormRawJSON_post()
|
||||
}
|
||||
else
|
||||
{
|
||||
log_message('ERROR','###PDVIDEO final video not stored in S3'.$pd_id);
|
||||
log_message('ERROR','###PDVIDEO merged video not stored in S3'.$pd_id);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -72,7 +72,7 @@ class AUTHORIZATION
|
||||
}
|
||||
|
||||
|
||||
if( $routingName == ROUTE_LOGIN_X || $routingName == ROUTE_LOGIN_Y || $routingName == ROUTE_LOGIN_Z || $routingName == ROUTE_LOGIN_W || $routingName == ROUTE_LOGIN_V || $routingName == ROUTE_LOGIN_A)
|
||||
if( $routingName == ROUTE_LOGIN_X || $routingName == ROUTE_LOGIN_Y || $routingName == ROUTE_LOGIN_Z || $routingName == ROUTE_LOGIN_W || $routingName == ROUTE_LOGIN_V || $routingName == ROUTE_LOGIN_A || $routingName == TURN_SERVER_API)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
51
api/application/libraries/Twlio.php
Normal file
51
api/application/libraries/Twlio.php
Normal file
@ -0,0 +1,51 @@
|
||||
<?php defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
|
||||
|
||||
include_once APPPATH.'/vendor/autoload.php';
|
||||
//define('DOMPDF_ENABLE_AUTOLOAD', false);
|
||||
//include_once APPPATH.'/vendor/dompdf/dompdf/src/autoloader.php';
|
||||
//require_once APPPATH.'/vendor/dompdf/dompdf/src/autoloader.php';
|
||||
// require_once APPPATH.'/vendor/dompdf/dompdf/lib/html5lib/Parser.php';
|
||||
// //require_once APPPATH.'/vendor/dompdf/dompdf/lib/php-font-lib/src/FontLib/Autoloader.php';
|
||||
// //require_once APPPATH.'/vendor/dompdf/dompdf/lib/php-svg-lib/src/autoload.php';
|
||||
// require_once APPPATH.'/vendor/dompdf/dompdf/src/Autoloader.php';
|
||||
// require_once APPPATH.'/vendor/dompdf/dompdf/src/Dompdf.php';
|
||||
// require_once APPPATH.'/vendor/dompdf/dompdf/src/Adapter/CPDF.php';
|
||||
// Dompdf\Autoloader::register();
|
||||
|
||||
use Twilio\Rest\Client;
|
||||
class Twlio
|
||||
{
|
||||
|
||||
function getServerInfo($print = false,$json = false)
|
||||
{
|
||||
$sid = "AC01bf87391506e1df7e05cbe3d015bf81";
|
||||
$token = "470de1016b533c390703c40c7fea474b";
|
||||
$twilio = new Client($sid, $token);
|
||||
$token = $twilio->tokens
|
||||
->create();
|
||||
$response_data = array();
|
||||
$response_data['username'] = $token->username;
|
||||
$response_data['ice_servers'] = $token->iceServers;
|
||||
$response_data['date_updated'] = $token->dateUpdated;
|
||||
$response_data['ttl'] = $token->ttl;
|
||||
$response_data['date_created'] = $token->dateCreated;
|
||||
$response_data['password'] = $token->password;
|
||||
$response_data['accountSid'] = $token->accountSid;
|
||||
|
||||
if($print)
|
||||
{
|
||||
$json ? print_r(json_encode($response_data,true)) : print_r($response_data);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
return json_encode($response_data,true);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
4794
api/application/views/report_templates/JSONTOREPORT_CLIX_TELE_PD.php
Normal file
4794
api/application/views/report_templates/JSONTOREPORT_CLIX_TELE_PD.php
Normal file
File diff suppressed because it is too large
Load Diff
1908
api/application/views/report_templates/JSONTOREPORT_RI _TELE_PD.php
Normal file
1908
api/application/views/report_templates/JSONTOREPORT_RI _TELE_PD.php
Normal file
File diff suppressed because it is too large
Load Diff
@ -520,9 +520,10 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
<?php
|
||||
|
||||
echo '<tr><td>PD Initiated Date </td> <td style="width:2%;">:</td> <td> '.$pd_master_details[0]['createdon'].'</td></tr>';
|
||||
echo '<tr><td>PD Visit Date </td> <td style="width:2%;">:</td> <td> '.$pd_master_details[0]['pd_visit_date'].'</td></tr>';
|
||||
echo '<tr><td>Tele PD Date </td> <td style="width:2%;">:</td> <td> '.$pd_master_details[0]['pd_visit_date'].'</td></tr>';
|
||||
echo '<tr><td>PD Report Date </td> <td style="width:2%;">:</td> <td>'.$pd_master_details[0]['pd_report_generated_date'].'</td></tr>';
|
||||
echo '<tr><td>PD Initiated by </td> <td style="width:2%;">:</td> <td>'.$pd_master_details[0]['branch_name'].' Branch</td></tr>';
|
||||
echo '<tr><td>PD Type </td> <td style="width:2%;">:</td> <td> Telephonic </td></tr>';
|
||||
echo '<tr><td>Loan Application ID </td> <td style="width:2%;">:</td> <td> '.$pd_master_details[0]['lender_applicant_id'].'</td></tr>';
|
||||
echo '<tr><td>Product </td> <td style="width:2%;">:</td> <td>'.$pd_master_details[0]['product_name'].'</td></tr>';
|
||||
echo '<tr><td>Customer Segment </td> <td style="width:2%;">:</td> <td>'.(explode('-',$pd_master_details[0]['customer_segment_name'])[0]).'</td></tr>';
|
||||
@ -824,7 +825,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
//print_r($address_images);die();
|
||||
?>
|
||||
<div id="page_break"></div>
|
||||
<p><b>PD LOCATION</b></p>
|
||||
<p><b>BUSINESS LOCATION</b></p>
|
||||
|
||||
<p><?php
|
||||
|
||||
@ -852,7 +853,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
echo '<b>PD Location Address : </b>'.$pd_address['address'].', '.$pd_address['city_master'].', '.$pd_address['state_master'].' - '.$pincode.'.';
|
||||
}
|
||||
|
||||
echo '<br><br><b> GPS Coordinates of location where PD Visit was done : </b>'.$pd_master_details[0]['start_location'];
|
||||
echo '<br><br><b> GPS Coordinates of Business Address : </b>'.$pd_master_details[0]['start_location'];
|
||||
echo '<br><br>';
|
||||
?>
|
||||
<?php
|
||||
@ -873,7 +874,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
<img border="3" src = "<?php echo $satellite_url;?>" alt=" Satellite Image of location of Where PD was Done" style="width:100%;height:300px;border-color:#0191ed" /><br><br><br>
|
||||
|
||||
<?php if($pd_location_approach_img_url != "" ) {?>
|
||||
<!-- <?php if($pd_location_approach_img_url != "" ) {?>
|
||||
<table>
|
||||
<thead>
|
||||
<tr> <th>PD Location Approach</th> </tr>
|
||||
@ -885,7 +886,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
</tr>
|
||||
<tr> <td><?php echo $pd_location_approach_img_location .'<br>'.$pd_location_approach_img_date; ?></td> <td> </td> </tr>
|
||||
</table>
|
||||
<?php } ?>
|
||||
<?php } ?> -->
|
||||
<div id="page_break"></div>
|
||||
<br><p><b>Location Summary</b></p>
|
||||
<?php
|
||||
@ -905,14 +906,14 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
//($business_assets_details['business_assets_for_address'][0]['business_month'] != ""){ $yrs_being_run.= ' and '.$business_assets_details['business_assets_for_address'][0]['business_month'].' Months';}
|
||||
|
||||
echo '<p style="text-align:justify;">';
|
||||
echo '<span contenteditable="true">The PD visit was done at </span><span class="tooltip">'. $address_type. '<span class="tooltiptext">Address Form - Type of Address </span></span><span contenteditable="true"> of the loan applicants. </span>';
|
||||
echo '<span contenteditable="true">The PD was telephonically done with the loan applicant(s) at </span><span class="tooltip">'. $address_type. '<span class="tooltiptext">Address Form - Type of Address </span></span><span contenteditable="true"> of the loan applicants. </span>';
|
||||
//echo '<span contenteditable="true">The </span><span class="tooltip">'.$address_type.'<span class="tooltiptext">Address Form - Type of Address </span></span><span contenteditable="true"> is </span><span class="tooltip">'.$property_owner_type.'<span class="tooltiptext">Business Assest Form - Owner of the Property </span></span><span contenteditable="true"> and the business has been in operation from here for the last</span> <span class="tooltip">'.$yrs_being_run.'<span class="tooltiptext">Business Assest Form - Business running Yrs in this premise </span></span><span contenteditable="true">.</span>';
|
||||
echo '<br><br><span contenteditable="true">The</span> <span class="tooltip">'.$address_type.'<span class="tooltiptext">Address Form - Type of Address </span></span> <span contenteditable="true">is located in </span><span class="tooltip">'.$locality.'<span class="tooltiptext">Address Form - Locality of Address </span></span> <span contenteditable="true">and the estimated area of the</span> <span class="tooltip">'.$address_type.'<span class="tooltiptext">Address Form - Type of Address </span></span> <span contenteditable="true">is</span> <span class="tooltip">'.$estimated_area.'<span class="tooltiptext">Address Form - Estimated Area </span></span> <span contenteditable="true">.</span>';
|
||||
echo '<br><br><span contenteditable="true">The PD location was </span><span class="tooltip">'. $pd_address['pd_location_master'].'<span class="tooltiptext">Address Form - Approach to PD location </span></span>. ' . '<span contenteditable="true">As Per PD Officer, the</span> <span class="tooltip">'.$address_type .'<span class="tooltiptext">Address Form - Type of Address </span></span> <span contenteditable="true">is situated in</span><span class="tooltip"> '.$comment_locality_master .'<span class="tooltiptext">Address Form - Comment on locality </span></span> <span contenteditable="true">Locality.</span>';
|
||||
echo '<br><br><span contenteditable="true">The PD officer also made the following observations:</span>' ;
|
||||
echo '<br><ul>';
|
||||
//echo '<br><br><span contenteditable="true">The PD location was </span><span class="tooltip">'. $pd_address['pd_location_master'].'<span class="tooltiptext">Address Form - Approach to PD location </span></span>. ' . '<span contenteditable="true">As Per PD Officer, the</span> <span class="tooltip">'.$address_type .'<span class="tooltiptext">Address Form - Type of Address </span></span> <span contenteditable="true">is situated in</span><span class="tooltip"> '.$comment_locality_master .'<span class="tooltiptext">Address Form - Comment on locality </span></span> <span contenteditable="true">Locality.</span>';
|
||||
// echo '<br><br><span contenteditable="true">The PD officer also made the following observations:</span>' ;
|
||||
// echo '<br><ul>';
|
||||
|
||||
echo '<li><span contenteditable="true"> The location of the</span><span class="tooltip"> '.$address_type.'<span class="tooltiptext">Address Form - Type of Address </span></span> <span contenteditable="true">is</span> <span class="tooltip">'.$address_type_remarks_caption [ $final_remark_data['is_service_provided'] ].'<span class="tooltiptext">Final Remarks Form - The location of the busienss suitability for Business </span></span> <span contenteditable="true">to the nature of business. </span></li>';
|
||||
// echo '<li><span contenteditable="true"> The location of the</span><span class="tooltip"> '.$address_type.'<span class="tooltiptext">Address Form - Type of Address </span></span> <span contenteditable="true">is</span> <span class="tooltip">'.$address_type_remarks_caption [ $final_remark_data['is_service_provided'] ].'<span class="tooltiptext">Final Remarks Form - The location of the busienss suitability for Business </span></span> <span contenteditable="true">to the nature of business. </span></li>';
|
||||
|
||||
|
||||
|
||||
@ -992,7 +993,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
//print_r($loan_form);die();
|
||||
$loan_amount = MYUTIL::customIndianNumberFormat($loan_form['loan_amount']);
|
||||
echo '<span>During the PD visit, person met provide the following information about loan applied for:</span>';
|
||||
echo '<span> The following loan related information was provided by applicant.</span>';
|
||||
|
||||
$is_current_product_bl = $pd_master_details[0]['prod_catagory'] == "BL" ? true: false;
|
||||
$is_current_product_lab = $pd_master_details[0]['prod_catagory'] == "LAP" ? true: false;
|
||||
@ -1552,75 +1553,6 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
if($existing_loan_form_common_remarks != ""){ echo '<p>'.$existing_loan_form_common_remarks.'</p>';}
|
||||
?>
|
||||
<!-- #################end Existing Loan obligations section ################# -->
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- #################start neighbourhood/reference check #################-->
|
||||
<?php
|
||||
$existNeighRefCheck=array();
|
||||
$pd_offiecer_status_about_neighbor = "";
|
||||
foreach($pd_processed_forms[19] as $rowKey=> $nrcRow) {
|
||||
$neighbourRefRow = json_decode($nrcRow['processed_json'],true);
|
||||
//print_r($applicants_details);
|
||||
//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'];
|
||||
if(count($neighbourRefRow['neighbourhood_list'])>0){
|
||||
$company_name = MYUTIL::findCompanyName($all_company_details,1,1);
|
||||
|
||||
$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){
|
||||
// $existNeighRefCheck=NEIGHBOURREFERENCECHECKFORM::getReferenceDetails($neighbourRefRow['referencecheck_list'],$pd_master_details[0]);
|
||||
// }
|
||||
}
|
||||
?>
|
||||
|
||||
<h3 contenteditable="true">Neighbourhood / Reference Check</h3>
|
||||
<?php
|
||||
|
||||
//echo $pd_offiecer_status_about_neighbor;
|
||||
if(count($existNeighRefCheck)>0){
|
||||
//print_r($existNeighRefCheck);die();
|
||||
?>
|
||||
|
||||
<?php foreach($existNeighRefCheck as $nkey => $nfValue) {
|
||||
|
||||
echo $nfValue['neighbourhood_name_only'];
|
||||
?>
|
||||
|
||||
<ul>
|
||||
<li style="margin: 15px 0;"><?php echo $nfValue['neighbourhood_name']; ?></li>
|
||||
<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']; ?>
|
||||
</ul>
|
||||
<?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
|
||||
}
|
||||
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> -->
|
||||
<p>Status of the check: could not verify.<p>
|
||||
|
||||
<?php
|
||||
}
|
||||
if($neighbourhood_form_common_remarks != ""){ echo '<p>'. $neighbourhood_form_common_remarks.'</p>';}
|
||||
?>
|
||||
|
||||
<!-- #################end neighbourhood/reference check #################-->
|
||||
|
||||
<!-- #################Credit Manager Specific Query Section #################-->
|
||||
<?php
|
||||
@ -1711,7 +1643,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
<!-- #################Final Remarks Section#################-->
|
||||
<div class="page_break"></div>
|
||||
<br><h3 contenteditable="true">PD OFFICER`S REMARKS ON CUSTOMER BEHAVIOUR, BUSINESS LOCATION & OVERALL PD STATUS</h3>
|
||||
<br><h3 contenteditable="true">PD OFFICER`S REMARKS ON CUSTOMER BEHAVIOUR & OVERALL PD STATUS</h3>
|
||||
<?php
|
||||
//print_r($final_remark_data);
|
||||
$polite = null;$rude = null; $other_behaviour = null;$other_behaviour_remarks = null;
|
||||
@ -1795,18 +1727,18 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
}?>
|
||||
|
||||
|
||||
<li>Suitability of Business Location: </li>
|
||||
<!-- <li>Suitability of Business Location: </li>
|
||||
<br><br>
|
||||
|
||||
<table>
|
||||
<!-- <tr>
|
||||
<tr>
|
||||
<td><div id="boxstyle3">Well Suited <?php if($well){?><span style='font-family: DejaVu Sans; sans-serif;font-size:12px'>✔</span><?php } ?></div></td>
|
||||
|
||||
<td><div id="boxstyle3">Fairly Suited <?php if($fair){?><span style='font-family: DejaVu Sans; sans-serif;font-size:12px'>✔</span><?php } ?></div></td>
|
||||
|
||||
<td><div id="boxstyle3">Not Suited <?php if($not){?><span style='font-family: DejaVu Sans; sans-serif;font-size:12px'>✔</span><?php } ?></div></td>
|
||||
</tr>-->
|
||||
<tr>
|
||||
<!-- <tr>
|
||||
<td >
|
||||
<div id="first_div" style="border-color:green;color:black;">Well Suited</div> <div id="tick_div" style="border-color:green;color:black;"><?php if($well){ echo $tick_mark; } ?></div>
|
||||
</td>
|
||||
@ -1820,7 +1752,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
</tr>
|
||||
|
||||
|
||||
</table>
|
||||
</table> -->
|
||||
<br>
|
||||
<li>PD Officer’s overall assessment: </li>
|
||||
<br><br>
|
||||
|
||||
2038
api/application/views/report_templates/JSONTOREPORT_SAL_TELE_PD.php
Normal file
2038
api/application/views/report_templates/JSONTOREPORT_SAL_TELE_PD.php
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user