diff --git a/api/application/controllers/PD_Controller.php b/api/application/controllers/PD_Controller.php index 9111aef1..7fd1eac2 100644 --- a/api/application/controllers/PD_Controller.php +++ b/api/application/controllers/PD_Controller.php @@ -594,6 +594,8 @@ class PD_Controller extends REST_Controller { // echo 'final'; // die(); $pd_details['parent_pd_id'] = isset($pd_details['parent_pd_id']) ? $pd_details['parent_pd_id'] : NULL; + $pd_details['is_notify_enabled'] = isset($pd_details['is_notify_enabled']) ? (!is_null($pd_details['is_notify_enabled']) ? $pd_details['is_notify_enabled'] : 1) : 1; + $pd_id = $this->PD_Model->saveRecords($pd_details,PDTRIGGER); @@ -1656,7 +1658,6 @@ public function assignPDTempalate($data) $records['vendor_status'] = TRIGGERED; } } - // if($smc_lender_id != $lender_id[0]['fk_lender_id']){ // $records['pd_status'] = isset($records['pd_status']) ? $records['pd_status'] : ALLOCATED ; // } @@ -6551,6 +6552,9 @@ public function getPDFormDetailsJSON_post() + } + public function notify_get(){ + PDALERTS::pdnotification(2854); } public function calculatePDScore($data) diff --git a/api/application/helpers/pdalerts_helper.php b/api/application/helpers/pdalerts_helper.php index 366a7bc7..6077131c 100644 --- a/api/application/helpers/pdalerts_helper.php +++ b/api/application/helpers/pdalerts_helper.php @@ -733,6 +733,7 @@ class PDALERTS $mail->IsSMTP(); // Telling the class to use SMTP $mail_id1 = $core_details[0]['allocated_email']; + $mail_id2 = $core_details[0]['agency_mail']; $mail->SMTPAuth = true; $mail->SMTPDebug = 0; $mail->SMTPSecure = "ssl"; @@ -744,10 +745,11 @@ class PDALERTS $fromName = 'PD Genie'; $subject = 'PD Allocated For Application ID -'.$core_details[0]['lender_applicant_id']; $mail->addAddress($mail_id1); + $mail->addBCC($mail_id2); if(ENVIRONMENT == 'testing' || ENVIRONMENT == 'development') { $fromName .= ' ( TEST ENV ) '; $subject .= ' ( TEST ENV ) '; - $mail->addBCC("venkiraj0@gmail.com");$mail->addBCC("venbalap08@gmail.com"); + $mail->addBCC("venkiraj0@gmail.com"); } $mail->FromName = $fromName; $mail->isHTML(true);