applicant name fixes for CET data Push: ps

This commit is contained in:
VE10-Sanjeev 2023-07-19 11:47:38 +05:30
parent e0aa0ac24b
commit 223094df59
2 changed files with 7 additions and 2 deletions

View File

@ -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'];

View File

@ -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) {