diff --git a/api/application/models/PD_Model.php b/api/application/models/PD_Model.php index 4e3f9438..fbfeab33 100644 --- a/api/application/models/PD_Model.php +++ b/api/application/models/PD_Model.php @@ -1407,8 +1407,21 @@ class PD_Model extends SPARQ_Model { } } - - + //change loan form name to facility form name if lender id cFPL + // print_r($pd_master_detials);die(); + if($pd_master_detials[0]['lender_short_name'] == 'CFPL') + { + + foreach ($template_forms as $k => $val) + { + if($val['form_id'] == 10) + { + $template_forms[$k]['form_name'] = 'Facility Details'; + break; + } + } + } + // print_r($template_forms);die(); $result_data['question_answers'] = array();; $result_data['counts'] = array(); diff --git a/api/application/views/report_templates/JSONTOREPORT_DI_AI.php b/api/application/views/report_templates/JSONTOREPORT_DI_AI.php index a7281604..764242ae 100644 --- a/api/application/views/report_templates/JSONTOREPORT_DI_AI.php +++ b/api/application/views/report_templates/JSONTOREPORT_DI_AI.php @@ -1309,7 +1309,7 @@ if ( isset($pdf) ) { } } - if($pd_master_details[0]['lender_short_name'] != 'UDAAN') + if($pd_master_details[0]['lender_short_name'] != 'UDAAN' || $pd_master_details[0]['lender_short_name'] != 'CFPL') { $loan_table_dispaly_rows[] = array('particulars' => 'EMI Comfortable Paying','details' => is_numeric($loan_form['emi_level']) && $loan_form['emi_level'] != 0? ($rupee_symbol." ".MYUTIL::customIndianNumberFormat($loan_form['emi_level']).' ('.MYUTIL::numtowords($loan_form['emi_level']).')') : "Not Provided" ); } diff --git a/api/application/views/report_templates/JSONTOREPORT_DI_AI_SMARTPD.php b/api/application/views/report_templates/JSONTOREPORT_DI_AI_SMARTPD.php index 38e8446f..8e6a9bcb 100644 --- a/api/application/views/report_templates/JSONTOREPORT_DI_AI_SMARTPD.php +++ b/api/application/views/report_templates/JSONTOREPORT_DI_AI_SMARTPD.php @@ -1306,7 +1306,7 @@ if ( isset($pdf) ) { } } - if($pd_master_details[0]['lender_short_name'] != 'UDAAN') + if($pd_master_details[0]['lender_short_name'] != 'UDAAN' || $pd_master_details[0]['lender_short_name'] != 'CFPL') { $loan_table_dispaly_rows[] = array('particulars' => 'EMI Comfortable Paying','details' => is_numeric($loan_form['emi_level']) && $loan_form['emi_level'] != 0? ($rupee_symbol." ".MYUTIL::customIndianNumberFormat($loan_form['emi_level']).' ('.MYUTIL::numtowords($loan_form['emi_level']).')') : "Not Provided" ); }