diff --git a/api/application/controllers/SMC_Credit_PD_Controller.php b/api/application/controllers/SMC_Credit_PD_Controller.php index 8dbf9ee8..c8d41b40 100644 --- a/api/application/controllers/SMC_Credit_PD_Controller.php +++ b/api/application/controllers/SMC_Credit_PD_Controller.php @@ -1575,7 +1575,7 @@ public function filterSalesPDList_post() { // print_r($view_data); // 25 "product_abbr": "NBFC/MFI", if($view_data['pd_master_details'][0]['product_abbr'] == "NBFC/MFI"){ - $html_content = $this->load->view('smc_creditpd_reports/MWISE2',$view_data,true); + $html_content = $this->load->view('smc_creditpd_reports/NBFC',$view_data,true); }else{ $html_content = $this->load->view('smc_creditpd_reports/MWISE',$view_data,true); } diff --git a/api/application/helpers/loanform_helper.php b/api/application/helpers/loanform_helper.php index 8ab4eeb1..9c42fe75 100644 --- a/api/application/helpers/loanform_helper.php +++ b/api/application/helpers/loanform_helper.php @@ -1,10 +1,9 @@ ₹"; $facility_amt = MYUTIL::customIndianNumberFormat($loan_form['facility_amount']); $monthly_business_anchor_amt = MYUTIL::customIndianNumberFormat($loan_form['monthly_business_anchor']); $average_invoicevalue_amt = MYUTIL::customIndianNumberFormat($loan_form['average_invoicevalue']); @@ -31,17 +30,17 @@ public static function getanchordetails($loan_form){ // else if($mnt != '' && $yr == ''){ $yrandmnt = $mnt; } // else{ $yrandmnt = '-';} - $anchor_details_display[] = array('particulars' => "Facility Amount Applied For (₹)",'details' => "₹"." ".$facility_amt.' ('.MYUTIL::numtowords($loan_form['facility_amount']).')'); + $anchor_details_display[] = array('particulars' => "Facility Amount Applied For (₹)",'details' => $rupee_symbol." ".$facility_amt.' ('.MYUTIL::numtowords($loan_form['facility_amount']).')'); $anchor_details_display[] = array('particulars' => "Name of Anchor",'details' => $loan_form['anchor_name']); $anchor_details_display[] = array('particulars' => "Applicant's association vintage with the Anchor Year",'details' => $loan_form['vintage_anchor_year']); $anchor_details_display[] = array('particulars' => "Applicant's association vintage with the Anchor Month",'details' => $loan_form['vintage_anchor_month']); // $anchor_details_display[] = array('particulars' => "Applicant's association vintage with the Anchor Year and Month",'details' => $yrandmnt ); - $anchor_details_display[] = array('particulars' => "Monthly business (sale/purchase) with the Anchor (₹)",'details' => "₹"." ".$monthly_business_anchor_amt.' ('.MYUTIL::numtowords($loan_form['monthly_business_anchor']).')'); + $anchor_details_display[] = array('particulars' => "Monthly business (sale/purchase) with the Anchor (₹)",'details' => $rupee_symbol." ".$monthly_business_anchor_amt.' ('.MYUTIL::numtowords($loan_form['monthly_business_anchor']).')'); $anchor_details_display[] = array('particulars' => "Business concentration with Anchor",'details' => $loan_form['business_concentration'].' %'); $anchor_details_display[] = array('particulars' => "Credit period with the Anchor (Days)",'details' => $loan_form['credit_period_days']); $anchor_details_display[] = array('particulars' => "Payment Mechanism", 'details' => $payment_mechanism_arr[$loan_form['payment_mechanism']]); - $anchor_details_display[] = array('particulars' => "Average Invoice Value (₹)",'details' => "₹"." ".$average_invoicevalue_amt.' ('.MYUTIL::numtowords($loan_form['average_invoicevalue']).')'); + $anchor_details_display[] = array('particulars' => "Average Invoice Value (₹)",'details' => $rupee_symbol." ".$average_invoicevalue_amt.' ('.MYUTIL::numtowords($loan_form['average_invoicevalue']).')'); $anchor_details_display[] = array('particulars' => "Are there peak seasons for the business with Anchor",'details' => ucfirst($loan_form['peakseasons_anchor'])); if($loan_form['peakseasons_anchor']=='yes') { @@ -52,7 +51,7 @@ public static function getanchordetails($loan_form){ if($loan_form['anchor_notes']=='yes'){ $anchor_details_display[] = array('particulars' => "Reason for such debit/credit notes",'details' => ucfirst($loan_form['debitcredit_notes']) ); } - $anchor_details_display[] = array('particulars' => "Value of stock related to Anchor (₹)",'details' => "₹"." ".$stock_related_amt.' ('.MYUTIL::numtowords($loan_form['stock_related_anchor']).')'); + $anchor_details_display[] = array('particulars' => "Value of stock related to Anchor (₹)",'details' => $rupee_symbol." ".$stock_related_amt.' ('.MYUTIL::numtowords($loan_form['stock_related_anchor']).')'); $anchor_details_display[] = array('particulars' => "Observations on Sample Invoices",'details' => $loan_form['sample_invoices'] ); return $anchor_details_display; // print_r($anchor_details_display); diff --git a/api/application/views/report_templates/JSONTOREPORT_DI_AI.php b/api/application/views/report_templates/JSONTOREPORT_DI_AI.php index 42b72c7c..a52e9603 100644 --- a/api/application/views/report_templates/JSONTOREPORT_DI_AI.php +++ b/api/application/views/report_templates/JSONTOREPORT_DI_AI.php @@ -1308,11 +1308,10 @@ if ( isset($pdf) ) { $loan_table_dispaly_rows[] = array('particulars' => 'Source of Own Contribution','details' => $source_of_own_contribution ); } } - - 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" ); - } + 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" ); + } if(!$is_current_product_bl && !$is_current_product_laep) { 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 c09caf9e..5ebac9b7 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' || $pd_master_details[0]['lender_short_name'] != 'CFPL') + 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_TELE_PD.php b/api/application/views/report_templates/JSONTOREPORT_DI_AI_TELE_PD.php index 88ad07df..cd76177c 100644 --- a/api/application/views/report_templates/JSONTOREPORT_DI_AI_TELE_PD.php +++ b/api/application/views/report_templates/JSONTOREPORT_DI_AI_TELE_PD.php @@ -1312,8 +1312,8 @@ if ( isset($pdf) ) { $loan_table_dispaly_rows[] = array('particulars' => 'Source of Own Contribution','details' => $source_of_own_contribution ); } } - - $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" ); + 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" );} if(!$is_current_product_bl && !$is_current_product_laep) { diff --git a/api/application/views/smc_creditpd_reports/NBFC.php b/api/application/views/smc_creditpd_reports/NBFC.php new file mode 100644 index 00000000..dc70418f --- /dev/null +++ b/api/application/views/smc_creditpd_reports/NBFC.php @@ -0,0 +1,594 @@ +↑'; + $downarrow = '↓'; + $dash = ' '; + // $product_name = $master[0]['abbr']; + $rupee_symbol = "₹"; + //print_r($master[0]['abbr']);die(); +?> + +
+ +
| Personal Discussion Sheet - | +|||||||||
|---|---|---|---|---|---|---|---|---|---|
| Application ID | ++ | ||||||||
| Name of the Company/Firm | ++ | ||||||||
| Name of Person Met During Visit and Contact Number | ++ | ||||||||
| + | + | ||||||||
| City | ++ | State | ++ | PIN | ++ | Actual PD Address | '.$pd_section_data[2]['alternative_address'].' | '; + } + + $ownership_type = ''; + if( isset($pd_section_data[8]['business_ownership_type']) && (strtolower($pd_section_data[8]['business_ownership_type'])) == 'owned') + { + $ownership_type = '( Owned )'; + } + else if(isset($pd_section_data[8]['business_ownership_type']) && (strtolower($pd_section_data[8]['business_ownership_type'])) == 'rented') + { + $ownership_type = ' ( Rented ) - Rent paid '.$rupee_symbol.' '.MYUTIL::customIndianNumberFormat($pd_section_data[8]['business_monthly_rented_amt']); + } + + echo '||
| Address Type / Ownership | '.$pd_section_data[2]['address_type']['address_type'].$ownership_type.' | ||||||||
| Period for which business has been in operation from this address | '.($pd_section_data[8]['business_years'].' Year(s)'.(isset($pd_section_data[8]['business_months']) && $pd_section_data[8]['business_months'] != '' ? ' & ' . $pd_section_data[8]['business_months'] .' Month(s)': '')).' | ||||||||
| PD locality | '.$pd_section_data[2]['pd_locality']['locality_name'].' | ||||||||
| Location Approach | '.$pd_section_data[2]['pd_location']['description'].' | ||||||||
| Comment On Locality | '.$pd_section_data[2]['comment_locality']['rating'].' | ||||||||
| Estimated Area of Business Premise | '.$pd_section_data[2]['business_estimated_area'].' '.$pd_section_data[2]['uom'].' | ||||||||
| Satellite Image of PD Location |
|---|
GPS Coordinates of location where PD Visit was done :
+ +| General Section | +|||
|---|---|---|---|
| Name | Loan Amount | Product | Location | +'.$pd_section_data['21']['name'].' | '.$pd_section_data['21']['loan_amount'].' | '.$pd_section_data['21']['product'].' | '.$pd_section_data['21']['location'].' | '; + } + else { + echo '
| General Section Not Available | |||
| Profile | |||||||||
|---|---|---|---|---|---|---|---|---|---|
| Profile Not Available |
| Size and Geographical Reach | |||||||||
|---|---|---|---|---|---|---|---|---|---|
| Size and Geographical Reach Not Available |
| Product & Processes | |||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product & Processes Not Available |
| Portfolio Health | |||||||||
|---|---|---|---|---|---|---|---|---|---|
| Portfolio Health Not Available |
| Total Overall Debt/Equity Profile | |||||||||
|---|---|---|---|---|---|---|---|---|---|
| Total Overall Debt/Equity Profile Not Available |
| Financial analysis | +|||||
|---|---|---|---|---|---|
| CAR (Tier-1)/CAR (Tier-1 + Tier-2) | +Leverage (D/E) (excluding Managed) | +ALM | +Opex | +NIM (%) - as per Audited B/S | +Opex (% of Avg. Book) | +'.$pd_section_data['27']['car_type'].' | +'.$pd_section_data['27']['leverage'].' | +'.$pd_section_data['27']['alm'].' | +'.$pd_section_data['27']['opex'].' | +'.$pd_section_data['27']['nim'].' | +'.$pd_section_data['27']['opex_average'].' | ';?> +
| Opex (% of NII) | +Return on Assets | +Return on Equity | +IRR (Derived) | +Avg. Borrowing Cost (Derived) | +Spread (Derived) | +'.$pd_section_data['27']['opex_nii'].' | +'.$pd_section_data['27']['return_asset'].' | +'.$pd_section_data['27']['return_equity'].' | +'.$pd_section_data['27']['irr'].' | +'.$pd_section_data['27']['avg_borrowing'].' | +'.$pd_section_data['27']['spread'].' | '; + } + else { + echo '
| Financial analysis Not Available | |||||
| Overall Plan of Action | |||||||||
|---|---|---|---|---|---|---|---|---|---|
| Overall Plan of Action Not Available |
| Validation Points vide Systems and Books at HQ & Branches |
|---|
Stock to be validated from system
+'.$pd_section_data['29']['stock_validated'].'
+Collateral coverage for existing borrowing ( System Mapping to be checked)
+'.$pd_section_data['29']['collateral_coverage'].'
+Collection efficiency and system flagging to be counterchecked and same with PAR cuts
+'.$pd_section_data['29']['collection_efficiency'].'
+Sample check of loan dox, application form along with PAN for Active loan accounts
+'.$pd_section_data['29']['loan_dox'].'
+Disbursement no to be checked from system
+'.$pd_section_data['29']['disbursement'].'
+Top 20 exposure to be checked with data submitted
+'.$pd_section_data['29']['top20_exposure'].'
+Sample Sanction letters to validate collateral cover stipulated for existing Borrowing
+'.$pd_section_data['29']['sanction_letters'].'
+Provisioning /Write-off/NPA flagging to be counter checked
+'.$pd_section_data['29']['provisioning'].'
+Restructuring of Loans in system on sample basis
+'.$pd_section_data['29']['restructuring_loan'].'
+EMI cycle date in system
+'.$pd_section_data['29']['emi_date'].'
+Cash and Bank ledger to be checked
+'.$pd_section_data['29']['cash_checked'].'
+Free FD details to be taken and validated from Accounting system
+'.$pd_section_data['29']['fd_details'].'
+Application/Systems used for Boarding /Loan management
+'.$pd_section_data['29']['loan_management'].'
'; + } + else { + echo '| Final Remarks of PD officer | +|||||||
|---|---|---|---|---|---|---|---|
| Customer Behaviour + [Polite / Rude / Others (Please specify)] | |||||||
| PD Officer's overall assessment + (Positive / Negative) | |||||||
| PD Officer's key points considered while arriving at the aforementioned status | Remarks | '.$pd_section_data[19]['final_form_remarks'] .' | '; + + } } else{ + echo '|||||
| Final Remarks of PD officer Not Available | |||||||
| Photograph`s |
|---|
| '.$photo_names [ $smc_images[$i]['img_name'] ].' | ';
+ }
+
+ //unset($p_key);
+ }
+ echo '
| Name of Credit Manager | ++ | ||||||||
| Date of PD Visit | ++ | ||||||||