diff --git a/api/application/controllers/SMC_Credit_PD_Controller.php b/api/application/controllers/SMC_Credit_PD_Controller.php index 7d4e4497..4a0dfe0b 100644 --- a/api/application/controllers/SMC_Credit_PD_Controller.php +++ b/api/application/controllers/SMC_Credit_PD_Controller.php @@ -423,6 +423,10 @@ class SMC_Credit_PD_Controller extends REST_Controller { { $this->load->helper('smc_creditpd'); $mater_details = $this->PD_Model->getPDMasterDetails($smc_credit_pd); + $columns = array('PDAPPLICANTSDETAILS.*'); + $table = PDAPPLICANTSDETAILS . ' as PDAPPLICANTSDETAILS'; + $where_arr = array('PDAPPLICANTSDETAILS.isactive'=>1,'PDAPPLICANTSDETAILS.applicant_type'=>1,'PDAPPLICANTSDETAILS.fk_pd_id'=>$smc_credit_pd); + $applicant_details = $this->SMC_Credit_PD_Model->selectCustomRecords($columns, $where_arr, $table); $pd_section_data = $this->SMC_Credit_PD_Model->getSMCTemplateForPD($smc_credit_pd,$mater_details[0]['fk_product_id'],null,null,'REPORT'); log_message('ERROR', '#### Credit PD ('.$smc_credit_pd.') '); if (!empty($pd_section_data)) { @@ -436,7 +440,8 @@ class SMC_Credit_PD_Controller extends REST_Controller { 'pd_type_name'=>$mater_details[0]['pd_type_name'], 'completed_date'=>$mater_details[0]['completed_on'], 'start_location'=>$mater_details[0]['start_location'], - 'lender_applicant_id'=>$mater_details[0]['lender_applicant_id']); + 'lender_applicant_id'=>$mater_details[0]['lender_applicant_id'], + 'name'=>$applicant_details[0]['applicant_name']); // foreach ($pd_section_data as $key => $value) { // if (isset($value['json']) && $value['json'] != '') { // $filter_form_id[$key] = $value['fk_form_id']; diff --git a/api/application/helpers/cet_creditpd_helper.php b/api/application/helpers/cet_creditpd_helper.php index 6bd26b92..6f625b92 100644 --- a/api/application/helpers/cet_creditpd_helper.php +++ b/api/application/helpers/cet_creditpd_helper.php @@ -50,7 +50,7 @@ class CET_CREDITPD curl_setopt( $ch,CURLOPT_POSTFIELDS, $output_data); $result = curl_exec($ch ); $response = json_decode($result); - log_message('ERROR',"CET APP CREDIT PDID (".$pdid.") response :".json_encode($response)); + log_message('ERROR',"CET APP CREDIT PDID (".$pdid.") ".CET_CREDIT_PD_INTEGRATION_URL." Response :".json_encode($response)); curl_close( $ch ); } catch (Exception $e) {