diff --git a/api/application/helpers/smc_creditpd_helper.php b/api/application/helpers/smc_creditpd_helper.php index de276e21..e4c4bad4 100644 --- a/api/application/helpers/smc_creditpd_helper.php +++ b/api/application/helpers/smc_creditpd_helper.php @@ -66,18 +66,31 @@ class smc_creditpd static function getBorrowerSectionData($section) { $json = json_decode($section['json'],true); + $person_met = ''; foreach ($json['borrower_details'] as $key => $value) { + if(isset($value['borrower_met']) && !strcasecmp($value['borrower_met'],'yes')) { - $json['person_met'] = $value['borrower_name']; - break; + $person_met .= $value['borrower_name'].', '; } } // if(!isset($json['person_met'])) // { // $json['person_met'] = ''; // } + if($person_met != '') + { + $person_met = substr_replace($person_met,'',-2); + + if(substr_count($person_met,',')) + { + $person_met = substr_replace($person_met,' and ',strpos($person_met,','),2); + } + + } + + $json['person_met'] = $person_met; return $json; } diff --git a/api/application/helpers/smcpdscore_helper.php b/api/application/helpers/smcpdscore_helper.php index f7e72898..ff5b8bed 100644 --- a/api/application/helpers/smcpdscore_helper.php +++ b/api/application/helpers/smcpdscore_helper.php @@ -56,7 +56,7 @@ class SMCPDSCORE $stock_raw_material_enough = array('Provided' => 10, 'Not Provided' => 0,'Not Applicable' => 0); $stock_finished_goods_enough = array('Provided' => 10, 'Not Provided' => 0,'Not Applicable' => 0); $stock_answer_scores = array('yes' => 10, 'no' => 0,'not applicable' => 0); - $location_suited_for_busienss = array('Well Suited' => 10 ,'Fairly Suited' => 6,'Not Suited' => 0); + $location_suited_for_busienss = array('Well Suited' => 10 ,'Fairly suited' => 6,'Not suited' => 0); $business_activity_has_seen = array('Yes' => 10, 'No' => 0); /*-------- FINAL --------------*/ diff --git a/api/application/views/smc_creditpd_reports/MWISE.php b/api/application/views/smc_creditpd_reports/MWISE.php index 02aaedf9..63bc6318 100644 --- a/api/application/views/smc_creditpd_reports/MWISE.php +++ b/api/application/views/smc_creditpd_reports/MWISE.php @@ -200,7 +200,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
| Satellite Image of PD Location |
|---|
GPS Coordinates of location where PD Visit was done :
+ +| Applicant`s Details | +Borrower`s Details | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Borrower Type | Name | Entity Type | Designation | Relation | Realtion to | Age | No of Year(s) Business runing |
+ Borrower Type | Name | Entity Type | Designation | Relation | Realtion to | Age | Borrower's vintage in the business(Yrs) |
||||||
| '.$value1['borrower_type'].' | '.$value1['borrower_name'].' | '.$value1['entity_type'].' | '.$value1['designation'].' | '.$value1['relationship'].' | '.$value1['relationship_to'].' | '.(isset($value1['borrower_age']) && !empty($value1['borrower_age']) ? $value1['borrower_age'] : 'NA').' | '.(isset($value1['numbers_of_years_business_running']) && !empty($value1['numbers_of_years_business_running']) ? $value1['numbers_of_years_business_running'] : 'NA').' | ||||||||||||||
| '.$value1['borrower_type'].' | '.$value1['borrower_name'].' | '.$value1['entity_type'].' | '.$value1['designation'].' | '.$value1['relationship'].' | '.$value1['relationship_to'].' | '.(isset($value1['borrower_age']) && !empty($value1['borrower_age']) ? $value1['borrower_age'] : 'NA').' | '.(isset($value1['numbers_of_years_business_running']) && !empty($value1['numbers_of_years_business_running']) && (!strcasecmp($value1['entity_type'],'Individual'))? $value1['numbers_of_years_business_running'] : 'NA').' | ||||||||||||||
| Business Related Parameters Impacting Score | Response | |
|---|---|---|
| Loan tenure | |||||||||
| End use of Loan | ++ | ||||||||
| Is There any Balance Transfer | @@ -440,7 +470,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');|||||||||
| Details of Key Stakeholders in the Business | |||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Name | +Name | Share Holding | Year(s) in Current Business | Total Work Exp(Yrs) | -Previous Experience Details | +Previous Experience Details | Started Business | ||||||||||||||
| '.$section5_value['stakeholder_name'] .' | '. + echo '|||||||||||||||||||||
| '.$section5_value['stakeholder_name'] .' | '. ''.$section5_value['share_holding'].'% | '. ''.$section5_value['vintage_in_current_biz'].' | '. ''.$section5_value['total_work_exp'].' | '. - ''.( isset ($section5_value['previous_experience_details']) && $section5_value['previous_experience_details'] ? $section5_value['previous_experience_details'] : 'NA' ).' | '. + ''.( isset ($section5_value['previous_experience_details']) && $section5_value['previous_experience_details'] ? $section5_value['previous_experience_details'] : 'NA' ).' | '. ''.$section5_value['started_biz'].' | '. '|||||||||||||||
| No other family member is involved in the business | ||||||||||||||
| Remarks | '.$pd_section_data[16]['common_remarks'] .' | '; @@ -516,7 +551,27 @@ defined('BASEPATH') OR exit('No direct script access allowed'); ?>|||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| General Business Information | +|||||||
|---|---|---|---|---|---|---|---|
| Business Entity Type | ++ | ||||||
| Business Activity | ++ | ||||||
| Area of Sale | ++ | ||||||
| Product/Service Name | Contribution Business Product | -remarks | +Remarks | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Business Brief |
|---|
| '.$pd_section_data[6]['business_process'] .' |
| Business Brief |
| '.$pd_section_data[6]['business_process'] .' |
| Activity Observed during Visit (Yes / No) |
|---|
| Temporary >> | |||||||||||
| Remark | + | ||||||||||
| General Business Information | -|||||||
|---|---|---|---|---|---|---|---|
| Business Entity Type | -- | ||||||
| Business Activity | -- | ||||||
| Area of Sale | -- | ||||||
| Other Business Assets |
|---|
| Business Assets | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Asset Type | Asset Description | Asset Ownership | Owner's Name | Market Value | Age of the Asset (Yrs) | Loan Agst Asset (Yes/ No) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| '.( $b_asset['business_assets_mode'] == 1 ? $b_asset['other_asset_description'] : $asset_type [ $b_asset['business_assets_mode'] ]).' | '. $description .' | '. $business_ownership_type .' | '. $business_name_of_the_owner .' | '.(isset($b_asset['business_approximate_market_value']) ? ( $rupee_symbol .' '. MYUTIL::customIndianNumberFormat($b_asset['business_approximate_market_value'])) : 'NA').' | '.(isset($b_asset['business_purchase_year']) ? $b_asset['business_purchase_year'] : 'NA').' | '.(isset($b_asset['business_emi']) ? $b_asset['business_emi'] : 'NA').' | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Debtor Days | '.$pd_section_data[10]['debtor_days_cm'].' | Creditor Days | '.$pd_section_data[10]['creditor_days_cm'].' | Stock Days | '.$pd_section_data[10]['inventory_days_cm'].' | '?> -Does the business have any working capital facility from any lender other than Moneywise? (Yes / No) | '.$pd_section_data[10]['is_any_other_working_captial_facility'].' | If Yes, then details of the same to be captured | '.(isset($pd_section_data[10]['facility_details_specify']) ? $pd_section_data[10]['facility_details_specify'] : '').' ('.(isset($pd_section_data[10]['facility_details_other']) ? $pd_section_data[10]['facility_details_other'] : $pd_section_data[10]['facility_details_other_lender']).')'.' | '?>
+ Does the business have any working capital facility from any lender other than Moneywise? (Yes / No) | '.$pd_section_data[10]['is_any_other_working_captial_facility'].' | '?> +If Yes, then details of the same to be captured | '.(isset($pd_section_data[10]['facility_details_specify']) ? $pd_section_data[10]['facility_details_specify'] : '').' ('.(isset($pd_section_data[10]['facility_details_other']) ? $pd_section_data[10]['facility_details_other'] : $pd_section_data[10]['facility_details_other_lender']).')'.' | ';
+ }
+
+ ?>
+ Broken Period starting from | '.$pd_section_data[10]['broken_period_from_month'].' | Broken Period starting to | '.$pd_section_data[10]['broken_period_to_month'].' | No of Months | '.$pd_section_data[10]['broken_period_no_of_months'].' | '?> +Turn Over for Broken Period in CY | '.$rupee_symbol.''. MYUTIL::customIndianNumberFormat($pd_section_data[10]['broken_period_turnover_cy']).' | Turn Over for Broken Period in PY | '.$rupee_symbol.''.MYUTIL::customIndianNumberFormat($pd_section_data[10]['broken_period_turnover_py']).' | ('.$uparrow.'/'. $downarrow.')in Turnover for Broken Period | '.$pd_section_data[10]['broken_period_turnover_percent'].'% | '?> +Remarks on Financials >> | '.$pd_section_data[10]['common_remarks'].' | ';}?>
| Supplier Details |
|---|
| Existing Loan Obligations | |||||||||
| $value15) { - echo ' | |||||||||
| '. ($key15 + 1) .' | '. $value15['loan_type'] .' | '.$rupee_symbol.MYUTIL::customIndianNumberFormat($value15['loan_amount']).' | '.$value15['lender_name'].' | '.$value15['loan_taken_by'].' | '.$rupee_symbol.' '.MYUTIL::customIndianNumberFormat($value15['instalment_amount']).' | '.$value15['instalment_frequency'].' | '.$value15['original_tenure_months'].' | '.$value15['current_tenure_months'].' | '.$value15['elapsed_tenure_months'].' |
| '. ($key15 + 1) .' | '. $value15['loan_type'] .' | '.$rupee_symbol.MYUTIL::customIndianNumberFormat($value15['loan_amount']).' | '.$value15['lender_name'].' | '.$value15['loan_taken_by'].' | '.$rupee_symbol.' '.MYUTIL::customIndianNumberFormat($value15['instalment_amount']).' | '.$value15['instalment_frequency'].' | '.($value15['original_tenure_months'] != '' ? $value15['original_tenure_months'] : 'NA').' | '.($value15['current_tenure_months'] != '' ? $value15['current_tenure_months'] : 'NA').' | '.($value15['elapsed_tenure_months'] != '' ? $value15['elapsed_tenure_months'] : 'NA') .' |
| Remarks | '. $pd_section_data[15]['common_remarks'] .' |
- +
- GPS Coordinates of location where PD Visit was done : - - | |||||||