From 59fa8ad0a3cd04bc28942de3d30541a39223c0a0 Mon Sep 17 00:00:00 2001 From: Velz2020 Date: Wed, 28 Aug 2019 22:28:18 +0530 Subject: [PATCH] RI NEW TEMPLATE AND PORT CHANGE --- api/application/config/database.php | 9 +- api/application/controllers/PD_Controller.php | 47 +- api/application/helpers/pdscore_helper.php | 51 +- api/application/views/js/phantomchart.js | 2 +- .../views/report_templates/JSONTOREPORT.php | 8 +- .../report_templates/JSONTOREPORT_RI.php | 1759 +++++++++++++++++ 6 files changed, 1840 insertions(+), 36 deletions(-) create mode 100644 api/application/views/report_templates/JSONTOREPORT_RI.php diff --git a/api/application/config/database.php b/api/application/config/database.php index 6acd6ce4..286d8f1a 100644 --- a/api/application/config/database.php +++ b/api/application/config/database.php @@ -107,7 +107,8 @@ $db['dev'] = array( 'compress' => FALSE, 'stricton' => FALSE, 'failover' => array(), - 'save_queries' => TRUE + 'save_queries' => TRUE, + 'port' => '2344' ); $db['test'] = array( @@ -132,7 +133,8 @@ $db['test'] = array( 'compress' => FALSE, 'stricton' => FALSE, 'failover' => array(), - 'save_queries' => TRUE + 'save_queries' => TRUE, + 'port' => '2344' ); $db['prod'] = array( @@ -154,6 +156,7 @@ $db['prod'] = array( 'compress' => FALSE, 'stricton' => FALSE, 'failover' => array(), - 'save_queries' => TRUE + 'save_queries' => TRUE, + 'port' => '2344' ); diff --git a/api/application/controllers/PD_Controller.php b/api/application/controllers/PD_Controller.php index 15348b93..23913709 100644 --- a/api/application/controllers/PD_Controller.php +++ b/api/application/controllers/PD_Controller.php @@ -4586,8 +4586,15 @@ public function getPDFormDetailsJSON_post() $data['pd_images'][$i] = $this->PD_Model->getSignedPDDocsURL($pdid,$i); } - - $temp = $this->load->view('report_templates/JSONTOREPORT',$data,true); + if($data['pd_master_details'][0]['customer_segment_abbr'] == 'SE-RI') + { + $temp = $this->load->view('report_templates/JSONTOREPORT_RI',$data,true); + } + else if($data['pd_master_details'][0]['customer_segment_abbr'] == 'SE-DI' || $data['pd_master_details'][0]['customer_segment_abbr'] == 'SE-AI') + { + $temp = $this->load->view('report_templates/JSONTOREPORT',$data,true); + } + $pd_report_time = date('Y-m-d-H-i-s'); $pd_report_store = $this->external_path.'/pd_reports/'.$pdid.'/'.$pd_report_time.'.html'; @@ -5597,7 +5604,7 @@ public function getPDFormDetailsJSON_post() //print_r($records); $data['pd_master_details'] = $this->PD_Model->getPDMasterDetails($pdid); $data['applicants_details'] = $this->PD_Model->getApplicantsDetails($pdid); - //print_r($data['applicants_details']);die(); + print_r($data['pd_master_details']);die(); $data['lender_disclaimer'] = $this->PD_Model->selectRecords(ENTITYDISCLAIMER,array('fk_entity_id' => $data['pd_master_details'][0]['fk_lender_id'])); $data['pd_additional_requirements'] = $this->PD_Model->getPDAdditionalRequirements($pdid); @@ -5607,12 +5614,13 @@ public function getPDFormDetailsJSON_post() //die(); $data['assessed_income_details'] = $this->getAssessedIncomeForPDReport($pdid); - // print_r($data['assessed_income_details']); + //print_r($data['pd_master_details'][0]['is_score_card_enabled']);die(); // echo "**************************"; //$data['dsc_cards'] = $this->getDetailedScoreCardChart( $data['pd_score'] ); - if($data['pd_master_details'][0]['is_score_card_enabled'] = 0) + if($data['pd_master_details'][0]['is_score_card_enabled'] == 1) { $data['pd_score'] = $this->calculateScore($pdid); + //print_r( $data['pd_score']);die(); $score_for_chart = $data['pd_score']['score_summary']['overall_score']['final_score'] ? round($data['pd_score']['score_summary']['overall_score']['final_score'],1) : 0; //echo $score_for_chart;die(); @@ -5632,8 +5640,8 @@ public function getPDFormDetailsJSON_post() file_put_contents(APPPATH.'/views/js/phantomchart.js',$exact_script,LOCK_EX); $str = 'phantomjs '.APPPATH.'/views/js/phantomchart.js'; - exec($str,$ou); - exec('phantom.exit();'); + // exec($str,$ou); + // exec('phantom.exit();'); //print_r($ou); @@ -5667,11 +5675,18 @@ public function getPDFormDetailsJSON_post() //print_r($data['pd_images']);die(); //print_r(json_decode($data['pd_processed_forms'][14][0]['processed_json'],true)); //die(); //echo "*******************************************"; - $t = $this->load->view('report_templates/JSONTOREPORT',$data,true); + if($data['pd_master_details'][0]['customer_segment_abbr'] == 'SE-RI') + { + $t = $this->load->view('report_templates/JSONTOREPORT_RI',$data,true); + } + else if($data['pd_master_details'][0]['customer_segment_abbr'] == 'SE-DI' || $data['pd_master_details'][0]['customer_segment_abbr'] == 'SE-AI') + { + $t = $this->load->view('report_templates/JSONTOREPORT',$data,true); + } //$t = $this->load->view('temp_html.html',null,true); //echo $t; //die(); - $t = file_get_contents($this->external_path ."/pd_reports/" . $pdid . "/sample.html"); + $total_replaces = substr_count($t,''); for($i = 0 ;$i < $total_replaces;$i++) { @@ -5686,14 +5701,14 @@ public function getPDFormDetailsJSON_post() $t = substr_replace($t,'',strpos($t,''),(strlen(''))); } - //echo $t; + echo $t; //$t = file_get_contents($this->external_path ."/pd_reports/" . $pdid . "/sample.html"); - $start_pos = strpos($t,''); - $end_pos = $start_pos + 10; - $t = substr_replace($t,'',$end_pos,0); - $t = substr_replace($t,'',0,0); - $t = substr_replace($t,'',-1,0); + // $start_pos = strpos($t,''); + // $end_pos = $start_pos + 10; + // $t = substr_replace($t,'',$end_pos,0); + // $t = substr_replace($t,'',0,0); + // $t = substr_replace($t,'',-1,0); //file_put_contents($this->external_path ."/pd_reports/" . $pdid . "/sample2.html",$t); //PDF Gen using DOM PDF //$this->pdfgenerator->setEncryption('test1234'); @@ -6863,7 +6878,7 @@ public function getCompaniesListsFromGeneralFormRawJSON_post() case 5: case 6: case 7: - $score_questions = PDSCORE::genericDI($score_questions,$loan_amt_from_loam_form,$personal_asset_grid); + $score_questions = PDSCORE::genericDI($score_questions,$loan_amt_from_loam_form,$personal_asset_grid,$pd_master_details); break; } } diff --git a/api/application/helpers/pdscore_helper.php b/api/application/helpers/pdscore_helper.php index f39367ba..372f5fe0 100644 --- a/api/application/helpers/pdscore_helper.php +++ b/api/application/helpers/pdscore_helper.php @@ -8,9 +8,9 @@ class PDSCORE } - public static function genericDI($score_questions,$loan_amt_from_loam_form,$personal_asset_grid) + public static function genericDI($score_questions,$loan_amt_from_loam_form,$personal_asset_grid,$pd_master_details) { - + //echo 'RRRRR';die(); //print_r($personal_asset_grid);die();echo "###################"; ############ GENERIC SE-DI CASES ####################### ############ SCROE VARIABLES DECLERATIONS ############## @@ -92,31 +92,62 @@ class PDSCORE $over_all_general_round_l2 = 0; $general_distribute_level_weightage = 0; - //######1.5 neibourhood_check_as_per_pd_officer + //General Section L2 Weightage Distribution section + if($pd_master_details[0]['is_otp_enabled'] != 1) + { + $general_distribute_level_weightage += $otp_done_L2; + } + if(!strcmp($score_questions['general']['neibourhood_check_as_per_pd_officer'],'Could not verify')) { //echo "Yes could not"; $general_distribute_level_weightage += $neibourhood_check_as_per_pd_officer_L2; + } + + //End of General Section L2 Weightage Distribution section + + + //######1.7 otp_done + if($pd_master_details[0]['is_otp_enabled'] == 1) + { + $otp_done_L2 = $general_distribute_level_weightage ? ($otp_done_L2 + ($otp_done_L2 / (100 - $general_distribute_level_weightage )) * $general_distribute_level_weightage) : $otp_done_L2; + $otp_done_actual_score = ($l1_general/100) * ($otp_done_L2/100) * $otp_done[$score_questions['general']['otp_done']]; + + $otp_done_max_score = ($l1_general/100) * ($otp_done_L2/100) * max($otp_done); + + $score_questions['general']['otp_done'] = array('l1_weightage' => $l1_general,'l2_weightage' => ($otp_done_L2),'distributed_weightage' => $general_distribute_level_weightage,'answer' => $score_questions['general']['otp_done'],'attributed_score' => ($otp_done_actual_score), 'max_score' => ($otp_done_max_score),'score_band'=>$otp_done[$score_questions['general']['otp_done']],'max_score_band' => max($otp_done)); + } + else + { + $score_questions['general']['otp_done'] = array('l1_weightage' => $l1_general,'l2_weightage' => 0,'distributed_weightage' => $general_distribute_level_weightage,'answer' => 'Not Applicable','attributed_score' => 0.00, 'max_score' => 0.00,'score_band'=>$otp_done[ $score_questions['general']['otp_done'] != "" || $score_questions['general']['otp_done'] != null ?$score_questions['general']['otp_done']: "No" ],'max_score_band' => 0); + } + + //######1.5 neibourhood_check_as_per_pd_officer + if(!strcmp($score_questions['general']['neibourhood_check_as_per_pd_officer'],'Could not verify')) + { $score_questions['general']['neibourhood_check_as_per_pd_officer'] = array('l1_weightage' => $l1_general,'l2_weightage' => 0,'distributed_weightage' => $general_distribute_level_weightage,'answer' => $score_questions['general']['neibourhood_check_as_per_pd_officer'],'attributed_score' => 0.00, 'max_score' => 0.00,'score_band'=>$neibourhood_check_as_per_pd_officer[$score_questions['general']['neibourhood_check_as_per_pd_officer'] != "" || $score_questions['general']['neibourhood_check_as_per_pd_officer'] != null ?$score_questions['general']['neibourhood_check_as_per_pd_officer']: "Negative" ],'max_score_band' => 0); } else { - + $neibourhood_check_as_per_pd_officer_L2 = $general_distribute_level_weightage ? ($neibourhood_check_as_per_pd_officer_L2 + ($neibourhood_check_as_per_pd_officer_L2 / (100 - $general_distribute_level_weightage )) * $general_distribute_level_weightage) : $neibourhood_check_as_per_pd_officer_L2; + $neibourhood_check_as_per_pd_officer_actual_score = ($l1_general/100) * ($neibourhood_check_as_per_pd_officer_L2/100) * $neibourhood_check_as_per_pd_officer[$score_questions['general']['neibourhood_check_as_per_pd_officer'] != "" || $score_questions['general']['neibourhood_check_as_per_pd_officer'] != null ?$score_questions['general']['neibourhood_check_as_per_pd_officer']: "Negative" ]; $neibourhood_check_as_per_pd_officer_max_score = ($l1_general/100) * ($neibourhood_check_as_per_pd_officer_L2/100) * max($neibourhood_check_as_per_pd_officer); $score_questions['general']['neibourhood_check_as_per_pd_officer'] = array('l1_weightage' => $l1_general,'l2_weightage' => $neibourhood_check_as_per_pd_officer_L2,'distributed_weightage' => $general_distribute_level_weightage,'answer' => $score_questions['general']['neibourhood_check_as_per_pd_officer'],'attributed_score' => ($neibourhood_check_as_per_pd_officer_actual_score), 'max_score' => ($neibourhood_check_as_per_pd_officer_max_score),'score_band'=>$neibourhood_check_as_per_pd_officer[$score_questions['general']['neibourhood_check_as_per_pd_officer'] != "" || $score_questions['general']['neibourhood_check_as_per_pd_officer'] != null ?$score_questions['general']['neibourhood_check_as_per_pd_officer']: "Negative" ],'max_score_band' => max($neibourhood_check_as_per_pd_officer)); } + + - //$general_distribute_level_weightage = round($general_distribute_level_weightage,2); + + //echo $general_distribute_level_weightage = round($general_distribute_level_weightage,2);die(); //echo $general_distribute_level_weightage; - //#######1.1 person_met_is_applicant $person_met_is_applicant_L2 = $general_distribute_level_weightage ? ($person_met_is_applicant_L2 + ($person_met_is_applicant_L2 / (100 - $general_distribute_level_weightage )) * $general_distribute_level_weightage) : $person_met_is_applicant_L2 ; @@ -170,15 +201,7 @@ class PDSCORE $score_questions['general']['was_the_company_name_board_sighted'] = array('l1_weightage' => $l1_general,'l2_weightage' => ($was_the_company_name_board_sighted_L2),'distributed_weightage' => $general_distribute_level_weightage,'answer' => $score_questions['general']['was_the_company_name_board_sighted'],'attributed_score' => ($was_the_company_name_board_sighted_actual_score), 'max_score' => ($was_the_company_name_board_sighted_max_score),'score_band'=>$was_the_company_name_board_sighted[$score_questions['general']['was_the_company_name_board_sighted']],'max_score_band' => max($was_the_company_name_board_sighted)); - //######1.7 otp_done - $otp_done_L2 = $general_distribute_level_weightage ? ($otp_done_L2 + ($otp_done_L2 / (100 - $general_distribute_level_weightage )) * $general_distribute_level_weightage) : $otp_done_L2; - - $otp_done_actual_score = ($l1_general/100) * ($otp_done_L2/100) * $otp_done[$score_questions['general']['otp_done']]; - - $otp_done_max_score = ($l1_general/100) * ($otp_done_L2/100) * max($otp_done); - - $score_questions['general']['otp_done'] = array('l1_weightage' => $l1_general,'l2_weightage' => ($otp_done_L2),'distributed_weightage' => $general_distribute_level_weightage,'answer' => $score_questions['general']['otp_done'],'attributed_score' => ($otp_done_actual_score), 'max_score' => ($otp_done_max_score),'score_band'=>$otp_done[$score_questions['general']['otp_done']],'max_score_band' => max($otp_done)); //######1.8 qualification diff --git a/api/application/views/js/phantomchart.js b/api/application/views/js/phantomchart.js index 55c35454..99f9a6b1 100644 --- a/api/application/views/js/phantomchart.js +++ b/api/application/views/js/phantomchart.js @@ -1 +1 @@ -var page = require('webpage').create();page.viewportSize = { width: 600, height: 350 };page.clipRect = { top: 0, left: 0, width: 600, height: 350 };var score = 43.2;var url = 'http://localhost/AWSEC2/sparqapi/api?'+score;var image_url = 'C:/xampp/htdocs/ssa_external_data/production/pd_reports/1/chart.png' ;page.open(url,function() {setTimeout(function() {page.render(image_url);phantom.exit();}, 500);}); \ No newline at end of file +var page = require('webpage').create();page.viewportSize = { width: 600, height: 350 };page.clipRect = { top: 0, left: 0, width: 600, height: 350 };var score = 75.5;var url = 'http://localhost/AWSEC2/sparqapi/api?'+score;var image_url = 'C:/xampp/htdocs/ssa_external_data/testing/pd_reports/900/chart.png' ;page.open(url,function() {setTimeout(function() {page.render(image_url);phantom.exit();}, 500);}); \ No newline at end of file diff --git a/api/application/views/report_templates/JSONTOREPORT.php b/api/application/views/report_templates/JSONTOREPORT.php index bc74c173..41baa56a 100644 --- a/api/application/views/report_templates/JSONTOREPORT.php +++ b/api/application/views/report_templates/JSONTOREPORT.php @@ -504,7 +504,7 @@ defined('BASEPATH') OR exit('No direct script access allowed'); echo "

"; echo "

"; - if($lender_disclaimer[0]['disclaimer'] != '') + if(isset($lender_disclaimer[0]['disclaimer']) && $lender_disclaimer[0]['disclaimer'] != '') { echo '

Disclaimer: '. $lender_disclaimer[0]['disclaimer'] .'

'; @@ -734,7 +734,7 @@ defined('BASEPATH') OR exit('No direct script access allowed'); '; @@ -842,6 +842,10 @@ defined('BASEPATH') OR exit('No direct script access allowed'); { $answer = isset($business_score['answer']) ? ((!strcasecmp($business_score['answer'], 'yes')) ? 'Seasonal': 'Not Seasonal') : ''; } + else if($bsk == 'vintage_of_business_account') + { + $answer = isset($business_score['answer']) ? $business_score['answer'] : 'No'; + } else { $answer = isset($business_score['answer']) ? $business_score['answer'] : ''; diff --git a/api/application/views/report_templates/JSONTOREPORT_RI.php b/api/application/views/report_templates/JSONTOREPORT_RI.php new file mode 100644 index 00000000..d8c83b50 --- /dev/null +++ b/api/application/views/report_templates/JSONTOREPORT_RI.php @@ -0,0 +1,1759 @@ + + + + + + + + + + + + + + +
+
+ Powered by PDGenie +
+
+ +
+
+
+ + +
"; + ?> +
"; + + echo "
"; + echo "

PERSONAL DISCUSSION REPORT

"; + echo "
for the case of
"; + + echo "

".$main_applicant_name."

"; + echo "
"; + echo "



"; + ?> + + + + '; + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + ?> + + + + Loan Amount Applied For :

"; + //echo '
PD Initiated Date : '.$pd_master_details[0]['createdon'].'
PD Visit Date : '.$pd_master_details[0]['pd_visit_date'].'
PD Report Date : '.$pd_master_details[0]['pd_report_generated_date'].'
PD Initiated by : '.$pd_master_details[0]['branch_name'].' Branch
Loan Application ID : '.$pd_master_details[0]['lender_applicant_id'].'
Product : '.$pd_master_details[0]['product_name'].'
Customer Segment : '.(explode('-',$pd_master_details[0]['customer_segment_name'])[0]).'
+ echo ''; + echo '
Loan Amount
(As Per PD Initiation)
: ' .' '. MYUTIL::customIndianNumberFormat($pd_master_details[0]['loan_amount']). '
('. MYUTIL::numtowords($pd_master_details[0]['loan_amount']) .')
Loan Amount
(As Per Loan Applicants during PD)
: ' .' '. MYUTIL::customIndianNumberFormat($loan_form['loan_amount']). '
('. MYUTIL::numtowords($loan_form['loan_amount']) .')
'; + //echo "
"; + echo "

"; + echo "

"; + echo "

"; + echo "

"; + echo "

"; + echo "

"; + + if($lender_disclaimer[0]['disclaimer'] != '') + { + echo '

Disclaimer: '. $lender_disclaimer[0]['disclaimer'] .'

'; + + } + + echo '

Registered / Corporate Office: SineEdge Consulting Private Limited. A-211, Pioneer Urban Square, Golf Course Extension Road, Sector 62, Gurgaon, Haryana - 122002

'; + ?> + + + + + + $individual) + { + + if($individual['is_person_met'] == true) + { + //array_push($person_met_images); + $temp_person_met = array(); + $applicant_name = array_key_exists('pd_co_applicant_id_master',$individual) ? $individual['pd_co_applicant_id_master'] : "Not Available" ; + //echo '
'.$individual['applicant_title_name_master'] .' '. $applicant_name.'
' ; + $temp_person_met['name'] = $individual['applicant_title_name_master'] .' '. $applicant_name; + $temp_person_met['photo'] = isset($individual['is_person_met_pic']) ? $individual['is_person_met_pic'] : null; + $temp_person_met['id_proof'] = isset($individual['is_person_met_id_proof']) ? $individual['is_person_met_id_proof'] : null; + $company_relationship_data = null; + foreach($general_form['company_with_relationships'] as $company_with_relationship) + { + if($individual['pd_co_applicant_id'] == $company_with_relationship['applicant_name']) + { + //FInd Company Name from JSON + $company_relationship_data .= $company_with_relationship['company_relationship_master'].' '.$company_with_relationship['company_name']; + + //$company_relationship_data.='
and

'; + $company_relationship_data.=', '; + } + } + //$temp_person_met['name'] = + //print_r($general_form['persons_with_relationships']); + $personal_relationship_data = null; + foreach($general_form['persons_with_relationships'] as $persons_with_relationship) + { + if($individual['pd_co_applicant_id'] == $persons_with_relationship['pd_co_applicant_id'] && isset($persons_with_relationship['relationship'])) + { + + if(isset($persons_with_relationship['relation_to_master'])) + { + //? $persons_with_relationship['relation_to_master'] : " Could Not Find"; + $RSNA = $persons_with_relationship['relation_to_master']; + if(isset($persons_with_relationship['relationship_master'])) + { + $personal_relationship_data .= $persons_with_relationship['relationship_master'] .' Of '. $RSNA; + //$personal_relationship_data.='
and

'; + $personal_relationship_data.=', '; + + } + } + } + } + + $company_relationship_data .= $personal_relationship_data; + $temp_person_met['relations'] = $company_relationship_data; + array_push($person_met_data,$temp_person_met); + + + } + } + + + + echo '
'; + echo '

Person(s) Met:

'; + echo '
'; + foreach($person_met_data as $pk => $person) + { + $display_for_person_met =$person['relations'] != "" ? substr_replace($person['relations'],'.',strrpos($person['relations'],','),1) : ''; + + $person_met_details = $person['name']; + $person_met_details .= ($display_for_person_met != "" ? ' - ' . $display_for_person_met :''); + echo '

'.$person_met_details.'

'; + + //if($display_for_person_met != "" || $display_for_person_met != null){ + echo '

'; + //} + if($person['photo']) + { + echo ''; + } + echo '     '; + if($person['id_proof']) + { + echo ''; + } + + //echo count($person_met_data) != ($pk+1)? '
':''; + + + } + echo '
'; + echo '
'; + ?> + +
+ +

Loan Applicants:

+ + + + + + $individual) + { + + if($individual['is_applicant'] == true) + { + + $education_qualification = $individual['qualification_master']; + $education_qualification = $individual['course_name'] != "" || $individual['course_name'] != null ? $education_qualification.'
('.$individual['course_name'].')' : $education_qualification; + + + $applicant_name = array_key_exists('pd_co_applicant_id_master',$individual) ? $individual['pd_co_applicant_id_master'] : " Could Not Find" ; + //echo $applicant_name.'**************************'; + + $title = isset($individual['applicant_title_name_master']) && $individual['applicant_title_name_master'] != "" ? $individual['applicant_title_name_master'] : ''; + + echo '"; + } + } + + if(isset($general_form['companies']) && count($general_form['companies'])) + { + $business_entity_type_master = array(1 => 'Others', 2 => 'Public Ltd Company', 3 => 'Sole proprietorship', 4 => 'HUF (Hindu Undivided Family)', 5 => 'Partnership',6 => 'Cooperative',7 => 'Limited Liability Partnership(LLP)',8 => 'OPC (One Person Company)',9 => 'Society',10 => 'Trust',11 => 'Private Limited Company'); + foreach ($general_form['companies'] as $comp_key => $ind_company) { + if($ind_company['is_company_applicant'] != null) + { + + echo ''; + } + + } + } + ?> + +
Name Age
(Yrs/Mns)
Qualification / Type of Entity Relationships
'.$title.' '.$applicant_name.''.$individual['age'].''.$education_qualification.''; + + $company_relationship_data = null; + //print_r($general_form['company_with_relationships']); + foreach($general_form['company_with_relationships'] as $company_with_relationship) + { + + //print_r($company_with_relationship); + if($individual['pd_co_applicant_id'] == $company_with_relationship['applicant_name']) + { + //FInd Company Name from JSON + + //echo "ONCE"; + $company_relationship_data = ($company_with_relationship['company_relationship_master'] .' '.$company_with_relationship['company_name']); + + $company_relationship_data.='
and

'; + } + } + + $personal_relationship_data = null; + foreach($general_form['persons_with_relationships'] as $persons_with_relationship) + { + + + + if(($individual['pd_co_applicant_id'] == $persons_with_relationship['pd_co_applicant_id'] || !strcasecmp($applicant_name,$persons_with_relationship['applicant_name']))&& isset($persons_with_relationship['relationship'])) + { + + + if( isset($persons_with_relationship['relation_to_master'])) + { + $RSNA = $persons_with_relationship['relation_to_master']; + if(isset($persons_with_relationship['relationship_master'])) + { + $personal_relationship_data .= $persons_with_relationship['relationship_master'] .' of '. $RSNA; + + $personal_relationship_data.='
and

'; + } + } + } + } + $company_relationship_data .= $personal_relationship_data; + echo substr_replace($company_relationship_data, '', strrpos($company_relationship_data, '
and

'),strlen($company_relationship_data)); + + echo "
'. $ind_company['company_name'] .''. $ind_company['business_years']. (isset($ind_company['business_month']) ? ' . ' . $ind_company['business_month']: null) .''. ( $ind_company['business_entity_type'] == 1 ? $ind_company['business_entity_type_other'] : $business_entity_type_master[ $ind_company['business_entity_type'] ] ).' Not Applicable
+ + + + + '.$general_form['general_remark'].'

'; + } + ?> + + + + + + + + 'well suited','fairly_suited' => 'fairly suited','not_suited' => 'not suited'); + //$business_assets_details = json_decode($pd_processed_forms[22][0]['processed_json'],true); + //print_r($business_assets_details);die(); + + $address_images = $pd_images[5]; + //print_r($address_images);die(); + $pd_location_approach_img_url = ''; + $pd_location_approach_img_location = ''; + $pd_location_approach_img_date = ''; + + foreach ($address_images as $address_image_key => $address_image_value) { + if($address_image_value['is_show_report'] == 1) + { + $pd_location_approach_img_url = isset($address_image_value['doc_url']) ? $address_image_value['doc_url']: ''; + //$pd_location_approach_img_location = $address_image_value['location']; + //$pd_location_approach_img_date = date('Y/m/d h:s:i A',$address_image_value['createdon']); + break; + } + } + + $name_board_seen_img_url = ''; + + + //echo $name_board_seen_img_url;die(); + //print_r($address_images);die(); + ?> +
+

PD LOCATION

+ +

Address at which PD was initiated: '.$pd_address['address'].', '.$pd_address['city_master'].', '.$pd_address['state_master'].' - '.$pincode.'.'; + + echo '
Address at which PD Visit actually done: '.$pd_alternative_address['alternative_address'].', '.$pd_alternative_address['city_master'].', '.$pd_alternative_address['state_master'].' - '.$alter_native_pincode.'.'; + + echo '
Reasaon for change in PD address:'.$pd_alternative_address['reason_for_alternative_address']; + + } + else + { + + echo 'PD Location Address : '.$pd_address['address'].', '.$pd_address['city_master'].', '.$pd_address['state_master'].' - '.$pincode.'.'; + } + + echo '

GPS Coordinates of location where PD Visit was done : '.$pd_master_details[0]['start_location']; + echo '

'; + ?> + +  Satellite Image of location of Where PD was Done


+ + + + + + + + + +
PD Location Approach
+ + Location Approach Image Not Available +
'.$pd_location_approach_img_date; ?>
+ +

+

Location Summary

+ '; + echo 'The PD visit was done at '. $address_type. 'Address Form - Type of Address of the loan applicants. '; + //echo 'The '.$address_type.'Address Form - Type of Address is '.$property_owner_type.'Business Assest Form - Owner of the Property and the business has been in operation from here for the last '.$yrs_being_run.'Business Assest Form - Business running Yrs in this premise .'; + echo '

The '.$address_type.'Address Form - Type of Address is located in '.$locality.'Address Form - Locality of Address and the estimated area of the '.$address_type.'Address Form - Type of Address is '.$estimated_area.'Address Form - Estimated Area .'; + echo '

The PD location was '. $pd_address['pd_location_master'].'Address Form - Approach to PD location . ' . 'As Per PD Offcier, the '.$address_type .'Address Form - Type of Address is situated in '.$comment_locality_master .'Address Form - Comment on locality Locality.'; + echo '

The PD officer also made the following observations:' ; + echo '
    '; + + echo '
  • The location of the '.$address_type.'Address Form - Type of Address is '.$address_type_remarks_caption [ $final_remark_data['is_service_provided'] ].'Final Remarks Form - The location of the busienss suitability for Business to the nature of business.
  • '; + + + + if(isset($final_remark_data['is_competition'])) + { + if($final_remark_data['is_competition'] == 'yes') + { + echo '
  • '.$final_remark_data['appx_outlet_or_stores'].' Units with similar business were sighted in the locality
  • '; + } + else + { + echo '
  • PD officer did not observe any similar business units in the locality.
  • '; + } + } + if(isset($final_remark_data['demolition_activity'])) + { + if($final_remark_data['demolition_activity'] == 'yes') + { + echo '
  • '.$final_remark_data['comment_of_demolition_activity'] .'
  • '; + echo '
    Demolition Image Not Available'; + + } + else + { + echo '
  • No demolition activity was observed in the locality.
  • '; + } + } + + + if(isset($final_remark_data['sealing_activity'])) + { + if($final_remark_data['sealing_activity'] == 'yes') + { + echo '
  • '.$final_remark_data['comment_of_sealing_activity'] .'
  • '; + echo '
    Demolition Image Not Available'; + } + else + { + echo '
  • No sealing activity was observed in the locality.
  • '; + } + } + + if(isset($final_remark_data['outlet_location'])) + { + if($final_remark_data['outlet_location'] == 'heavy_footfall') + { + echo '
  • Heavy Footfall ( Lots of customer in the locality / market place )
  • '; + } + else if($final_remark_data['outlet_location'] == 'medium_footfall') + { + echo '
  • Medium Footfall ( Meduim no of customer in the locality / market place )
  • '; + } + else if($final_remark_data['outlet_location'] == 'low_footfall') + { + echo '
  • LOw Footfall ( Few customer in the locality / market place )
  • '; + } + } + + echo "
"; + + if($address_form['address_form_remark']) + { + echo ''.$address_form['address_form_remark'].'Address Form - Address Form Remarks ';} + echo "

"; + echo "
"; + //die(); + // + ?> + + + + + + +

LOAN DETAILS:

+ During the PD visit,
'.$main_applicant_name.', provided the following information about loan applied for:'; + + $is_current_product_bl = $pd_master_details[0]['product_abbr'] == "BL" ? true: false; + $is_current_product_lab = $pd_master_details[0]['product_abbr'] == "LAP" ? true: false; + $is_current_product_laep = $pd_master_details[0]['product_abbr'] == "LAEP" ? true: false; + // echo $pd_master_details[0]['product_abbr']; + // echo '-bl-'. $is_current_product_bl; + // echo '-lap-'.$is_current_product_lab; + // die(); + $loan_table_dispaly_rows = array(); + + $loan_table_dispaly_rows[] = array('particulars' => 'Total Loan Amount applied for','details' => ""." ".$loan_amount.' ('.MYUTIL::numtowords($loan_form['loan_amount']).')'); + if($is_current_product_bl || $is_current_product_laep) + { + $to_dispaly = !strcasecmp($loan_form['is_there_total_fund'], 'yes disclose') ? ('Disclosed '.""." ".MYUTIL::customIndianNumberFormat($loan_form['fund_amt']).' ('.MYUTIL::numtowords($loan_form['fund_amt']).')'):'Not Disclosed'; + $loan_table_dispaly_rows[] = array('particulars' => 'Total Fund Requirement','details' => $to_dispaly); + } + $loan_table_dispaly_rows[] = array('particulars' => 'Loan Tenure expected','details' => $loan_form['loan_tenure'].' Months'); + + $end_use = ''; + $to_remove_for = false; + foreach($loan_form['end_use_master'] as $enduse) + { + if(strpos(strval($enduse), 'Others') === false) { $end_use.= $enduse.' and ';} + else { + + $to_remove_for = true; + $end_use.=$loan_form['end_use_other'].' and'; + } + } + $end_use = substr_replace($end_use, '', strrpos($end_use, 'and'),strlen($end_use)); + //echo substr($end_use,0,3); + + + if(strcasecmp(substr($end_use,0,3),'for')) + { + if(!(count($loan_form['end_use_master']) == 1 && $to_remove_for)) + { + $end_use = 'For '.$end_use; + } + } + + $loan_table_dispaly_rows[] = array('particulars' => 'Loan Purpose','details' => $end_use); + + if(strcasecmp($loan_form['is_transfer'],'no')) + { + + $loan_table_dispaly_rows[] = array('particulars' => 'Balance Transfer Amount','details' => ""." ".MYUTIL::customIndianNumberFormat($loan_form['balance_transfer_amount']).' ('.MYUTIL::numtowords($loan_form['balance_transfer_amount']).')'); + + $loan_table_dispaly_rows[] = array('particulars' => 'Top Up Amount applied for','details' => ""." ".MYUTIL::customIndianNumberFormat($loan_form['topup_amount']).' ('.MYUTIL::numtowords($loan_form['topup_amount']).')'); + + $loan_table_dispaly_rows[] = array('particulars' => 'End Use of Topup','details' => ( strcasecmp('others',$loan_form['end_use_topup_master'])) ? $loan_form['end_use_topup_master'] : $loan_form['other_end_use_topup'] ); + + + $loan_table_dispaly_rows[] = array('particulars' => 'Balance Transfer from','details' => $loan_form['lender'] == 1 ? $loan_form['other_bt_lender']: $loan_form['lender_master']); + + } + else{ + //echo 'sdn-'.((!$is_current_product_bl) && !$is_current_product_lab); die(); + if((!$is_current_product_bl) && !$is_current_product_lab && !$is_current_product_laep) + { + $loan_table_dispaly_rows[] = array('particulars' => 'Amount of Own Contribution','details' =>""." ".MYUTIL::customIndianNumberFormat($loan_form['own_contribution']).' ('.MYUTIL::numtowords($loan_form['own_contribution']).')' ); + $source_of_own_contribution = null; + + foreach($loan_form['source_of_own_contribution_master'] as $own_source) + { + if(strpos(strval($own_source), 'Others') === false) { $source_of_own_contribution.= $own_source.' and ';}else{ $source_of_own_contribution.=$loan_form['other_source'].' and '; } + } + $source_of_own_contribution = substr_replace($source_of_own_contribution, '', strrpos($source_of_own_contribution, ' and '),strlen($source_of_own_contribution)); + + $loan_table_dispaly_rows[] = array('particulars' => 'Source of Own Contribution','details' => $source_of_own_contribution); + } + } + + $loan_table_dispaly_rows[] = array('particulars' => 'EMI Comfortable Paying','details' => $rupee_symbol." ".MYUTIL::customIndianNumberFormat($loan_form['emi_level']).' ('.MYUTIL::numtowords($loan_form['emi_level']).')' ); + + if(!$is_current_product_bl && !$is_current_product_laep) + { + + if(isset($loan_form['property_type_master']) && $loan_form['property_type_master'] != "") + { + $loan_table_dispaly_rows[] = array('particulars' => 'Type of Property Being Mortgaged','details' => substr_count($loan_form['property_type_master'],'Others') ? $loan_form['property_type_others'] : $loan_form['property_type_master']); + + $owners_list = null;foreach($loan_form['owners_list_master'] as $owner){ $owners_list.=$owner.' and '; } + $owners_list = substr_replace($owners_list, '', strrpos($owners_list, 'and'),strlen($owners_list)); + $loan_table_dispaly_rows[] = array('particulars' => 'Name of the current / proposed owner(s) of the Property being Mortgaged','details' => $owners_list); + + $loan_table_dispaly_rows[] = array('particulars' => 'Status of Construction','details' => $loan_form['construction_status_master']); + + $loan_table_dispaly_rows[] = array('particulars' => 'Estimated Market Value of the property being mortgaged','details' => $rupee_symbol." ".MYUTIL::customIndianNumberFormat($loan_form['emv_per_customer']).' ('.MYUTIL::numtowords($loan_form['emv_per_customer']).')'); + } + } + + if(isset($loan_form['property_seller']) && $loan_form['property_seller'] != '') + { + $loan_table_dispaly_rows[] = array('particulars' => 'Current Owner/Seller of the property','details' => $loan_form['property_seller'] ); + + + } + + if(isset($loan_form['address']) && $loan_form['address'] != '') + { + $address_of_owner_seller_property = $loan_form['address'] . (isset($loan_form['city_master']) ? ', '.$loan_form['city_master'] : '') . (isset($loan_form['state_master']) ? ', '.$loan_form['state_master'] : '') . (isset($loan_form['pincode_master']) ? ', '.$loan_form['pincode_master'] : ''); + + $loan_table_dispaly_rows[] = array('particulars' => 'Address of the property','details' => $address_of_owner_seller_property ); + } + //print_r($loan_table_dispaly_rows); + ?> +

+ + + + $row) + { + echo '"; + } + ?> + +
S.No Loan Particulars Loan Particular Details
'.($row_key + 1)." ".$row['particulars']." ".$row['details'] ."
+
".$loan_form['loandetails_remarks']; + ?> + + + + +Lessor Name / Property Owner Name'; + $second_lessee_name_row = 'Lessee Name'; + $third_property_address_row = 'Property Address'; + $fourth_type_of_property_row = 'Type of Property'; + $fifth_lease_period_row = 'Lease Period'; + $sixth_structure_of_property_row = 'Structure of Property / No of Floors vs Units'; + $seventh_security_deposit_row = 'Security Deposit'; + $eigth_current_rent_received_row = 'Current Rent Received (Rs/ per month)'; + $nineth_expense_of_management_row = 'Remarks'; + + + foreach($pd_processed_forms[17] as $rental_property_key => $rental_property) + { + //echo $rental_property_key; + $current_property = json_decode($rental_property['processed_json'],true); + $rental_data[] = RENTALFORM::getRentalText($current_property); + + } + + + if(count($rental_data)) + { + echo '
'; + echo '

Rental Income Details

'; + + foreach ($rental_data as $key => $value) { + + echo '

Property : '.($key + 1).''; + echo '

Address of Property : '.($value['address_property']).''; + echo '

Type of Property : '.($value['type_of_property']).''; + echo '

Name of the Property Owner`s : '.($value['property_owners_name']).''; + echo '

Name of the person`s who showing Property : '.($value['property_showing_persons_name']).''; + echo '

Property Document Proof Visted : '.($value['property_document_proof_visted']).''; + if(!strcasecmp($value['property_document_proof_visted'],'yes')) { echo '      Type of Property Document Visted : '.($value['type_of_document_visited']).''; } + echo '

Unit Type : ' . ($value['unit_type']) . ''; + echo '

No of Floors/Units : '.($value['no_of_floors']).''; + echo '      '; echo $value['area_coverd'] != "" ? 'Area covered : '.($value['area_coverd'].' '.$value['area_uom'].'') : ''; + //print_r($value['unit_details']); + if(count($value['unit_details'])) + { + echo '

'; + echo ''; + $unit_wise_total_security_deposit = 0; + $unit_wise_total_rent_received = 0; + foreach ($value['unit_details'] as $u_key => $unit_value) + { + $unit_wise_total_security_deposit += $unit_value['agreement_security_deposit_amount']; + $unit_wise_total_rent_received += $unit_value['agreement_monthly_rent_amount']; + echo ''; + } + echo ''; + echo '
S.No Lessee Name Area of Unit Payment Mode Rent Agreement ExecutedLease Period Security Deposit Rent Received( per month)
'. ( $u_key + 1) .' '. $unit_value['agreement_tenant_lessees_name'] .' '. $unit_value['property_cover_area'] .' '. $unit_value['payment_mode'] .' '. $unit_value['rent_agreement_executed'] .' '. $unit_value['leease_period'] .' '. $rupee_symbol.' '.MYUTIL::customIndianNumberFormat($unit_value['agreement_security_deposit_amount']) .' '. $rupee_symbol.' '.MYUTIL::customIndianNumberFormat( $unit_value['agreement_monthly_rent_amount'] ).'
Total '. $rupee_symbol.' '.MYUTIL::customIndianNumberFormat($unit_wise_total_security_deposit) .' '. $rupee_symbol.' '.MYUTIL::customIndianNumberFormat($unit_wise_total_rent_received) .'
'; + + + } + + //print_r($value['third_check_details']); + if($value['third_check_details']['done_third_party_check']) + { + echo '
For property'.($key + 1).' Third Party check has done with ' . $value['third_check_details']['whom_third_party_check_done']; + echo isset($value['third_check_details']['description_third_party_check_done']) ? ' ('. $value['third_check_details']['description_third_party_check_done'].'). ' : ' '; + if($value['third_check_details']['rental_rates_third_party_check_done'] != "") + { + echo 'Rental rates in the area as per person whom third party check is done is '.$value['third_check_details']['rental_rates_third_party_check_done']; + } + } + else + { + + echo '
For property '.($key + 1).' Third Party check not done becasue ' .$value['third_check_details']['why_third_party_check_not_done']; + } + echo '
' . $value['property_remark']; + + } + + } + + + } + + + ?> + + + + + $oaRow) { + $otherAssetRow = json_decode($oaRow['processed_json'],true); + $other_assest_common_remrks = $otherAssetRow['assets_form_remark']; + if(isset($otherAssetRow['asset_info_available']) && $otherAssetRow['asset_info_available'] == 1) + { + $is_personal_info_available = 1; + + if(count($otherAssetRow['assets_details'])>0){ + $otherAssetResult=ASSETSFORM::getOthersAssetsDetails($otherAssetRow['assets_details']); + + //print_r($otherAssetResult); + } + } + } + ?> +
+

Personal Assets

+ + + + + + + + + + + + + + + $paRow){ + ?> + + + + + + + + + + + +
Sr.NoAsset TypeAsset DescriptionAsset Owned ByApprox Market Value(Rs)Age of the Assest(Yrs)Loan Again Assest
'. $rupee_symbol.' '.MYUTIL::customIndianNumberFormat($paRow['approximate_market_value']) : $rupee_symbol.' '.MYUTIL::customIndianNumberFormat($paRow['approximate_market_value']); ?>
+ +

As per Loan applicant, he does not have any other assets.

+ '.$other_assest_common_remrks.'

'; } + + ?> + + + $ibRow) { + $individualBankRow = json_decode($ibRow['processed_json'],true); + $ind_banking_common_remarks = $individualBankRow['banking_form_remark']; + if(isset($individualBankRow['bank_info_available']) && $individualBankRow['bank_info_available'] == 1) + { + $is_personal_banking_available = 1; + if(count($individualBankRow['banking_details'])>0){ + $getIndividualEachValues=BANKINGFORM::getIndividualBankingDetails($individualBankRow['banking_details']); + $bankingResult = array_merge($bankingResult,$getIndividualEachValues); + + } + } + } + + + ?> +

Personal Banking:

+ +

Below bank account details were shared :

+ + + + + + + + + + + + + + $bdRow){ + ?> + + + + + + + + + + + +
Sr.NoAccount Holder's NameBank NameAccount TypeOD / CC LimitVintage
+ '.$ind_banking_common_remarks.'

'; } ?> + + + + + + + + $iRow) { + $otherIcomeRow = json_decode($iRow['processed_json'],true); + $other_source_income_common_remarks = $otherIcomeRow['otherincome_remarks']; + + + if(strtoupper($otherIcomeRow['other_income'])=='YES' && count($otherIcomeRow['income_details'])>0){ + $is_other_income_available = 1; + $otherIncomeResult=OTHERINCOMEFORM::getIncomeDetails($otherIcomeRow['income_details']); + + } + } + ?> +
+

Other Sources of Income of Individual Loan Applicants:

+ + + + + + + + + + + + + + $oiRow){ + ?> + + + + + + + + + +
Sr.NoIncome SourceEarned byAmount(Rs)
(Details Available in Annexure B)'; $GLOBALS['is_rental_available'] = 1 ; } ?>
+ +

As per the loan applicants, they do not have any other source of Income.

+ '. $other_source_income_common_remarks.'

'; } + + ?> + + + + + $fRow) { + $familyRow = json_decode($fRow['processed_json'],true); + //print_r($familyRow);die(); + $other_family_form_common_remarks = $familyRow['family_details_form_remark']; + if(array_key_exists('family_details',$familyRow) && count($familyRow['family_details'])>0){ + $familyResult=OTHERFAMILYFORM::getFamilyDetails($familyRow['family_details']); + } + } + ?> + +

Family Information:

+ 0){ + //print_r($familyResult); + ?> + + + $fmValue) { ?> + + '.$fmValue['selected_person_title'].$fmValue['selected_person'].'Family Information - Select person for capturing family details
, who is an applicant in the case, resides at '.$fmValue['residency_address'].'Family Information - Residence Address of Select person .'; + + $residence_text ='This is a '. $fmValue['residence_ownership'].' Family Information - Ownership of Residence residence, where the applicant has been staying for '. $fmValue['residence_No_of_years'].'Family Information - No of Yrs in current residence .'; + $residence_text .= (!strcasecmp($fmValue['residence_ownership'],'rented')) ? ' The rent paid '.$rupee_symbol.' '.$fmValue['rent'].' per month.' : ''; + + echo $intro_text;echo "

";echo $residence_text; + + ?> + + +

The table below provides details of other family members of

+ + + + + + + + + + + + + $fmRow){ + ?> + + + + + + + + + + +
Sr.NoNameRelationAgeEarning StatusOccupation Details
+ + +

Other Family Members is not available.

+ '.$other_family_form_common_remarks.'

'; } + + ?> + + + + + + $elRow) { + $otherLoanRow = json_decode($elRow['processed_json'],true); + $existing_loan_form_common_remarks = $otherLoanRow['currentloan_remarks']; + $total_no_of_data = 0; + if(strtoupper($otherLoanRow['existing_loan'])=='YES' && count($otherLoanRow['loan_details'])>0){ + $is_existing_loans_available = 1; + $total_no_of_data = count($otherLoanRow['loan_details']); + $existLoanResult=FINANCIALFORM::getOtherLoanDetails($otherLoanRow['loan_details']); + } + + } + ?> +
+

Existing loan obligation

+ + + + +

The table below lists the details of Existing Loan Obligations of the Loan Applicants.

+ + + + + Loan $header";}?> + + + + + + +
Particulars
+ +

As per loan applicant he does not have any existing loan obligations.

+ + '.$existing_loan_form_common_remarks.'

';} + ?> + + + + + + + + + + $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]); + // } + } + ?> + +

Neighbourhood / Reference Check

+ 0){ + //print_r($existNeighRefCheck);die(); + ?> + + $nfValue) { + + echo $nfValue['neighbourhood_name_only']; + ?> + + + + +
  • Neighbourhood Check Status is .
  • + + + + + + + +

    Status of the check: could not verify.

    + + '. $neighbourhood_form_common_remarks.'

    ';} + ?> + + + + + '; + echo '

    Credit Manager`s Specific Queries:

    '; + //echo '
    '; + if(isset($credit_officier_specific_queries['additional_requirements_processed']) && count($credit_officier_specific_queries['additional_requirements_processed'])) + { + + + foreach ($credit_officier_specific_queries['additional_requirements_processed'] as $key => $value) + { + echo 'Question - '.$value['question'].'
    '; + echo 'Answer - '. $value['answer']; + echo '

    '; + } + } + else + { + echo 'There are no specific queries raised by Credit Manager.'; + } + + echo '
    '; + echo '

    Documents to be collected:

    '; + // + if(isset($credit_officier_specific_queries['docs_to_be_sighted_processed']) && count($credit_officier_specific_queries['docs_to_be_sighted_processed'])) + { + + + foreach ($credit_officier_specific_queries['docs_to_be_sighted_processed'] as $doc_key => $doc_value) + { + echo 'Document Required : ' . $doc_value['doc_name'].'
    '; + echo 'Provided ( Yes / No ) : ' . ($doc_value['ans'] == 'yes' ? 'YES, Document available in zipped file enclosed with report'.'
    ' : 'NO
    '); + if($doc_value['ans'] != 'yes') + { + echo 'Reason : ' .$doc_value['reason']; + } + echo '

    '; + } + } + else + { + echo 'There are no specific documents to be collect.'; + } + + //} + + ?> + + + + +
    +

    PD OFFICER`S REMARKS ON CUSTOMER BEHAVIOUR, BUSINESS LOCATION & OVERALL PD STATUS

    + +
    + +
    + + +

    PD officer recommendation is '.$fo_diplay.'.

    ';?>

    The following key points were considered while arriving at the aforementioned status.

    + "; foreach($final_remark_data['recommendation_positive'] as $pos){ echo "
  • ".$pos['reason_for_positive']."
  • ";} + + }else if($negative){ echo "