Cetnewsalespd : ps

This commit is contained in:
VE10-Sanjeev 2023-06-02 14:01:59 +05:30
parent 1d52e1e460
commit fc7e32d211
2 changed files with 7 additions and 2 deletions

View File

@ -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';

View File

@ -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);