From d2747d04322b7e2c0c2730fbe3f2e97e8c9bfe32 Mon Sep 17 00:00:00 2001 From: VE10-Sanjeev Date: Wed, 21 Sep 2022 13:01:39 +0530 Subject: [PATCH] Fixes : ps --- .../Template_Management_Controller.php | 100 +++++++++--------- .../report_templates/JSONTOREPORT_DI_AI.php | 4 +- .../JSONTOREPORT_DI_AI_TELE_PD.php | 7 +- 3 files changed, 54 insertions(+), 57 deletions(-) diff --git a/api/application/controllers/Template_Management_Controller.php b/api/application/controllers/Template_Management_Controller.php index d68ab6bf..e693179d 100644 --- a/api/application/controllers/Template_Management_Controller.php +++ b/api/application/controllers/Template_Management_Controller.php @@ -1690,64 +1690,64 @@ class Template_Management_Controller extends REST_Controller { } } - public function getFIPDForms_get() - { + // public function getFIPDForms_get() + // { - $PDtype_id = $this->get('pd_type_id'); - $FItype_id = $this->get('fi_id'); - if($PDtype_id == 4){ - if(!empty($FItype_id)){ - // $field_investigation = array(array("field_investigation_id"=> 1,"field_investigation"=> "Office Visit (DI)"),array("field_investigation_id"=> 2,"field_investigation"=> "Office Visit (Sal)"),array("field_investigation_id"=> 3,"field_investigation"=> "Residence Visit")); - if($FItype_id == 1){ + // $PDtype_id = $this->get('pd_type_id'); + // $FItype_id = $this->get('fi_id'); + // if($PDtype_id == 4){ + // if(!empty($FItype_id)){ + // // $field_investigation = array(array("field_investigation_id"=> 1,"field_investigation"=> "Office Visit (DI)"),array("field_investigation_id"=> 2,"field_investigation"=> "Office Visit (Sal)"),array("field_investigation_id"=> 3,"field_investigation"=> "Residence Visit")); + // if($FItype_id == 1){ - }else if($FItype_id == 2){ + // }else if($FItype_id == 2){ - }else if($FItype_id == 3){ + // }else if($FItype_id == 3){ - } + // } - } - else{ - $data['dataStatus'] = false; - $data['status'] = REST_Controller::HTTP_NO_CONTENT; - $data['msg'] = 'Field Investigation id is Not available'; - $this->response($data,REST_Controller::HTTP_OK); - } - } - else{ - $data['dataStatus'] = false; - $data['status'] = REST_Controller::HTTP_NO_CONTENT; - $data['msg'] = 'Its not a FI PD Type'; - $this->response($data,REST_Controller::HTTP_OK); - } + // } + // else{ + // $data['dataStatus'] = false; + // $data['status'] = REST_Controller::HTTP_NO_CONTENT; + // $data['msg'] = 'Field Investigation id is Not available'; + // $this->response($data,REST_Controller::HTTP_OK); + // } + // } + // else{ + // $data['dataStatus'] = false; + // $data['status'] = REST_Controller::HTTP_NO_CONTENT; + // $data['msg'] = 'Its not a FI PD Type'; + // $this->response($data,REST_Controller::HTTP_OK); + // } - $fields = array('form_id'); - $where_condition_array = array('fk_template_id'=>$template_id,'isactive'=>1); - $result_array = $this->Template_Management_Model->selectCustomRecords($fields,$where_condition_array,TEMPLATEFORMS); - //print_r($this->db->last_query()); - $temp = array(); - foreach($result_array as $r) - { - $formid = $r['form_id']; - $temp = array_merge($temp,array($formid)); - } + // $fields = array('form_id'); + // $where_condition_array = array('fk_template_id'=>$template_id,'isactive'=>1); + // $result_array = $this->Template_Management_Model->selectCustomRecords($fields,$where_condition_array,TEMPLATEFORMS); + // //print_r($this->db->last_query()); + // $temp = array(); + // foreach($result_array as $r) + // { + // $formid = $r['form_id']; + // $temp = array_merge($temp,array($formid)); + // } - if(count($result_array)) - { - $data['dataStatus'] = true; - $data['status'] = REST_Controller::HTTP_OK; - $data['records'] = $temp; - $this->response($data,REST_Controller::HTTP_OK); - } - else - { - $data['dataStatus'] = false; - $data['status'] = REST_Controller::HTTP_NO_CONTENT; - $data['msg'] = 'No Data Available'; - $this->response($data,REST_Controller::HTTP_OK); + // if(count($result_array)) + // { + // $data['dataStatus'] = true; + // $data['status'] = REST_Controller::HTTP_OK; + // $data['records'] = $temp; + // $this->response($data,REST_Controller::HTTP_OK); + // } + // else + // { + // $data['dataStatus'] = false; + // $data['status'] = REST_Controller::HTTP_NO_CONTENT; + // $data['msg'] = 'No Data Available'; + // $this->response($data,REST_Controller::HTTP_OK); - } + // } - } + // } } \ No newline at end of file diff --git a/api/application/views/report_templates/JSONTOREPORT_DI_AI.php b/api/application/views/report_templates/JSONTOREPORT_DI_AI.php index d374ddc3..ad636ee4 100644 --- a/api/application/views/report_templates/JSONTOREPORT_DI_AI.php +++ b/api/application/views/report_templates/JSONTOREPORT_DI_AI.php @@ -9,8 +9,8 @@ $loan_word = $pd_master_details[0]['lender_short_name'] != 'CFPL' ? 'Loan' : 'Fa -