diff --git a/.gitignore b/.gitignore index 666d1ca0..587519b3 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ api/application/vendor/* api/application/logs/* api/application/syslogs/* +api/application/request_logs/* api/application/docs/* !api/application/logs/index.html !api/application/logs/.htaccess diff --git a/api/application/controllers/PD_Controller.php b/api/application/controllers/PD_Controller.php index 9cf5f843..97e65e31 100644 --- a/api/application/controllers/PD_Controller.php +++ b/api/application/controllers/PD_Controller.php @@ -501,6 +501,7 @@ class PD_Controller extends REST_Controller { foreach($pd_applicant_details as $pd_applicant_detail) { $pd_applicant_detail['fk_pd_id'] = $pd_id; + $pd_applicant_detail['applicant_name'] = MYUTIL::applicantNameCamelCaseConvertion($pd_applicant_detail['applicant_name']); $co_applicant_id = $this->PD_Model->saveRecords($pd_applicant_detail,PDAPPLICANTSDETAILS); if($co_applicant_id != null || $co_applicant_id != '') { @@ -892,16 +893,10 @@ class PD_Controller extends REST_Controller { if($pd_id != "" || $pd_id != null) { - //Save Assigned Address Details to newly created Addtional PD in address table - HOLD TEMP (NOT DONE) - // for this have to change getPDAddress model funcitons - // $current_address = $this->PD_Model->getPDAddress(null,$newpd['fk_address_id']); - // if(count($current_address)) - // { - // $temp_address = $current_address[0]; - // $tem_address['pd_address_id'] = null; - - // $id = $this->PD_Model->saveRecords($tem_address,PDADDRESS); - // } + //update Applicant details + $fields = array('additional_pd_id' => $pd_id); + $where_condition_array = array('pd_co_applicant_id'=>$pd_details['pd_co_applicant_id'],'mobile_no' => $pd_details['mobile_no']); + $this->PD_MODEL->updateRecords($fields,PDAPPLICANTSDETAILS,$where_condition_array); $logger = MYLOG::logFunction(); $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'])); @@ -4010,6 +4005,7 @@ class PD_Controller extends REST_Controller { } + $temp_array['pd_report_generated_date'] = date('Y-m-d h:m:s'); $id = $this->PD_Model->updateRecords($temp_array,PDTRIGGER,$where_condition_array); $latest_version = 0; @@ -4692,8 +4688,8 @@ class PD_Controller extends REST_Controller { public function codeigniterViewTest_post() { - PDALERTS::pdnotification(600); - die(); + // PDALERTS::pdnotification(600); + // die(); $records = $this->post('records'); $pdid = $records['pd_id']; $is_regenerate = 0; @@ -4702,14 +4698,14 @@ class PD_Controller extends REST_Controller { $is_regenerate = 1; } //print_r($records); - // $data['pd_master_details'] = $this->PD_Model->getPDMasterDetails($pdid); - // $data['applicants_details'] = $this->PD_Model->getApplicantsDetails($pdid); + $data['pd_master_details'] = $this->PD_Model->getPDMasterDetails($pdid); + $data['applicants_details'] = $this->PD_Model->getApplicantsDetails($pdid); // $data['pd_additional_requirements'] = $this->PD_Model->getPDAdditionalRequirements($pdid); // $data['score_questions_display'] = $this->PD_Model->getScoreableQuestionToDispaly(); $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'],2) : 0; + //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'],2) : 0; //echo $score_for_chart; $chart = null; if($chart) diff --git a/api/application/docs/sample.pdf b/api/application/docs/sample.pdf index e7980b27..a44617f2 100644 Binary files a/api/application/docs/sample.pdf and b/api/application/docs/sample.pdf differ diff --git a/api/application/helpers/myutil_helper.php b/api/application/helpers/myutil_helper.php index 2fe8c73c..2149bcbc 100644 --- a/api/application/helpers/myutil_helper.php +++ b/api/application/helpers/myutil_helper.php @@ -121,6 +121,14 @@ class MYUTIL $indian_num_format = numfmt_create( 'en_IN', NumberFormatter::CURRENCY ); //echo numfmt_format_currency($indian_num_format,$value, "INR"); return numfmt_format_currency($indian_num_format,$value, "INR"); + } + + public static function applicantNameCamelCaseConvertion($name) + { + $name = explode(' ',$name); + $final_name = null; + foreach($name as $n){ $final_name.= ' '.ucfirst(strtolower($n)); } + return $final_name; } } diff --git a/api/application/helpers/pdscore_helper.php b/api/application/helpers/pdscore_helper.php index 413bdd62..badec496 100644 --- a/api/application/helpers/pdscore_helper.php +++ b/api/application/helpers/pdscore_helper.php @@ -533,10 +533,10 @@ class PDSCORE $current_actual_score += $f_value['attributed_score']; } - $score_questions['score_summary'][$key] = array('actual_score' => $current_actual_score,'max_score' => $current_max_score); + $score_questions['score_summary'][$key] = array('actual_score' => $current_actual_score,'max_score' => $current_max_score,'score_per' => (($current_actual_score/$current_max_score) * 100)); } - $score_questions['score_summary']['overall_score'] = array('overall_actual_score' => $overall_actual_score, 'overall_max_score' => $overall_max_score,'final_score' => round(($overall_actual_score/$overall_max_score) * 100)); + $score_questions['score_summary']['overall_score'] = array('overall_actual_score' => $overall_actual_score, 'overall_max_score' => $overall_max_score,'final_score' => (($overall_actual_score/$overall_max_score) * 100)); $score_questions['score_summary']['asset_calculation_details'] = $asset_calculation_details; //print_r($score_questions);die(); diff --git a/api/application/libraries/REST_Controller.php b/api/application/libraries/REST_Controller.php index 7021fb4e..45f0bfaa 100644 --- a/api/application/libraries/REST_Controller.php +++ b/api/application/libraries/REST_Controller.php @@ -384,7 +384,7 @@ abstract class REST_Controller extends CI_Controller { $agent = 'Unidentified User Agent'; } $logger = MYLOG::logFunction('request_logger'); - $logger->info('REQUEST_INFO',array('ip' => $this->input->ip_address(),'paltform' => $this->agent->platform(),'browser' => $agent)); + $logger->info('REQUEST_INFO',array('ip' => $this->input->ip_address(),'platform' => $this->agent->platform(),'browser' => $agent)); } /** diff --git a/api/application/models/PD_Model.php b/api/application/models/PD_Model.php index d0c52ce6..98e8f677 100644 --- a/api/application/models/PD_Model.php +++ b/api/application/models/PD_Model.php @@ -285,7 +285,7 @@ class PD_Model extends SPARQ_Model { //print_r($addtional_pd_ids_string);die(); - $this->db->SELECT('PDAPPLICANTSDETAILS.pd_co_applicant_id, PDAPPLICANTSDETAILS.fk_pd_id, PDAPPLICANTSDETAILS.applicant_name, PDAPPLICANTSDETAILS.applicant_type, PDAPPLICANTSDETAILS.mobile_no, PDAPPLICANTSDETAILS.email, PDAPPLICANTSDETAILS.addressline1, PDAPPLICANTSDETAILS.addressline2, PDAPPLICANTSDETAILS.addressline3, PDAPPLICANTSDETAILS.fk_city, PDAPPLICANTSDETAILS.fk_state, PDAPPLICANTSDETAILS.pincode,PDAPPLICANTSDETAILS.relation,RELATIONSHIPS.name as relation_name,PDAPPLICANTSDETAILS.landline,PDAPPLICANTSDETAILS.company_name,PDAPPLICANTSDETAILS.applicant_title_name,TITLES.name as title_name'); + $this->db->SELECT('PDAPPLICANTSDETAILS.pd_co_applicant_id, PDAPPLICANTSDETAILS.fk_pd_id, PDAPPLICANTSDETAILS.applicant_name, PDAPPLICANTSDETAILS.applicant_type, PDAPPLICANTSDETAILS.mobile_no, PDAPPLICANTSDETAILS.email, PDAPPLICANTSDETAILS.addressline1, PDAPPLICANTSDETAILS.addressline2, PDAPPLICANTSDETAILS.addressline3, PDAPPLICANTSDETAILS.fk_city, PDAPPLICANTSDETAILS.fk_state, PDAPPLICANTSDETAILS.pincode,PDAPPLICANTSDETAILS.relation,RELATIONSHIPS.name as relation_name,PDAPPLICANTSDETAILS.landline,PDAPPLICANTSDETAILS.company_name,PDAPPLICANTSDETAILS.applicant_title_name,TITLES.name as title_name,PDAPPLICANTSDETAILS.additional_pd_id'); $this->db->FROM(PDAPPLICANTSDETAILS.' as PDAPPLICANTSDETAILS'); $this->db->JOIN(STATE.' as STATE','PDAPPLICANTSDETAILS.fk_state = STATE.state_id','LEFT'); $this->db->JOIN(CITY.' as CITY','PDAPPLICANTSDETAILS.fk_city = CITY.city_id','LEFT'); @@ -320,6 +320,7 @@ class PD_Model extends SPARQ_Model { public function getPDAddress($temp_pdid) { + $pdid = $temp_pdid; $pd_master_detials = $this->getPDMasterDetails($pdid); $assigned_pd = null; @@ -343,7 +344,7 @@ class PD_Model extends SPARQ_Model { $this->db->ORDER_BY('PDADDRESS.pd_address_id'); $result_child_array = $this->db->GET()->result_array(); //print_r($this->db->last_query()); - //print_r($result_child_array); + //print_r($result_child_array);die(); if(count($result_child_array) != 0) { @@ -743,7 +744,7 @@ class PD_Model extends SPARQ_Model { */ public function getPDMasterDetails($pdid) { - $this->db->SELECT('PDTRIGGER.pd_id, PDTRIGGER.fk_lender_id,ENTITY.full_name as lender_full_name,ENTITY.short_name as lender_short_name, PDTRIGGER.fk_entity_billing_id,ENTITYBILLING.billing_name,PDTRIGGER.lender_applicant_id, DATE_FORMAT(PDTRIGGER.pd_date_of_initiation, "%d/%m/%Y") as pd_date_of_initiation,PDTRIGGER.pd_date_of_initiation as pd_date_of_initiation_sqlformat, PDTRIGGER.fk_product_id,PRODUCTS.name as product_name,PRODUCTS.abbr as product_abbr, PDTRIGGER.fk_subproduct_id,SUBPRODUCTS.name as subproduct_name,SUBPRODUCTS.abbr as subproduct_abbr, PDTRIGGER.fk_pd_type,PDTYPE.type_name as pd_type_name, PDTRIGGER.pd_status,PDTRIGGER.pd_specific_clarification, DATE_FORMAT(PDTRIGGER.createdon,"%d/%m/%Y %H:%i %p") as createdon, PDTRIGGER.fk_createdby, DATE_FORMAT(PDTRIGGER.updatedon,"%d/%m/%Y %H:%i %p") as updatedon, PDTRIGGER.fk_updatedby,concat(USERPROFILE.first_name," ",USERPROFILE.last_name) as createdby,concat(USERPROFILE1.first_name," ",USERPROFILE1.last_name) as updatedby, PDTRIGGER.fk_pd_allocation_type,,PDALLOCATIONTYPE.pd_allocation_type_name, PDTRIGGER.fk_pd_allocated_to,concat(USERPROFILE2.first_name," ",USERPROFILE2.last_name) as pd_allocated_to,PDTRIGGER.executive_id,concat(EXECUTIVE.first_name," ",EXECUTIVE.last_name) as executive_name,PDTRIGGER.central_pd_officer_id,concat(CENTRALOFFICER.first_name," ",CENTRALOFFICER.last_name) as centralofficer,PDTRIGGER.fk_pd_template_id,TEMPLATE.template_name, PDTRIGGER.fk_customer_segment,CUSTOMERSEGMENT.name as customer_segment_name,CUSTOMERSEGMENT.abbr as customer_segment_abbr, PDTRIGGER.pd_officier_final_judgement, PDTRIGGER.pd_agency_id,AGENCY.full_name as agency_name, PDTRIGGER.loan_amount,PDTRIGGER.addressline1,PDTRIGGER.addressline2,PDTRIGGER.addressline3,PDTRIGGER.fk_city,CITY.name as city_name,PDTRIGGER.fk_state,STATE.name as state_name,PINCODE.pincode,PDTRIGGER.pincode as pincode_id,PDTRIGGER.pd_contact_person,PDTRIGGER.pd_contact_mobileno,DATE_FORMAT(PDTRIGGER.scheduled_on,"%d/%m/%Y %h:%i %p") as scheduled_on,PDTRIGGER.scheduled_on as scheduled_on_for_validation,DATE_FORMAT(PDTRIGGER.scheduled_on,"%dth %b %Y ") as scheduled_date_for_log,DATE_FORMAT(PDTRIGGER.scheduled_on,"%h:%i %p") as scheduled_time_for_log,DATE_FORMAT(PDTRIGGER.completed_on,"%d/%m/%Y %h:%i:%s %p") as completed_on,PDTRIGGER.remarks,PDTRIGGER.bounce_reason,PDTRIGGER.bounce_reason_others,BOUNCEMASTER.bounce_reason_name,PDTRIGGER.is_original_report_created,PDTRIGGER.pd_report_latest_version,PDAPPLICANTSDETAILS.applicant_name as main_applicant,PDTRIGGER.pd_branch_id,ENTITYLENDERBRANCH.branch_name,PDTRIGGER.qc_feedback,PDTRIGGER.qc_rating,PDTRIGGER.qc_remarks,PDTRIGGER.lender_rating,PDTRIGGER.lender_feedback,PDAPPLICANTSDETAILS.applicant_title_name,TITLES.name as title_name,PDTRIGGER.pd_contact_landline,PDTRIGGER.other_pincode,PDTRIGGER.is_otp_done,PDTRIGGER.encrypted_url,PDTRIGGER.is_child,PDTRIGGER.parent_pd_id,PDTRIGGER.fk_primary_address_id,PDTRIGGER.fk_address_id'); + $this->db->SELECT('PDTRIGGER.pd_id, PDTRIGGER.fk_lender_id,ENTITY.full_name as lender_full_name,ENTITY.short_name as lender_short_name, PDTRIGGER.fk_entity_billing_id,ENTITYBILLING.billing_name,PDTRIGGER.lender_applicant_id, DATE_FORMAT(PDTRIGGER.pd_date_of_initiation, "%d/%m/%Y") as pd_date_of_initiation,DATE_FORMAT(PDTRIGGER.pd_report_generated_date,"%d/%m/%Y") as pd_report_generated_date,PDTRIGGER.pd_date_of_initiation as pd_date_of_initiation_sqlformat, PDTRIGGER.fk_product_id,PRODUCTS.name as product_name,PRODUCTS.abbr as product_abbr, PDTRIGGER.fk_subproduct_id,SUBPRODUCTS.name as subproduct_name,SUBPRODUCTS.abbr as subproduct_abbr, PDTRIGGER.fk_pd_type,PDTYPE.type_name as pd_type_name, PDTRIGGER.pd_status,PDTRIGGER.pd_specific_clarification, DATE_FORMAT(PDTRIGGER.createdon,"%d/%m/%Y %H:%i %p") as createdon, PDTRIGGER.fk_createdby, DATE_FORMAT(PDTRIGGER.updatedon,"%d/%m/%Y %H:%i %p") as updatedon, PDTRIGGER.fk_updatedby,concat(USERPROFILE.first_name," ",USERPROFILE.last_name) as createdby,concat(USERPROFILE1.first_name," ",USERPROFILE1.last_name) as updatedby, PDTRIGGER.fk_pd_allocation_type,,PDALLOCATIONTYPE.pd_allocation_type_name, PDTRIGGER.fk_pd_allocated_to,concat(USERPROFILE2.first_name," ",USERPROFILE2.last_name) as pd_allocated_to,PDTRIGGER.executive_id,concat(EXECUTIVE.first_name," ",EXECUTIVE.last_name) as executive_name,PDTRIGGER.central_pd_officer_id,concat(CENTRALOFFICER.first_name," ",CENTRALOFFICER.last_name) as centralofficer,PDTRIGGER.fk_pd_template_id,TEMPLATE.template_name, PDTRIGGER.fk_customer_segment,CUSTOMERSEGMENT.name as customer_segment_name,CUSTOMERSEGMENT.abbr as customer_segment_abbr, PDTRIGGER.pd_officier_final_judgement, PDTRIGGER.pd_agency_id,AGENCY.full_name as agency_name, PDTRIGGER.loan_amount,PDTRIGGER.addressline1,PDTRIGGER.addressline2,PDTRIGGER.addressline3,PDTRIGGER.fk_city,CITY.name as city_name,PDTRIGGER.fk_state,STATE.name as state_name,PINCODE.pincode,PDTRIGGER.pincode as pincode_id,PDTRIGGER.pd_contact_person,PDTRIGGER.pd_contact_mobileno,DATE_FORMAT(PDTRIGGER.scheduled_on,"%d/%m/%Y %h:%i %p") as scheduled_on,PDTRIGGER.scheduled_on as scheduled_on_for_validation,DATE_FORMAT(PDTRIGGER.scheduled_on,"%dth %b %Y ") as scheduled_date_for_log,DATE_FORMAT(PDTRIGGER.scheduled_on,"%h:%i %p") as scheduled_time_for_log,DATE_FORMAT(PDTRIGGER.completed_on,"%d/%m/%Y %h:%i:%s %p") as completed_on,PDTRIGGER.remarks,PDTRIGGER.bounce_reason,PDTRIGGER.bounce_reason_others,BOUNCEMASTER.bounce_reason_name,PDTRIGGER.is_original_report_created,PDTRIGGER.pd_report_latest_version,PDAPPLICANTSDETAILS.applicant_name as main_applicant,PDTRIGGER.pd_branch_id,ENTITYLENDERBRANCH.branch_name,PDTRIGGER.qc_feedback,PDTRIGGER.qc_rating,PDTRIGGER.qc_remarks,PDTRIGGER.lender_rating,PDTRIGGER.lender_feedback,PDAPPLICANTSDETAILS.applicant_title_name,TITLES.name as title_name,PDTRIGGER.pd_contact_landline,PDTRIGGER.other_pincode,PDTRIGGER.is_otp_done,PDTRIGGER.encrypted_url,PDTRIGGER.is_child,PDTRIGGER.parent_pd_id,PDTRIGGER.fk_primary_address_id,PDTRIGGER.fk_address_id'); $this->db->FROM(PDTRIGGER.' as PDTRIGGER'); $this->db->JOIN(ENTITY.' as ENTITY','PDTRIGGER.fk_lender_id = ENTITY.entity_id ','LEFT'); $this->db->JOIN(ENTITYBILLING.' as ENTITYBILLING','PDTRIGGER.fk_entity_billing_id = ENTITYBILLING.entity_billing_id','LEFT'); diff --git a/api/application/request_logs/ssa_app_2019-04-27.html b/api/application/request_logs/ssa_app_2019-04-27.html index fce0777a..fdf831da 100644 --- a/api/application/request_logs/ssa_app_2019-04-27.html +++ b/api/application/request_logs/ssa_app_2019-04-27.html @@ -202,4 +202,82 @@
| Message: | +REQUEST_INFO |
+||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Time: | +2019-04-27 19:14:26 |
+||||||||||
| Channel: | +request_logger |
+||||||||||
| Context: | +
|
+||||||||||
| Extra: | +
|
+
| Message: | +REQUEST_INFO |
+||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Time: | +2019-04-27 19:18:02 |
+||||||||||
| Channel: | +request_logger |
+||||||||||
| Context: | +
|
+||||||||||
| Extra: | +
|
| PD Report Date | ".$pd_master_details[0]['updatedon']." | "; + echo "||
| PD Initiated Date | ".$pd_master_details[0]['pd_date_of_initiation']." | ||
| PD Vist Date | ".$pd_master_details[0]['scheduled_on']." | ||
| PD Report Date | ".$pd_master_details[0]['pd_report_generated_date']." | "; echo "||
| 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']." |
| Person(s) Met | $individual)
+ {
+ if($individual['is_person_met'] == true)
+ {
+ $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.' ' ; + + $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.=' '; + } + } + //print_r($general_form['persons_with_relationships']);die(); + $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'])) + { + $RSNA = isset($persons_with_relationship['relation_to_master']) ? $persons_with_relationship['relation_to_master'] : " Could Not Find"; + if(isset($persons_with_relationship['relationship_master'])) + { + $personal_relationship_data .= $persons_with_relationship['relationship_master'] .' Of '. $RSNA; + $personal_relationship_data.=' '; + + } + } + } + + $company_relationship_data .= $personal_relationship_data; + //echo $company_relationship_data; + echo substr_replace($company_relationship_data, '', strrpos($company_relationship_data, ' '),strlen($company_relationship_data)); + + } + } + ?> + |
Loan Applicants
+| Name | Age (Yrs) | Qualification | Relationships |
|---|---|---|---|
| ".$individual['applicant_title_name_master'].' '.$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.=' '; + } + } + //echo '*********'.$company_relationship_data.'*********'; + //echo strrpos($company_relationship_data, ''); + // $company_relationship_data = substr_replace($company_relationship_data, '', strrpos($company_relationship_data, ' '),strlen($company_relationship_data)); + // echo $company_relationship_data; + $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'])) + { + + $RSNA = isset($persons_with_relationship['relation_to_master']) ? $persons_with_relationship['relation_to_master'] : " Could Not Find"; + if(isset($persons_with_relationship['relationship_master'])) + { + $personal_relationship_data .= $persons_with_relationship['relationship_master'] .' of '. $RSNA; + + $personal_relationship_data.=' '; + } + } + } + $company_relationship_data .= $personal_relationship_data; + echo substr_replace($company_relationship_data, '', strrpos($company_relationship_data, ' '),strlen($company_relationship_data)); + + echo " |
| General Section Score | |||
| Business Section Score | |||
| Final Remarks Score | |||
| Final PD Score | (Over all Acutal score () / over all Maximum Score ( )) * 100) |
| Actual Score | Max Score | Score % | |
|---|---|---|---|
| General Section Score | |||
| Business Section Score | |||
| Final Remarks Score | |||
| Final PD Score |
| Person(s) Met | $individual)
- {
- if($individual['is_person_met'] == true)
- {
- $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 ; - - 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 - echo ' '.$company_with_relationship['company_relationship_master'] .' Of '.$company_with_relationship['company_name'] . ' '; - } - } - //print_r($general_form['persons_with_relationships']);die(); - 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'])) - { - //echo ' '. isset($persons_with_relationship['relationship_master']) ? $persons_with_relationship['relationship_master'] : " Could Not Find" .' Of '.$persons_with_relationship['relation_to_master'] . ' '; - //print_r($persons_with_relationship); - - $RSNA = isset($persons_with_relationship['relation_to_master']) ? $persons_with_relationship['relation_to_master'] : " Could Not Find"; - isset($persons_with_relationship['relationship_master']) ? print_r($persons_with_relationship['relationship_master'] .' Of '. $RSNA) : ""; - } - } - - - - } - } - ?> - |
Loan Applicants
- -| ".$individual['applicant_title_name_master'].$applicant_name." | ";
-
- 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
-
- echo " "; - print_r($company_with_relationship['company_relationship_master'] .' Of '.$company_with_relationship['company_name']); - } - } - - foreach($general_form['persons_with_relationships'] as $persons_with_relationship) - { - //print_r($persons_with_relationship); - if($individual['pd_co_applicant_id'] == $persons_with_relationship['pd_co_applicant_id'] && isset($persons_with_relationship['relationship'])) - { - echo " "; - $RSNA = isset($persons_with_relationship['relation_to_master']) ? $persons_with_relationship['relation_to_master'] : " Could Not Find"; - isset($persons_with_relationship['relationship_master']) ? print_r($persons_with_relationship['relationship_master'] .' Of '. $RSNA) : ""; - //print_r($persons_with_relationship); - } - } - - echo " |
PD Officer's Note (About General Section) :
- - Details Score Card Section