diff --git a/api/application/config/routes.php b/api/application/config/routes.php index 32c26764..e03ebc2f 100644 --- a/api/application/config/routes.php +++ b/api/application/config/routes.php @@ -236,6 +236,7 @@ $route['getFinalPDReportQuestions'] = 'PD_Controller/getFinalPDReportQuestions'; $route['getTypeOfActivetyFromBusinessForm'] = 'PD_Controller/getTypeOfActivetyFromBusinessJSON'; $route['getCompaniesListsForBusiness'] = 'PD_Controller/getCompaniesListsFromGeneralFormRawJSON'; $route['getPDImages'] = 'PD_Controller/getPDImages'; +$route['deactiveFormData'] = 'PD_Controller/deactiveFormData'; //$route['getTypeOfActivetyFromBusinessJSON'] = 'PD_Controller/getTypeOfActivetyFromBusinessJSON'; //Dashboard and Reports Related routes diff --git a/api/application/controllers/PD_Controller.php b/api/application/controllers/PD_Controller.php index f1262e0d..07b9449b 100644 --- a/api/application/controllers/PD_Controller.php +++ b/api/application/controllers/PD_Controller.php @@ -9082,4 +9082,39 @@ public function getCompaniesListsFromGeneralFormRawJSON_post() $this->response($data,REST_Controller::HTTP_OK); } -} \ No newline at end of file + + public function deactiveFormData_get() + { + //$records = $this->post('records'); + $pd_form_detail_json_id = $this->get('jid'); + + if(is_numeric($pd_form_detail_json_id)) + { + $id = $this->PD_Model->updateRecords(array('isactive' => 0),PDFORMDETAILSJSON,array('pd_form_detail_json_id' => $pd_form_detail_json_id)); + if($id) + { + $data['dataStatus'] = true; + $data['status'] = REST_Controller::HTTP_OK; + $data['records'] = $id; + $this->response($data,REST_Controller::HTTP_OK); + } + else + { + $data['dataStatus'] = false; + $data['status'] = REST_Controller::HTTP_NOT_MODIFIED; + $data['msg'] = 'Something went wrong..! Try Later...!'; + $this->response($data,REST_Controller::HTTP_OK); + } + } + else + { + $data['dataStatus'] = false; + $data['status'] = REST_Controller::HTTP_NOT_FOUND; + $data['msg'] = 'Wrong Call...!'; + $this->response($data,REST_Controller::HTTP_OK); + } + + } +} + + diff --git a/api/application/views/report_templates/JSONTOREPORT_CLIX.php b/api/application/views/report_templates/JSONTOREPORT_CLIX.php index 114ba013..be977dc4 100644 --- a/api/application/views/report_templates/JSONTOREPORT_CLIX.php +++ b/api/application/views/report_templates/JSONTOREPORT_CLIX.php @@ -1985,7 +1985,7 @@ defined('BASEPATH') OR exit('No direct script access allowed'); echo $value['fourth_row']; echo $value['fifth_row']; echo $value['sixth_row']; - if($pd_master_details[0]['product_abbr'] != 'BL' && $pd_master_details[0]['product_abbr'] == 'LAEP') + if($pd_master_details[0]['product_abbr'] != 'BL' && $pd_master_details[0]['product_abbr'] != 'LAEP') { echo $value['seventh_row']; echo $value['eighth_row']; @@ -2654,7 +2654,7 @@ defined('BASEPATH') OR exit('No direct script access allowed'); @@ -2939,7 +2939,7 @@ defined('BASEPATH') OR exit('No direct script access allowed'); echo $supplier_third_row; echo $supplier_fourth_row; - if($pd_master_details[0]['product_abbr'] != 'BL' && $pd_master_details[0]['product_abbr'] == 'LAEP') + if($pd_master_details[0]['product_abbr'] != 'BL' && $pd_master_details[0]['product_abbr'] != 'LAEP') { echo $supplier_fifth_row; @@ -3704,7 +3704,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');