diff --git a/api/application/controllers/Sales_PD_Controller.php b/api/application/controllers/Sales_PD_Controller.php index 7d3ae6f5..6ce5a315 100644 --- a/api/application/controllers/Sales_PD_Controller.php +++ b/api/application/controllers/Sales_PD_Controller.php @@ -603,20 +603,11 @@ class Sales_PD_Controller extends REST_Controller { $applicant_id = $g_value['answer_value'] ? $g_value['answer_value'] : 'Not Provided'; } - if($sales_pd_master_data[0]['abbr'] == 'WCTL') - if($g_value['question_key'] == 'company_name') - { - $applicant_name = $g_value['answer_value']; - } - - else - { - if($g_value['question_key'] == 'main_loan_applicant') - { - $applicant_name = $g_value['answer_value']; - - } - } + if($g_value['question_key'] == 'main_loan_applicant') + { + $applicant_name = $g_value['answer_value']; + } + } } diff --git a/api/application/helpers/pdalerts_helper.php b/api/application/helpers/pdalerts_helper.php index b0e95df3..b31f7032 100644 --- a/api/application/helpers/pdalerts_helper.php +++ b/api/application/helpers/pdalerts_helper.php @@ -509,7 +509,7 @@ class PDALERTS $mail->Username = "noreply@ssa.sineedge.com"; // "The account" $mail->Password = "noreply@ssa"; // "The password" $mail->Port = 465; // "The port" - $mail->addAddress('vishant@sinemanegement.com'); + $mail->addAddress('vishant@sinemanagement.com'); $mail->addBCC("vitvelz@gmail.com", "Some BCC Name"); // Name is optional $mail->From = 'noreply@pdgenie.com'; $fromName = 'PD Genie'; if(ENVIRONMENT == 'testing' || ENVIRONMENT == 'development') { $fromName .= ' ( TEST ENV ) '; } @@ -524,11 +524,11 @@ class PDALERTS //$logger = MYLOG::logFunction(null,$core_details[0]['pd_id']); if(!$mail->send()) { //$logger->error("Mailer Error:" ,array($mail->ErrorInfo)); - log_message('ERROR','SALESPD MAIL SEND'.$mail_contents[1]); + log_message('ERROR','SALESPD MAIL NOT SEND'.$mail_contents[1]); } else { //$logger->info("Mailer Send:" ,array('mail_ID' => $lender_email,'Status' => 'SEND')); //echo 'DONE'; - log_message('ERROR','SALESPD MAIL NOT SEND'.$mail_contents[1]); + log_message('ERROR','SALESPD MAIL SEND'.$mail_contents[1]); } } } diff --git a/api/application/views/report_templates/JSONTOREPORT_DI_AI.php b/api/application/views/report_templates/JSONTOREPORT_DI_AI.php index 7b257893..816ca014 100644 --- a/api/application/views/report_templates/JSONTOREPORT_DI_AI.php +++ b/api/application/views/report_templates/JSONTOREPORT_DI_AI.php @@ -806,7 +806,7 @@ defined('BASEPATH') OR exit('No direct script access allowed'); 'well suited','fairly_suited' => 'fairly suited','not_suited' => 'not suited'); //die(); if( isset($pd_score) && count($pd_score))