diff --git a/api/application/config/routes.php b/api/application/config/routes.php index d534b76f..4eb4f863 100755 --- a/api/application/config/routes.php +++ b/api/application/config/routes.php @@ -428,7 +428,7 @@ $route['transferCreditPDToCETApp'] = 'SMC_Credit_PD_Controller/transferCreditPDT $route['transferCreditPDImgToCETApp'] = 'SMC_Credit_PD_Controller/transferCreditPDImgToCETApp'; $route['transferCreditPDReportToCETApp'] = 'SMC_Credit_PD_Controller/transferCreditPDReportToCETApp'; -$route['newSalesPd'] = 'Sales_PD_Controller/cetNewSalesPd'; +$route['cetNewSalesPD'] = 'Sales_PD_Controller/cetNewSalesPd'; $route['login'] = 'Common_Masters_Controller/login'; $route['pdfMerger'] = 'PD_Controller/pdfMerger'; diff --git a/api/application/controllers/Sales_PD_Controller.php b/api/application/controllers/Sales_PD_Controller.php index c6e64c9c..66d24bbf 100644 --- a/api/application/controllers/Sales_PD_Controller.php +++ b/api/application/controllers/Sales_PD_Controller.php @@ -1759,9 +1759,10 @@ public function filterSalesPDList_post() { * TO Trigger New Sales PD and Inserting the applicant on general Form also. ****** ******/ public function cetNewSalesPd_get(){ + // header("Location: https://demo.pdgenie.com/salespdpwa/#/sales-pd-list/list-pd"); log_message('ERROR','## In NewSalesPd'); $sales_pd_type = $this->get('type'); - $productname = $this->get('prod'); + $productname = $this->get('product'); $applicantname = $this->get('applicantname'); $applicantid = $this->get('applicantid'); $userid = $this->get('uid'); @@ -1868,6 +1869,7 @@ public function filterSalesPDList_post() { } $general = array("section_id"=>$section_id,"section_name"=>$section_name,"onsubmit"=>null,"questions"=>$value['questions'],"order_id"=>1,"is_complete"=>1,"fk_createdby"=>$createdby,"sales_pd_id"=>$id); + array_push($section_data, $general); } break; case 2: @@ -1919,6 +1921,8 @@ public function filterSalesPDList_post() { $data['msg'] = 'Param (or) Value Not Missing,Please Check again'; } $this->response($data,REST_Controller::HTTP_OK); + //if($data['dataStatus']){ header("Location: https://sidharthindustries.com/SIA/"); } + } function uploadSalesImages_get(){ @@ -2065,6 +2069,7 @@ public function filterSalesPDList_post() { $select = array('*'); // $condit = array('isactive' => 1,'status' => 'COMPLETED','(DATE_FORMAT(completed_date, "%d/%m/%Y")) <=' => $day_limit); $condit = array('isactive' => 1,'status' => 'COMPLETED'); + // $condit = array('isactive' => 1,'status' => 'ARCHIVED'); //vel changed in live. $condit['DATE_FORMAT(completed_date, "%Y-%m-%d") <= DATE_SUB(CURDATE(), INTERVAL 60 DAY)'] =null; if(!empty($sales_pd_id)) $condit['sales_pd_id'] = $sales_pd_id; $value = $this->Sales_PD_Model->selectCustomRecords($select, $condit, SALES_PD_DATA);