diff --git a/api/application/models/PD_Model.php b/api/application/models/PD_Model.php index d8d00a96..47e4083a 100644 --- a/api/application/models/PD_Model.php +++ b/api/application/models/PD_Model.php @@ -379,6 +379,7 @@ class PD_Model extends SPARQ_Model { $this->db->JOIN(TITLES.' as TITLES','PDAPPLICANTSDETAILS.applicant_title_name = TITLES.title_id','LEFT'); $this->db->WHERE('PDAPPLICANTSDETAILS.fk_pd_id ',$pdid); + $this->db->WHERE('PDAPPLICANTSDETAILS.isactive ',1); if($type) { //echo 'DOIDNO'; diff --git a/api/application/views/report_templates/JSONTOREPORT_CLIX.php b/api/application/views/report_templates/JSONTOREPORT_CLIX.php index bbb934e2..9a2c204b 100644 --- a/api/application/views/report_templates/JSONTOREPORT_CLIX.php +++ b/api/application/views/report_templates/JSONTOREPORT_CLIX.php @@ -3995,10 +3995,14 @@ defined('BASEPATH') OR exit('No direct script access allowed'); } elseif (!strcasecmp($is_all_loan_details_availble,'no') && count($out_standing_loan_info)) { - - echo '

Loan applicant(s) have '.$out_standing_loan_info['tot_running_loans'].' existing loan(s) with '.$rupee_symbol.' '.MYUTIL::customIndianNumberFormat($out_standing_loan_info['tot_outstanding_loans']).' outstanding amount'; - echo $out_standing_loan_info['tot_emi_paid'] != '' || $out_standing_loan_info['tot_emi_paid'] != 0 ?' and '.$rupee_symbol.' '.MYUTIL::customIndianNumberFormat($out_standing_loan_info['tot_emi_paid']).' has been paid.' : '.'; - echo '

'; + ?> + The table below lists the details of Existing Loan Obligations of the Loan Applicants. + + + +
Total No of Running LoansTotal Outstanding AmountTotal EMI being Paid (Monthly)
+ +

As per loan applicant he does not have any existing loan obligations.

diff --git a/api/application/views/report_templates/JSONTOREPORT_DI_AI.php b/api/application/views/report_templates/JSONTOREPORT_DI_AI.php index e0cd60fb..38977ee7 100644 --- a/api/application/views/report_templates/JSONTOREPORT_DI_AI.php +++ b/api/application/views/report_templates/JSONTOREPORT_DI_AI.php @@ -1492,11 +1492,15 @@ if($total_no_of_business > 0) { if(array_key_exists('factory_cert',$businessRow) && strtoupper($businessRow['factory_cert'])=='YES'){ array_push($getDocuments,array('name' => 'Factory Certificate.','img' => isset($businessRow['factory_cert_pic']) ? $businessRow['factory_cert_pic'] : '','key_name' => 'factory_cert_pic')); } + if(array_key_exists('eb_bill',$businessRow) && strtoupper($businessRow['eb_bill'])=='YES'){ + array_push($getDocuments,array('name' => 'Electric Bill.','img' => isset($businessRow['eb_bill_pic']) ? $businessRow['eb_bill_pic'] : '','key_name' => 'eb_bill_pic')); + } if(strtoupper($businessRow['other_documents'])=='YES' && array_key_exists('documents',$businessRow)){ foreach($businessRow['documents'] as $docValue){ array_push($getDocuments,array('name' => $docValue['document'], 'img' => isset( $docValue['document_pic']) ? $docValue['document_pic'] : '','key_name' => $docValue['document'])); } } + //print_r($getDocuments); if(count($getDocuments)) {