SMC CREDIT PD REPORT FEEDBACK
This commit is contained in:
parent
bf8247502f
commit
e4302161c3
@ -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;
|
||||
}
|
||||
|
||||
|
||||
@ -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 --------------*/
|
||||
|
||||
@ -200,7 +200,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
<tbody>
|
||||
<tr>
|
||||
<th class="thlargefont" colspan="10" >Personal Discussion Sheet - Business Loans </th>
|
||||
<th class="thlargefont" colspan="10" >Personal Discussion Sheet - <?php echo $pd_master_details[0]['product_abbr']?> </th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3"> Application ID</td>
|
||||
@ -225,7 +225,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
<td class = "tdcenteralign" colspan="7"><?php echo $section1['person_met_during_visit']?></td>
|
||||
</tr> -->
|
||||
<tr>
|
||||
<td colspan="3" rowspan="2" ><?php echo 'Business Address'; ?></td>
|
||||
<td colspan="3" rowspan="2" ><?php echo 'Address visited for PD'; ?></td>
|
||||
<td class = "tdcenteralign" colspan="7"><?php echo $pd_master_details[0]['addressline1']?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -243,26 +243,52 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
{
|
||||
echo '<tr> <td colspan="3">Actual PD Address</td> <td colspan="7" class = "tdcenteralign">'.$pd_section_data[2]['alternative_address'].'</td></tr>';
|
||||
}
|
||||
echo '<tr> <td colspan="3">Address Type</td> <td colspan="7" class = "tdcenteralign">'.$pd_section_data[2]['address_type']['address_type'].'</td></tr>';
|
||||
|
||||
$ownership_type = '';
|
||||
if( !strtolower($pd_section_data[8]['business_ownership_type']) == 'owned')
|
||||
{
|
||||
$ownership_type = '( Owned )';
|
||||
}
|
||||
else
|
||||
{
|
||||
$ownership_type = '( Rented ) - '.$pd_section_data[8]['business_monthly_rented_amt'];
|
||||
}
|
||||
echo '<tr> <td colspan="3">Address Type / Ownership</td> <td colspan="7" class = "tdcenteralign">'.$pd_section_data[2]['address_type']['address_type'].$ownership_type.'</td></tr>';
|
||||
echo '<tr> <td colspan="3">PD locality</td> <td colspan="7" class = "tdcenteralign">'.$pd_section_data[2]['pd_locality']['locality_name'].'</td></tr>';
|
||||
echo '<tr> <td colspan="3">Location Approach</td> <td colspan="7" class = "tdcenteralign">'.$pd_section_data[2]['pd_location']['description'].'</td></tr>';
|
||||
echo '<tr> <td colspan="3">Comment On Locality</td> <td colspan="7" class = "tdcenteralign">'.$pd_section_data[2]['comment_locality']['rating'].'</td></tr>';
|
||||
echo '<tr> <td colspan="3">Estimated Area of Business Premise </td> <td colspan="7" class = "tdcenteralign">'.$pd_section_data[2]['business_estimated_area'].' '.$pd_section_data[2]['uom'].'</td></tr>';
|
||||
}
|
||||
?>
|
||||
|
||||
<?php if(isset($pd_section_data[8]['is_business_address']) && strtolower($pd_section_data[8]['is_business_address']) == 'yes'){ ?>
|
||||
<tr> <td colspan="3">Business operating duration<br> from this address </td> <td class = "tdcenteralign" colspan="7"><?php echo ($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)': '')); }?></td> </tr>
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
<br>
|
||||
|
||||
<!-- <div id="page_break"></div> -->
|
||||
<br><br>
|
||||
<br><table class="scorecard_table"><tr><th class="thlargefont" colspan="10">Satellite Image of PD Location</th></tr></table><br>
|
||||
<p><b>GPS Coordinates of location where PD Visit was done : <?php echo $pd_master_details[0]['start_location'] ? $pd_master_details[0]['start_location'] : '-'; ?></b></p>
|
||||
<?php if($pd_master_details[0]['start_location']) { ?>
|
||||
<img style="border:3px solid #0191ed;" src = "<?php echo 'data:image/gif;base64,'.$satellite[0]['img']; ?>" alt = "PD Visted Location Satellite Image " height="300px" width="630px">
|
||||
<?php
|
||||
}else{ echo '<p>Due to location access not provided by loan applicant Geo coordinates on photographs and Satellite image of PD location is not shown</p>';}
|
||||
?>
|
||||
<div id="page_break"> </div>
|
||||
<table class="scorecard_table">
|
||||
<tr>
|
||||
<th class="thlargefont" colspan="8">Applicant`s Details</th>
|
||||
<th class="thlargefont" colspan="8">Borrower`s Details</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan="1">Borrower<br> Type</th><th colspan="1">Name</th><th colspan="1">Entity Type</th><th colspan="1">Designation</th><th colspan="1">Relation</th><th colspan="1">Realtion to</th><th colspan="1">Age</th><th colspan="1">No of Year(s)<br> Business runing</th>
|
||||
<th colspan="1">Borrower<br> Type</th><th colspan="1">Name</th><th colspan="1">Entity Type</th><th colspan="1">Designation</th><th colspan="1">Relation</th><th colspan="1">Realtion to</th><th colspan="1">Age</th><th colspan="1">Borrower's vintage in<br>the business(Yrs)</th>
|
||||
</tr>
|
||||
<?php
|
||||
foreach ($pd_section_data[1]['borrower_details'] as $key1 => $value1)
|
||||
{
|
||||
echo '<tr><td colspan="1" class = "tdcenteralign">'.$value1['borrower_type'].'</td> <td colspan="1" class = "tdcenteralign">'.$value1['borrower_name'].'</td> <td colspan="1" class = "tdcenteralign">'.$value1['entity_type'].'</td> <td colspan="1" class = "tdcenteralign">'.$value1['designation'].'</td> <td colspan="1" class = "tdcenteralign">'.$value1['relationship'].'</td> <td colspan="1" class = "tdcenteralign">'.$value1['relationship_to'].'</td> <td colspan="1" class = "tdcenteralign">'.(isset($value1['borrower_age']) && !empty($value1['borrower_age']) ? $value1['borrower_age'] : 'NA').'</td> <td colspan="1" class = "tdcenteralign">'.(isset($value1['numbers_of_years_business_running']) && !empty($value1['numbers_of_years_business_running']) ? $value1['numbers_of_years_business_running'] : 'NA').'</td></tr>';
|
||||
echo '<tr><td colspan="1" class = "tdcenteralign">'.$value1['borrower_type'].'</td> <td colspan="1" class = "tdcenteralign">'.$value1['borrower_name'].'</td> <td colspan="1" class = "tdcenteralign">'.$value1['entity_type'].'</td> <td colspan="1" class = "tdcenteralign">'.$value1['designation'].'</td> <td colspan="1" class = "tdcenteralign">'.$value1['relationship'].'</td> <td colspan="1" class = "tdcenteralign">'.$value1['relationship_to'].'</td> <td colspan="1" class = "tdcenteralign">'.(isset($value1['borrower_age']) && !empty($value1['borrower_age']) ? $value1['borrower_age'] : 'NA').'</td> <td colspan="1" class = "tdcenteralign">'.(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').'</td></tr>';
|
||||
}
|
||||
?>
|
||||
|
||||
@ -302,7 +328,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
|
||||
|
||||
|
||||
// echo '<div id="page_break"> </div>';
|
||||
echo '<table class="mini_scorecard_table">';
|
||||
echo '<tr> <th style="width:70%;font-size:16px;" colspan="2">Business Related Parameters Impacting Score</th> <th style="width:30%;font-size:16px;">Response</th> </tr>';
|
||||
|
||||
@ -362,10 +388,10 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
}
|
||||
echo '</tbody>';
|
||||
echo '</table>';
|
||||
echo '<div id="page_break"> </div>';
|
||||
// echo '<div id="page_break"> </div>';
|
||||
}?>
|
||||
|
||||
<br>
|
||||
<div id="page_break"> </div>
|
||||
<table class="scorecard_table">
|
||||
<tbody>
|
||||
<tr>
|
||||
@ -387,6 +413,10 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
<td colspan="3" >Loan tenure</td>
|
||||
<td class = "tdcenteralign" colspan="7" ><?php echo $pd_section_data[3]['loan_tenure']?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3" >End use of Loan</td>
|
||||
<td class = "tdcenteralign" colspan="7" ><?php echo $pd_section_data[3]['end_use']?></td>
|
||||
</tr>
|
||||
<?php if($pd_master_details[0]['product_abbr'] == 'LFMP'){ ?>
|
||||
<tr>
|
||||
<td colspan="3" >Is There any Balance Transfer</td>
|
||||
@ -440,7 +470,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
<?php }?>
|
||||
</tbody>
|
||||
</table>
|
||||
<br>
|
||||
<br><br>
|
||||
|
||||
<table class="scorecard_table" style="table-layout: fixed">
|
||||
<tbody>
|
||||
@ -448,11 +478,11 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
<th class="thlargefont" colspan="15">Details of Key Stakeholders in the Business</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan="5">Name</th>
|
||||
<th colspan="3">Name</th>
|
||||
<th colspan="2" >Share Holding</th>
|
||||
<th colspan="2" >Year(s) in Current Business</th>
|
||||
<th colspan="2">Total Work Exp(Yrs)</th>
|
||||
<th colspan="2" >Previous Experience Details</th>
|
||||
<th colspan="4" >Previous Experience Details</th>
|
||||
<th colspan="2" >Started Business</th>
|
||||
</tr>
|
||||
<?php
|
||||
@ -461,12 +491,12 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
foreach ($pd_section_data[5]['key_stakeholders'] as $section5_key => $section5_value)
|
||||
{
|
||||
echo '<tr><td class="tdcenteralign" colspan="5">'.$section5_value['stakeholder_name'] .'</td>'.
|
||||
echo '<tr><td class="tdcenteralign" colspan="3">'.$section5_value['stakeholder_name'] .'</td>'.
|
||||
'<td class="tdcenteralign" colspan="2">'.$section5_value['share_holding'].'%</td>'.
|
||||
'<td class="tdcenteralign" colspan="2">'.$section5_value['vintage_in_current_biz'].'</td>'.
|
||||
'<td class="tdcenteralign" colspan="2">'.$section5_value['total_work_exp'].'</td>'.
|
||||
|
||||
'<td class="tdcenteralign" colspan="2">'.( isset ($section5_value['previous_experience_details']) && $section5_value['previous_experience_details'] ? $section5_value['previous_experience_details'] : 'NA' ).'</td>'.
|
||||
'<td class="tdcenteralign" colspan="4">'.( isset ($section5_value['previous_experience_details']) && $section5_value['previous_experience_details'] ? $section5_value['previous_experience_details'] : 'NA' ).'</td>'.
|
||||
'<td class="tdcenteralign" colspan="2" style="text-align: center">'.$section5_value['started_biz'].'</td>'.
|
||||
'</tr>';
|
||||
}
|
||||
@ -475,7 +505,8 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
?>
|
||||
</tbody></table>
|
||||
<br>
|
||||
|
||||
<div id="page_break"> </div>
|
||||
<table class="scorecard_table" style="table-layout: fixed">
|
||||
<tbody>
|
||||
<tr>
|
||||
@ -508,6 +539,10 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
echo '<tr><td colspan="15" class="tdcenteralign">No other family member is involved in the business</td></tr>';
|
||||
}
|
||||
if(isset($pd_section_data[16]['common_remarks']) && !empty($pd_section_data[16]['common_remarks']))
|
||||
{
|
||||
echo '<tr><th class="tdcenteralign" colspan="5">Remarks</th><td class="tdcenteralign" colspan="10">'.$pd_section_data[16]['common_remarks'] .'</td>';
|
||||
@ -516,7 +551,27 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
?>
|
||||
</tbody></table>
|
||||
|
||||
<br>
|
||||
|
||||
<table class="scorecard_table">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th class="thlargefont" colspan="8">General Business Information</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="4" >Business Entity Type</td>
|
||||
<td colspan="4" ><?php echo $pd_section_data[4]['business_entity_type'] ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="4" >Business Activity</td>
|
||||
<td colspan="4" ><?php echo $pd_section_data[4]['select_business_activity_type'] ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="4" >Area of Sale</td>
|
||||
<td colspan="4" ><?php echo $pd_section_data[4]['area_of_sale'] ?></td>
|
||||
</tr>
|
||||
</tbody></table>
|
||||
|
||||
<br>
|
||||
<table class="scorecard_table" style="table-layout: fixed">
|
||||
<tbody>
|
||||
<tr>
|
||||
@ -525,7 +580,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
<tr>
|
||||
<th colspan="3">Product/Service Name</th>
|
||||
<th colspan="2">Contribution Business Product</th>
|
||||
<th colspan="5">remarks</th>
|
||||
<th colspan="5">Remarks</th>
|
||||
</tr>
|
||||
<?php
|
||||
// print_r($pd_section_data[6]);
|
||||
@ -558,16 +613,29 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
?>
|
||||
</tbody></table>
|
||||
|
||||
|
||||
<br>
|
||||
<table class="scorecard_table" style="table-layout: fixed">
|
||||
<tbody>
|
||||
<?php
|
||||
echo '<tr><th>Business Brief</th></tr><tr><td class="tdcenteralign">'.$pd_section_data[6]['business_process'] .'</td></tr>';?>
|
||||
echo '<tr><th class="thlargefont">Business Brief</th></tr><tr><td class="tdcenteralign">'.$pd_section_data[6]['business_process'] .'</td></tr>';?>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<br>
|
||||
<table class="scorecard_table" style="table-layout: fixed">
|
||||
<tbody>
|
||||
<tr><th class="thlargefont">Activity Observed during Visit (Yes / No)</th></tr>
|
||||
<?php
|
||||
$business_pd_visited_remark = (isset($pd_section_data[8]['business_pd_visited_remark']) && $pd_section_data[8]['business_pd_visited_remark'] != '' ? ( '(' . $pd_section_data[8]['business_pd_visited_remark']. ' ) ' ) : '');
|
||||
|
||||
?>
|
||||
<tr><td class = "tdcenteralign"><?php echo ($pd_section_data[8]['business_is_pd_visited'].$business_pd_visited_remark)?> </td> </tr>
|
||||
</tbody></table>
|
||||
<br>
|
||||
<table class="scorecard_table">
|
||||
<tbody>
|
||||
<tr>
|
||||
@ -594,28 +662,14 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
<td colspan="2" ><?php echo $pd_section_data[7]['temporary_employees_cm'];?></td><td colspan="2" >Temporary >></td>
|
||||
<td colspan="2" ><?php echo $rupee_symbol.' '.MYUTIL::customIndianNumberFormat($pd_section_data[7]['temporary_employees_salary']);?></td>
|
||||
</tr>
|
||||
<?php if($pd_section_data[7]['common_remarks']){?>
|
||||
<tr>
|
||||
<td colspan="2">Remark</td> <td class="tdcenteralign" colspan="10"><?php echo $pd_section_data[7]['common_remarks']?></th>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table class="scorecard_table">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th class="thlargefont" colspan="8">General Business Information</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="4" >Business Entity Type</td>
|
||||
<td colspan="4" ><?php echo $pd_section_data[4]['business_entity_type'] ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="4" >Business Activity</td>
|
||||
<td colspan="4" ><?php echo $pd_section_data[4]['select_business_activity_type'] ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="4" >Area of Sale</td>
|
||||
<td colspan="4" ><?php echo $pd_section_data[4]['area_of_sale'] ?></td>
|
||||
</tr>
|
||||
</tbody></table>
|
||||
|
||||
<br>
|
||||
<table class="scorecard_table">
|
||||
<tbody>
|
||||
<tr>
|
||||
@ -639,13 +693,13 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
<?php }?>
|
||||
</tbody></table>
|
||||
|
||||
<br>
|
||||
<?php if(isset($pd_section_data[8]['is_business_address']) && strtolower($pd_section_data[8]['is_business_address']) == 'yes'){ ?>
|
||||
|
||||
<?php if(isset($pd_section_data[8]['is_business_address']) && strtolower($pd_section_data[8]['is_business_address']) == 'yes'){ ?><!--
|
||||
<table class="scorecard_table">
|
||||
<tr><th class="thlargefont" colspan="2">Business Asset</th></tr>
|
||||
|
||||
<tr> <td>Business asset address</td><td class = "tdcenteralign"><?php echo $pd_section_data[8]['initiated_address']?></td> </tr>
|
||||
<tr> <td>business operating duration<br>in visited premises </td> <td class = "tdcenteralign"><?php echo ($pd_section_data[8]['business_years'].'Yr(s)'.(isset($pd_section_data[8]['business_months']) && $pd_section_data[8]['business_months'] != '' ? ' & ' . $pd_section_data[8]['business_months'] .'Mnt(s)': ''))?></td> </tr>
|
||||
<tr> <td>Business operating duration<br>in visited premises </td> <td class = "tdcenteralign"><?php echo ($pd_section_data[8]['business_years'].'Yr(s)'.(isset($pd_section_data[8]['business_months']) && $pd_section_data[8]['business_months'] != '' ? ' & ' . $pd_section_data[8]['business_months'] .'Mnt(s)': ''))?></td> </tr>
|
||||
|
||||
<?php
|
||||
$business_pd_visited_remark = (isset($pd_section_data[8]['business_pd_visited_remark']) && $pd_section_data[8]['business_pd_visited_remark'] != '' ? ( '(' . $pd_section_data[8]['business_pd_visited_remark']. ' ) ' ) : '');
|
||||
@ -663,29 +717,72 @@ $business_pd_visited_remark = (isset($pd_section_data[8]['business_pd_visited_re
|
||||
<tr><td>Loan Existing against asset</td> <td class = "tdcenteralign"><?php echo ($pd_section_data[8]['business_emi'])?> </td> </tr>
|
||||
<?php } ?>
|
||||
|
||||
<!-- <tr> <td>Remarks </td> <td class = "tdcenteralign"><?php $pd_section_data[8]['common_remarks']?></td> </tr> -->
|
||||
</table>
|
||||
|
||||
</table> -->
|
||||
<?php } ?>
|
||||
<!-- <table class="scorecard_table">
|
||||
</table -->>
|
||||
|
||||
|
||||
<div id="page_break"> </div>
|
||||
<table class="scorecard_table">
|
||||
</table>
|
||||
<br>
|
||||
<table class="scorecard_table">
|
||||
<tr><th class="thlargefont">Other Business Assets</th></tr>
|
||||
</table>
|
||||
<table class="scorecard_table">
|
||||
<?php if(isset($pd_section_data[8]['display_data']) && is_array($pd_section_data[8]['display_data']) && count($pd_section_data[8]['display_data'])){?>
|
||||
<thead>
|
||||
|
||||
<thead><tr><th class="thlargefont" colspan="10">Business Assets</th></tr>
|
||||
<!-- </table>
|
||||
<table class="scorecard_table"> -->
|
||||
|
||||
<?php if(isset($pd_section_data[8]['business_assets_details']) && is_array($pd_section_data[8]['business_assets_details']) && count($pd_section_data[8]['business_assets_details'])){?>
|
||||
|
||||
|
||||
<?php echo $pd_section_data[8]['display_data']['header_row']?>
|
||||
<tr> <th colspan="2">Asset Type</th> <th colspan="3">Asset Description</th> <th colspan="1">Asset Ownership</th> <th colspan="1">Owner's Name</th> <th colspan="1">Market Value</th> <th colspan="1">Age of the Asset (Yrs)</th> <th colspan="1">Loan Agst Asset (Yes/ No)</th> </tr>
|
||||
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php echo $pd_section_data[8]['display_data']['first_row']?>
|
||||
<?php echo $pd_section_data[8]['display_data']['second_row']?>
|
||||
<?php echo $pd_section_data[8]['display_data']['third_row']?>
|
||||
<?php echo $pd_section_data[8]['display_data']['fourth_row']?>
|
||||
<?php echo $pd_section_data[8]['display_data']['five_row']?>
|
||||
<?php echo $pd_section_data[8]['display_data']['siz_row']?>
|
||||
<?php echo $pd_section_data[8]['display_data']['seven_row']?>
|
||||
<?php //echo $pd_section_data[8]['display_data']['first_row']
|
||||
//echo $pd_section_data[8]['display_data']['second_row']
|
||||
//echo $pd_section_data[8]['display_data']['third_row']
|
||||
//echo $pd_section_data[8]['display_data']['fourth_row']
|
||||
//echo $pd_section_data[8]['display_data']['five_row']
|
||||
//echo $pd_section_data[8]['display_data']['siz_row']
|
||||
//echo $pd_section_data[8]['display_data']['seven_row']
|
||||
|
||||
$applicant_details = applicantname_grabber::getLatestApplicantsName($pd_master_details[0]['pd_id']);
|
||||
$asset_type = array('2' => 'Property','3' => 'Vehicle','4' => 'Equipments and machinery','5' => 'Jewellery','6' => 'Life Insurance Policy','7' => 'Investments','1' => 'Others');
|
||||
$address_type = array('2' => 'Clinic','3' => 'Factory','4' => 'Warehouse / Godown','5' => 'Shop','6' => 'Residence','7' => 'Residence cum Office','1' => 'Others','8' => 'Industrial Shed','9'=> 'Workshop','10'=> 'Business Centre','11'=> 'Shared Office','12'=> 'Office');
|
||||
$vehicle_type = array('2' => 'Car/Jeep','3' => 'Truck/ Bus','4' => 'Rickshaw/Tempo','5' => 'Tractor','6' => 'Two Wheeler','1' => 'Others');
|
||||
foreach ($pd_section_data[8]['business_assets_details'] as $asset_key => $b_asset)
|
||||
{
|
||||
|
||||
$description = $b_asset['other_asset_description'];
|
||||
if(isset($b_asset['property_type']))
|
||||
{
|
||||
|
||||
if($b_asset['property_type'] == 1){ $description .= '('. $b_asset['property_type_others'] .')'; }
|
||||
else{ $description .= '('. $address_type[ $b_asset['property_type'] ] .')'; }
|
||||
}
|
||||
if(isset($b_asset['vehicle_type']))
|
||||
{
|
||||
|
||||
|
||||
if($b_asset['vehicle_type'] == 1){ $description .= '('. $b_asset['vehicle_type_others'] .')'; }
|
||||
else{$description .= '('. $vehicle_type[ $b_asset['vehicle_type'] ] .')';}
|
||||
}
|
||||
if(isset($b_asset['business_purchase_year']))
|
||||
{
|
||||
$description .= ' purchased at '.$b_asset['business_purchase_year'];
|
||||
}
|
||||
if(isset($b_asset['property_address']))
|
||||
{
|
||||
$description .= ' is in '. $b_asset['property_address'];
|
||||
}
|
||||
$business_ownership_type = $b_asset['business_ownership_type'] . (isset($b_asset['business_monthly_rented_amt']) ? ' ( '. $rupee_symbol .' '. MYUTIL::customIndianNumberFormat($b_asset['business_monthly_rented_amt']) .' ) ' : '');
|
||||
$business_name_of_the_owner = (isset($b_asset['business_name_of_the_owner']) ? (applicantname_grabber::getMultipleApplicantsNameById($b_asset['business_name_of_the_owner'],$applicant_details)): 'NA');
|
||||
|
||||
|
||||
echo '<tr> <td colspan="2">'.( $b_asset['business_assets_mode'] == 1 ? $b_asset['other_asset_description'] : $asset_type [ $b_asset['business_assets_mode'] ]).'</td> <td colspan="3"> '. $description .'</td> <td colspan="1">'. $business_ownership_type .'</td> <td colspan="1">'. $business_name_of_the_owner .'</td> <td colspan="1">'.(isset($b_asset['business_approximate_market_value']) ? ( $rupee_symbol .' '. MYUTIL::customIndianNumberFormat($b_asset['business_approximate_market_value'])) : 'NA').'</td> <td>'.(isset($b_asset['business_purchase_year']) ? $b_asset['business_purchase_year'] : 'NA').'</td><td colspan="1">'.(isset($b_asset['business_emi']) ? $b_asset['business_emi'] : 'NA').'</td></tr>';
|
||||
}
|
||||
?>
|
||||
|
||||
</tbody>
|
||||
<?php }else
|
||||
{
|
||||
@ -702,7 +799,7 @@ $business_pd_visited_remark = (isset($pd_section_data[8]['business_pd_visited_re
|
||||
}?>
|
||||
|
||||
|
||||
<!-- <div id="page_break"></div> -->
|
||||
<div id="page_break"></div>
|
||||
<table class="scorecard_table">
|
||||
<tbody>
|
||||
<tr>
|
||||
@ -922,14 +1019,24 @@ $business_pd_visited_remark = (isset($pd_section_data[8]['business_pd_visited_re
|
||||
<table class="scorecard_table">
|
||||
<tbody>
|
||||
<?php echo '<tr> <td class="tdcenteralign" colspan="2">Debtor Days</td> <td colspan="2" class="tdcenteralign"</td>'.$pd_section_data[10]['debtor_days_cm'].'<td colspan="2" class="tdcenteralign">Creditor Days</td> <td colspan="2" class="tdcenteralign">'.$pd_section_data[10]['creditor_days_cm'].'</td> <td colspan="2" class="tdcenteralign">Stock Days</td> <td colspan="2" class="tdcenteralign">'.$pd_section_data[10]['inventory_days_cm'].'</td> </tr>'?>
|
||||
<?php echo '<tr> <td colspan="4" class="tdcenteralign">Does the business have any working capital facility from any lender other than Moneywise? (Yes / No)</td> <td colspan="2" class="tdcenteralign">'.$pd_section_data[10]['is_any_other_working_captial_facility'].'</td> <td colspan="4" class="tdcenteralign">If Yes, then details of the same to be captured</td> <td colspan="2" class="tdcenteralign">'.(isset($pd_section_data[10]['facility_details_specify']) ? $pd_section_data[10]['facility_details_specify'] : '').'<br>('.(isset($pd_section_data[10]['facility_details_other']) ? $pd_section_data[10]['facility_details_other'] : $pd_section_data[10]['facility_details_other_lender']).')'.'</td> </tr>'?>
|
||||
<?php echo '<tr> <td colspan="8" class="tdcenteralign">Does the business have any working capital facility from any lender other than Moneywise? (Yes / No)</td> <td colspan="4" class="tdcenteralign">'.$pd_section_data[10]['is_any_other_working_captial_facility'].'</td></tr>'?>
|
||||
<?php
|
||||
if(isset($pd_section_data[10]['facility_details_specify']))
|
||||
{
|
||||
echo '<tr><td colspan="8" class="tdcenteralign">If Yes, then details of the same to be captured</td> <td colspan="4" class="tdcenteralign">'.(isset($pd_section_data[10]['facility_details_specify']) ? $pd_section_data[10]['facility_details_specify'] : '').'<br>('.(isset($pd_section_data[10]['facility_details_other']) ? $pd_section_data[10]['facility_details_other'] : $pd_section_data[10]['facility_details_other_lender']).')'.'</td></tr>';
|
||||
}
|
||||
|
||||
?>
|
||||
<?php echo '<tr> <td class="tdcenteralign" colspan="2">Broken Period starting from</td> <td colspan="2" class="tdcenteralign"</td>'.$pd_section_data[10]['broken_period_from_month'].'<td colspan="2" class="tdcenteralign">Broken Period starting to</td> <td colspan="2" class="tdcenteralign">'.$pd_section_data[10]['broken_period_to_month'].'</td> <td colspan="2" class="tdcenteralign">No of Months</td> <td colspan="2" class="tdcenteralign">'.$pd_section_data[10]['broken_period_no_of_months'].'</td> </tr>'?>
|
||||
<?php echo '<tr> <td class="tdcenteralign" colspan="2">Turn Over for Broken Period in CY</td> <td colspan="2" class="tdcenteralign"</td>'.$rupee_symbol.''. MYUTIL::customIndianNumberFormat($pd_section_data[10]['broken_period_turnover_cy']).'<td colspan="2" class="tdcenteralign">Turn Over for Broken Period in PY</td> <td colspan="2" class="tdcenteralign">'.$rupee_symbol.''.MYUTIL::customIndianNumberFormat($pd_section_data[10]['broken_period_turnover_py']).'</td> <td colspan="2" class="tdcenteralign">('.$uparrow.'/'. $downarrow.')in Turnover for Broken Period</td> <td colspan="2" class="tdcenteralign">'.$pd_section_data[10]['broken_period_turnover_percent'].'%</td> </tr>'?>
|
||||
|
||||
|
||||
<?php if(!empty($pd_section_data[10]['common_remarks'])) {echo '<tr> <td class="tdcenteralign" colspan="2">Remarks on Financials >></td> <td colspan="10" class="tdcenteralign">'.$pd_section_data[10]['common_remarks'].'</td> </tr>';}?>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<br>
|
||||
<div id="page_break"> </div>
|
||||
<table class="scorecard_table">
|
||||
<tr><th class="thlargefont">Supplier Details</th></tr>
|
||||
</table>
|
||||
@ -1018,7 +1125,7 @@ if(isset($pd_section_data[12]['common_remarks']) && !empty($pd_section_data[12][
|
||||
// '<td class="tdcenteralign" colspan="2">'.$section13_value['provider_name'].'</td>'.
|
||||
'<td class="tdcenteralign" colspan="1">'.$section13_value['stock_type'].'</td>'.
|
||||
'<td class="tdcenteralign" colspan="3">'.$section13_value['provider_name'].'</td>'.
|
||||
'<td class="tdcenteralign" colspan="2">'.(isset($section13_value['estimated_stock_value']) ? $section13_value['estimated_stock_value'] : 'NA').'</td>'.
|
||||
'<td class="tdcenteralign" colspan="2">'.(isset($section13_value['estimated_stock_value']) ? $rupee_symbol.''.MYUTIL::customIndianNumberFormat($section13_value['estimated_stock_value']) : 'NA').'</td>'.
|
||||
'<td class="tdcenteralign" colspan="1">'.(isset($section13_value['estimated_quantity']) ? $section13_value['estimated_quantity'].' '.$section13_value['estimated_uom'] : 'NA').'</td>'.'</tr>';
|
||||
|
||||
|
||||
@ -1040,8 +1147,7 @@ if(isset($pd_section_data[12]['common_remarks']) && !empty($pd_section_data[12][
|
||||
|
||||
?>
|
||||
</tbody></table>
|
||||
<br>
|
||||
<br>
|
||||
<div id="page_break"> </div>
|
||||
<table class="scorecard_table" style="table-layout: fixed">
|
||||
<tbody>
|
||||
<tr>
|
||||
@ -1139,7 +1245,7 @@ Business run by the applicant</td><td colspan="4"><?php echo $pd_section_data[1
|
||||
<th>Existing Loan Obligations</th>
|
||||
</tr>
|
||||
< /table>-->
|
||||
<br>
|
||||
<div id="page_break"> </div>
|
||||
<table class="scorecard_table">
|
||||
|
||||
<thead>
|
||||
@ -1164,7 +1270,12 @@ Business run by the applicant</td><td colspan="4"><?php echo $pd_section_data[1
|
||||
<?php
|
||||
foreach ($pd_section_data[15]['existing_loan_details'] as $key15 => $value15)
|
||||
{
|
||||
echo '<tr><td class="tdcenteralign">'. ($key15 + 1) .'</td><td>'. $value15['loan_type'] .'</td><td>'.$rupee_symbol.MYUTIL::customIndianNumberFormat($value15['loan_amount']).'</td><td>'.$value15['lender_name'].'</td><td>'.$value15['loan_taken_by'].'</td><td class="tdcenteralign">'.$rupee_symbol.' '.MYUTIL::customIndianNumberFormat($value15['instalment_amount']).'</td><td class="tdcenteralign">'.$value15['instalment_frequency'].'</td><td class="tdcenteralign">'.$value15['original_tenure_months'].'</td><td class="tdcenteralign">'.$value15['current_tenure_months'].'</td><td class="tdcenteralign">'.$value15['elapsed_tenure_months'].'</td></tr>';
|
||||
echo '<tr><td class="tdcenteralign">'. ($key15 + 1) .'</td><td>'. $value15['loan_type'] .'</td><td>'.$rupee_symbol.MYUTIL::customIndianNumberFormat($value15['loan_amount']).'</td><td>'.$value15['lender_name'].'</td><td>'.$value15['loan_taken_by'].'</td><td class="tdcenteralign">'.$rupee_symbol.' '.MYUTIL::customIndianNumberFormat($value15['instalment_amount']).'</td><td class="tdcenteralign">'.$value15['instalment_frequency'].'</td><td class="tdcenteralign">'.($value15['original_tenure_months'] != '' ? $value15['original_tenure_months'] : 'NA').'</td><td class="tdcenteralign">'.($value15['current_tenure_months'] != '' ? $value15['current_tenure_months'] : 'NA').'</td><td class="tdcenteralign">'.($value15['elapsed_tenure_months'] != '' ? $value15['elapsed_tenure_months'] : 'NA') .'</td></tr>';
|
||||
}
|
||||
|
||||
if($pd_section_data[15]['common_remarks'])
|
||||
{
|
||||
echo '<tr> <td colspan="2">Remarks</td> <td class="tdcenteralign"colspan="8">'. $pd_section_data[15]['common_remarks'] .'</td> </tr>';
|
||||
}
|
||||
|
||||
|
||||
@ -1173,11 +1284,11 @@ Business run by the applicant</td><td colspan="4"><?php echo $pd_section_data[1
|
||||
|
||||
|
||||
</table>
|
||||
<br>
|
||||
|
||||
|
||||
<div id="page_break"> </div>
|
||||
<table class="scorecard_table">
|
||||
<tr><th class="thlargefont">Neighbour Details</th></tr>
|
||||
<tr><th class="thlargefont">Neighbourhood Check Details</th></tr>
|
||||
</table>
|
||||
<table class="scorecard_table">
|
||||
|
||||
@ -1190,8 +1301,8 @@ Business run by the applicant</td><td colspan="4"><?php echo $pd_section_data[1
|
||||
<?php echo $pd_section_data[17]['display_data']['second_row']?>
|
||||
<?php echo $pd_section_data[17]['display_data']['third_row']?>
|
||||
<?php echo $pd_section_data[17]['display_data']['owner_row']?>
|
||||
<?php echo $pd_section_data[17]['display_data']['fourth_row']?>
|
||||
<?php echo $pd_section_data[17]['display_data']['five_row']?>
|
||||
<?php if($pd_section_data[17]['neighbourhood_remarks']) { echo $pd_section_data[17]['display_data']['fourth_row']; }?>
|
||||
<!-- <?php echo $pd_section_data[17]['display_data']['siz_row']?>
|
||||
<?php echo $pd_section_data[17]['display_data']['seven_row']?> -->
|
||||
</tbody>
|
||||
@ -1268,16 +1379,6 @@ aforementioned status</td><td colspan="4"><?php echo $reason;?></td></tr>
|
||||
|
||||
}?>
|
||||
</tbody></table>
|
||||
|
||||
<div id="page_break"></div>
|
||||
<br><table class="scorecard_table"><tr><th class="thlargefont" colspan="10">Satellite Image of PD Location</th></tr></table><br>
|
||||
<p><b>GPS Coordinates of location where PD Visit was done : <?php echo $pd_master_details[0]['start_location'] ? $pd_master_details[0]['start_location'] : '-'; ?></b></p>
|
||||
<?php if($pd_master_details[0]['start_location']) { ?>
|
||||
<img style="border:3px solid #0191ed;" src = "<?php echo 'data:image/gif;base64,'.$satellite[0]['img']; ?>" alt = "PD Visted Location Satellite Image " height="300px" width="630px">
|
||||
<?php
|
||||
}else{ echo '<p>Due to location access not provided by loan applicant Geo coordinates on photographs and Satellite image of PD location is not shown</p>';}
|
||||
?>
|
||||
|
||||
<?php
|
||||
$iter = 0;
|
||||
$photo_names = array('person_met' => 'Selfie with person met','person_met_id_proof' => 'Person met ID Proof','approach_to_pd_location' => 'Approach to pd location','name_board_seen' => 'Name board seen', 'stock_image' => 'Stock image','supplier_image' => 'Supplier Bills','client_image' => 'Client Bills','machinary_image' => 'Machinary Image');
|
||||
|
||||
Loading…
Reference in New Issue
Block a user