From cef6c74ace5809cdcf007ad4d4c36685051e9153 Mon Sep 17 00:00:00 2001 From: VE10-Sanjeev Date: Thu, 20 Jul 2023 11:08:54 +0530 Subject: [PATCH] Recommitted : ps --- api/application/controllers/Sales_PD_Controller.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/api/application/controllers/Sales_PD_Controller.php b/api/application/controllers/Sales_PD_Controller.php index 8431ade0..65f8d0d4 100644 --- a/api/application/controllers/Sales_PD_Controller.php +++ b/api/application/controllers/Sales_PD_Controller.php @@ -1989,6 +1989,14 @@ public function filterSalesPDList_post() { $value['questions'][$form_key]['answer_value'] = $applicantid; } else if ($form_value['question_key'] == 'main_loan_applicant') { $value['questions'][$form_key]['answer_value'] = $applicantname; + }else if ($form_value['question_key'] === 'state') { + $value['questions'][$form_key]['answer_value'] = 0; + $value['questions'][$form_key]['answers'] = $this->Sales_PD_Model->selectCustomRecords(array('state_id as answer_id', 'name as answer'), array('isactive' => 1), STATE); + } else if ($form_value['question_key'] === 'person_met_designation') { + $value['questions'][$form_key]['answer_value'] = 0; + $value['questions'][$form_key]['answers'] = $this->Sales_PD_Model->selectCustomRecords(array('company_relationship_id as answer_id', 'name as answer'), array('isactive' => 1), COMPANYRELATIONSHIPS); + } else if (!empty($form_value['question_key'])) { + $value['questions'][$form_key]['answer_value'] = ($fieldtype == 8 || $fieldtype == 4 || $fieldtype == 3 || $fieldtype == 2) ? 0 : null; } } $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); @@ -2075,8 +2083,8 @@ public function filterSalesPDList_post() { // MwiseSales@yahoo.com#sine1234#293#19#06/07/2023 16:02:57#mwisesales1@sine.com#904 // https://demo.pdgenie.com/salespdpwa/#/auto?token=TXdpc2VTYWxlc0B5YWhvby5jb20jc2luZTEyMzQjMjkzIzE5IzA2LzA3LzIwMjMgMTY6MDI6NTcjbXdpc2VzYWxlczFAc2luZS5jb20jOTA0 log_message('ERROR', '## 9) Redirect Aftr `' . $redirect_uri . '`'); - //echo $redirect_uri;die(); - header("Location: " . $redirect_uri); + echo $redirect_uri;die(); + //header("Location: " . $redirect_uri); // $this->response($data,REST_Controller::HTTP_OK); //if($data['dataStatus']){ header("Location: https://sidharthindustries.com/SIA/"); } }