From b5c2530132d4ba28f73d10c4df1de0e467c0a90a Mon Sep 17 00:00:00 2001 From: VE10-Sanjeev Date: Fri, 18 Aug 2023 13:24:54 +0530 Subject: [PATCH] Smc cet credit pd Agency added: ps --- .../controllers/SMC_Credit_PD_Controller.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/api/application/controllers/SMC_Credit_PD_Controller.php b/api/application/controllers/SMC_Credit_PD_Controller.php index c1f85109..b67b486e 100644 --- a/api/application/controllers/SMC_Credit_PD_Controller.php +++ b/api/application/controllers/SMC_Credit_PD_Controller.php @@ -512,6 +512,11 @@ class SMC_Credit_PD_Controller extends REST_Controller { $officer_id = isset($mater_details[0]['fk_updatedby']) ? $mater_details[0]['fk_updatedby'] : ''; $visit_date = isset($mater_details[0]['pd_visit_date']) ? $mater_details[0]['pd_visit_date'] : ''; + $agency_id = isset($mater_details[0]['pd_agency_id']) ? $mater_details[0]['pd_agency_id'] : ''; + $agency_name = isset($mater_details[0]['SMC_vendor_agency_name']) ? $mater_details[0]['SMC_vendor_agency_name'] : ''; + $agency_short_name = isset($mater_details[0]['SMC_vendor_agency_short_name']) ? $mater_details[0]['SMC_vendor_agency_short_name'] : ''; + $pd_allocated_to = isset($mater_details[0]['fk_pd_allocated_to']) ? $mater_details[0]['fk_pd_allocated_to'] : ''; + $pd_allocated_to_name = isset($mater_details[0]['pd_allocated_to']) ? $mater_details[0]['pd_allocated_to'] : ''; # Additional Fields For officer if (!empty($officer_id)) { @@ -520,6 +525,12 @@ class SMC_Credit_PD_Controller extends REST_Controller { foreach ($officer_details as $key => $value) { $CETAPP_creditPD_data['Officer Details'] = $value; $CETAPP_creditPD_data['Officer Details']['pd_visit_date'] = $visit_date; + $CETAPP_creditPD_data['Officer Details']['pd_vendor_officer'] = $pd_allocated_to; + $CETAPP_creditPD_data['Officer Details']['pd_vendor_officer_name'] = $pd_allocated_to_name; + $CETAPP_creditPD_data['Officer Details']['pd_agency_id'] = $agency_id; + $CETAPP_creditPD_data['Officer Details']['pd_agency_name'] = $agency_name; + $CETAPP_creditPD_data['Officer Details']['pd_agency_short_name'] = $agency_short_name; + } } } @@ -2009,7 +2020,6 @@ public function filterSalesPDList_post() { // print_r($view_data['pd_section_data'][15]);die(); $view_data['smc_images'] = $this->SMC_Credit_PD_Model->selectCustomRecords(array('doc_id', 'fk_smc_credit_pd_id','img','img_name','isactive'),array('fk_smc_credit_pd_id' => $records['pd_id'],'isactive' => 1,'img_name!=' => 'satellite'),SMC_CREDIT_PD_DOCS); $view_data['satellite'] = $this->SMC_Credit_PD_Model->selectCustomRecords(array('doc_id', 'fk_smc_credit_pd_id','img','img_name','isactive'),array('fk_smc_credit_pd_id' => $records['pd_id'],'isactive' => 1,'img_name=' => 'satellite'),SMC_CREDIT_PD_DOCS); - // print_r($view_data['smc_images']);die(); //print_r(count($view_data['smc_images']));die(); //score card part