Smc cet credit pd Agency added: ps

This commit is contained in:
VE10-Sanjeev 2023-08-18 13:24:54 +05:30
parent c8659ad130
commit b5c2530132

View File

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