FIX_controller : ps
This commit is contained in:
parent
740fc5173c
commit
30a3121808
@ -436,8 +436,10 @@ class SMC_Credit_PD_Controller extends REST_Controller {
|
|||||||
if(empty($excelSheetid)){
|
if(empty($excelSheetid)){
|
||||||
$arr = $this->PD_Model->getApplicantsDetails($mater_details[0]['pd_id']);
|
$arr = $this->PD_Model->getApplicantsDetails($mater_details[0]['pd_id']);
|
||||||
foreach ($arr as $applicant) {
|
foreach ($arr as $applicant) {
|
||||||
if ($applicant['applicant_type'] != 0) {
|
if ($applicant['applicant_type'] != 0 ) {
|
||||||
$companylist[$applicant['pd_co_applicant_id']] = ($applicant['applicant_type'] == 1) ? $applicant['applicant_name'] : "";
|
if($applicant['applicant_type'] == 1){
|
||||||
|
$companylist[$applicant['pd_co_applicant_id']] = ($applicant['company_name'] != "") ? $applicant['company_name'] : $applicant['applicant_name'];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -2058,10 +2060,12 @@ public function filterSalesPDList_post() {
|
|||||||
$companylist = $this->getCompanyName($pd_section_data[0]);
|
$companylist = $this->getCompanyName($pd_section_data[0]);
|
||||||
$excelSheetid = ($view_data['pd_master_details'][0]['excel_file_id']);
|
$excelSheetid = ($view_data['pd_master_details'][0]['excel_file_id']);
|
||||||
if(empty($excelSheetid)){
|
if(empty($excelSheetid)){
|
||||||
$arr = $this->PD_Model->getApplicantsDetails($pd_master_data[0]['pd_id']);
|
$arr = $this->PD_Model->getApplicantsDetails($view_data['pd_master_details'][0]['pd_id']);
|
||||||
foreach ($arr as $applicant) {
|
foreach ($arr as $applicant) {
|
||||||
if ($applicant['applicant_type'] != 0) {
|
if ($applicant['applicant_type'] != 0 ) {
|
||||||
$companylist[$applicant['pd_co_applicant_id']] = ($applicant['applicant_type'] == 1) ? $applicant['applicant_name'] : "";
|
if($applicant['applicant_type'] == 1){
|
||||||
|
$companylist[$applicant['pd_co_applicant_id']] = ($applicant['company_name'] != "") ? $applicant['company_name'] : $applicant['applicant_name'];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -2204,13 +2208,11 @@ public function filterSalesPDList_post() {
|
|||||||
} ### MLAP key_stakeholders ends
|
} ### MLAP key_stakeholders ends
|
||||||
// print_r($view_data);die();
|
// print_r($view_data);die();
|
||||||
$view_data['report_attachments'] = (new report_attachments)->getSMCReportAttchments($records['pd_id'],$view_data['pd_master_details'][0]['random_string'],$view_data['pd_master_details']);
|
$view_data['report_attachments'] = (new report_attachments)->getSMCReportAttchments($records['pd_id'],$view_data['pd_master_details'][0]['random_string'],$view_data['pd_master_details']);
|
||||||
|
|
||||||
if($view_data['pd_master_details'][0]['product_abbr'] == "NBFC/MFI"){
|
if($view_data['pd_master_details'][0]['product_abbr'] == "NBFC/MFI"){
|
||||||
$html_content = $this->load->view('smc_creditpd_reports/NBFC',$view_data,true);
|
$html_content = $this->load->view('smc_creditpd_reports/NBFC',$view_data,true);
|
||||||
}else{
|
}else{
|
||||||
$html_content = $this->load->view('smc_creditpd_reports/MWISE',$view_data,true);
|
$html_content = $this->load->view('smc_creditpd_reports/MWISE',$view_data,true);
|
||||||
}
|
}
|
||||||
// print_r($html_content);exit();
|
|
||||||
$pdf_name = $view_data['pd_master_details'][0]['main_applicant'];
|
$pdf_name = $view_data['pd_master_details'][0]['main_applicant'];
|
||||||
$new_pdf_name = "PD_Report_".$view_data['pd_master_details'][0]['main_applicant'];
|
$new_pdf_name = "PD_Report_".$view_data['pd_master_details'][0]['main_applicant'];
|
||||||
|
|
||||||
@ -2383,7 +2385,7 @@ public function filterSalesPDList_post() {
|
|||||||
for($i=0;$i<count($filtered_arr);$i++){
|
for($i=0;$i<count($filtered_arr);$i++){
|
||||||
// $cur_section_data[$i]['borrower_type'] = $filtered_arr[$i]['applicant_type'] == 1 ? "Main Applicant" : "Company";
|
// $cur_section_data[$i]['borrower_type'] = $filtered_arr[$i]['applicant_type'] == 1 ? "Main Applicant" : "Company";
|
||||||
$cur_section_data[$i]['borrower_type'] = "Company";
|
$cur_section_data[$i]['borrower_type'] = "Company";
|
||||||
$cur_section_data[$i]['borrower_name'] = $filtered_arr[$i]['company_name'];
|
$cur_section_data[$i]['borrower_name'] = $filtered_arr[$i]['company_name'] != "" ? $filtered_arr[$i]['company_name'] : $filtered_arr[$i]['applicant_name'];
|
||||||
$cur_section_data[$i]['entity_type'] = "Non Individual";
|
$cur_section_data[$i]['entity_type'] = "Non Individual";
|
||||||
$cur_section_data[$i]['designation'] = "";
|
$cur_section_data[$i]['designation'] = "";
|
||||||
$cur_section_data[$i]['relationship_to'] = "";
|
$cur_section_data[$i]['relationship_to'] = "";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user