From 195f8838de23979cc4ee0309ed3fe8536384c0ad Mon Sep 17 00:00:00 2001 From: sanjeev Date: Wed, 15 Dec 2021 09:52:47 +0530 Subject: [PATCH] IndusInd lender's notify enabled : ps --- api/application/controllers/PD_Controller.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/api/application/controllers/PD_Controller.php b/api/application/controllers/PD_Controller.php index 7fd1eac2..f903066d 100644 --- a/api/application/controllers/PD_Controller.php +++ b/api/application/controllers/PD_Controller.php @@ -594,7 +594,12 @@ 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; + + $lender_id = ENVIRONMENT == 'production' ? 6 : 37; // IndusInd Bank Limited lender means notify enabled. + if($pd_details['fk_lender_id'] == $lender_id){ + // $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_details['is_notify_enabled'] = 1; + } $pd_id = $this->PD_Model->saveRecords($pd_details,PDTRIGGER);