Recommitted : ps

This commit is contained in:
VE10-Sanjeev 2023-07-20 11:08:54 +05:30
parent e481da2e89
commit cef6c74ace

View File

@ -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/"); }
}