SALES PD FEEDBACKS

This commit is contained in:
Velz2020 2019-11-26 12:55:08 +05:30
parent 27032ec84c
commit f7e51d62e2
3 changed files with 62 additions and 50 deletions

View File

@ -67,11 +67,20 @@ class Sales_PD_Controller extends REST_Controller {
{
$applicant_id = $g_value['answer_value'];
}
if($g_value['question_key'] == 'person_met_during_visit')
{
$applicant_name = $g_value['answer_value'];
if($g_value['question_key'] == 'person_met_during_visit')
{
$applicant_name = $g_value['answer_value'];
}
}
if($records['product_id'] == 4)
{
if($g_value['question_key'] == 'company_name')
{
$applicant_name = $g_value['answer_value'];
}
}
}
}
if($value['section_id'] == 8)

View File

@ -4124,7 +4124,7 @@ if($total_no_of_business > 0) {
<li style="margin: 15px 0;"><?php echo $nfValue['neighbourhood_name']; ?></li>
<li style="margin: 15px 0;"><?php echo $nfValue['neighbourhood_do_know']; ?></li>
<li style="margin: 15px 0;"><?php echo $nfValue['neighbourhood_business_running_yr']; ?></li>
<li style="margin: 15px 0;"><?php echo $nfValue['ownership']; ?>
<li style="margin: 15px 0;"><?php echo $nfValue['ownership']; ?></li>
</ul>
<?php }?>
@ -4138,7 +4138,7 @@ if($total_no_of_business > 0) {
else{?>
<!-- <p>Status of check: Could Not Verify. <br>Neighbour Check was not possible due to Could not verify</p> -->
<!-- <p>Neighbour Check was not possible due to Could not verify</p> -->
<p>Status of the check: could not verify.<p>
<p>Status of the check: could not verify.</p>
<?php
}

View File

@ -5,6 +5,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
$downarrow = '<span style="color:red;">↓</span>';
$dash = '<span style="color:black;"> </span>';
$product_name = $product_id == 8 ? 'LFMP' : 'BL';
$rupee_symbol = "<span style='font-family: DejaVu Sans; sans-serif;font-size:10px'>₹</span>";
?><!DOCTYPE html>
<html lang="en">
<head>
@ -85,6 +86,8 @@ defined('BASEPATH') OR exit('No direct script access allowed');
/* #########End of Score Card Table Styles######### */
.tdcenteralign{ text-align: center; }
.thlargefont{ font-size: 20px; }
</style>
@ -106,7 +109,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
<tbody>
<tr>
<th colspan="10" >Personal Discussion Sheet - <?php echo $product_name; ?> (For Sales Team)</th>
<th class="thlargefont" colspan="10" >Personal Discussion Sheet - <?php echo $product_name; ?> (For Sales Team)</th>
</tr>
<tr>
<td colspan="3"> Application ID</td>
@ -138,13 +141,13 @@ defined('BASEPATH') OR exit('No direct script access allowed');
<table class="scorecard_table">
<tbody>
<tr>
<th colspan="10">Fund Requirement</th>
<th class="thlargefont" colspan="10">Fund Requirement</th>
</tr>
<tr>
<td colspan="3" >Loan Amount Applied for (Rs)</td>
<td colspan="3" ><?php echo $section2['loan_amount_applied']?></td>
<td colspan="3" ><?php echo $rupee_symbol.' '.MYUTIL::customIndianNumberFormat($section2['loan_amount_applied'])?></td>
<td colspan="2">Total Fund Requirement (Rs)</td>
<td colspan="2"> <?php echo $section2['total_fund_requirement']?></td>
<td colspan="2"> <?php echo $rupee_symbol.' '. MYUTIL::customIndianNumberFormat($section2['total_fund_requirement'])?></td>
</tr>
<tr>
<td colspan="3" >Loan Tenure (Months)</td>
@ -158,13 +161,13 @@ defined('BASEPATH') OR exit('No direct script access allowed');
<table class="scorecard_table">
<tbody>
<tr>
<th colspan="10">Details of Key Stakeholders in the Business</th>
<th class="thlargefont" colspan="10">Details of Key Stakeholders in the Business</th>
</tr>
<tr>
<th colspan="2">Name</th>
<th colspan="1" >Share Holding</th>
<th colspan="1" >Vintage in Current Business</th>
<th colspan="1">Total Work Exp</th>
<th colspan="1" >Vintage in Current Business (Yrs)</th>
<th colspan="1">Total Work Exp(Yrs)</th>
<th colspan="3" >Previous Experience Details</th>
<th colspan="2" >Started Business</th>
</tr>
@ -174,12 +177,12 @@ defined('BASEPATH') OR exit('No direct script access allowed');
foreach ($section3 as $section3_key => $section3_value)
{
echo '<tr><td colspan="2">'.$section3_value['name'] .'</td>'.
'<td colspan="1">'.$section3_value['share_holding'].'</td>'.
'<td colspan="1">'.$section3_value['vintage_in_current_biz'].'</td>'.
'<td colspan="1">'.$section3_value['total_work_exp'].'</td>'.
'<td colspan="3">'.$section3_value['previous_experience_details'].'</td>'.
'<td colspan="2" style="text-align: center">'.$section3_value['started_biz'].'</td>'.
echo '<tr><td class="tdcenteralign" colspan="2">'.$section3_value['name'] .'</td>'.
'<td class="tdcenteralign" colspan="1">'.$section3_value['share_holding'].'%</td>'.
'<td class="tdcenteralign" colspan="1">'.$section3_value['vintage_in_current_biz'].'</td>'.
'<td class="tdcenteralign" colspan="1">'.$section3_value['total_work_exp'].'</td>'.
'<td class="tdcenteralign" colspan="3">'.$section3_value['previous_experience_details'].'</td>'.
'<td class="tdcenteralign" colspan="2" style="text-align: center">'.$section3_value['started_biz'].'</td>'.
'</tr>';
}
@ -188,7 +191,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
?>
<tr>
<th colspan="10" >Brief of the Business / Service</th>
<th class="thlargefont" colspan="10" >Brief of the Business / Service</th>
</tr>
<tr>
<td colspan="10" ><?php echo $section4['brief_business_service']?></td>
@ -200,14 +203,14 @@ defined('BASEPATH') OR exit('No direct script access allowed');
<br>
<table class="scorecard_table">
<tr>
<th colspan="10" >Financial Information</th>
<th class="thlargefont" colspan="10" >Financial Information</th>
</tr>
<tr>
<td colspan="6" >Name of the Company / Firm whose financials are noted </td>
<td colspan="4" ><?php echo $section1['company_name']?></td>
</tr>
</tbody></table>
<table class="scorecard_table"><tbody>
<tr>
<th colspan="7">Particulars of Financials as per books of Accounts (Can be captured prior to PD)</th>
<?php
@ -234,7 +237,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
{
if(is_numeric($fy_key))
{
echo '<td colspan="1" class="tdcenteralign">'.($fy_value['sales_revenue'] ).'</td>';
echo '<td colspan="1" class="tdcenteralign">'. $rupee_symbol.' '.MYUTIL::customIndianNumberFormat(($fy_value['sales_revenue'])).'</td>';
}
}
?>
@ -247,7 +250,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
{
if(is_numeric($fy_key))
{
echo '<td colspan="1" class="tdcenteralign">'.($fy_value['net_profit'] ).'</td>';
echo '<td colspan="1" class="tdcenteralign">'.$rupee_symbol.' '. MYUTIL::customIndianNumberFormat($fy_value['net_profit']).'</td>';
}
}
?>
@ -261,7 +264,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
{
if(is_numeric($fy_key))
{
echo '<td colspan="1" class="tdcenteralign">'.round((($fy_value['net_profit'] / $fy_value['sales_revenue'] ) * 100 ),2).'</td>';
echo '<td colspan="1" class="tdcenteralign">'.round((($fy_value['net_profit'] / $fy_value['sales_revenue'] ) * 100 ),2).'%</td>';
}
}
?>
@ -351,15 +354,15 @@ defined('BASEPATH') OR exit('No direct script access allowed');
<table class="scorecard_table">
<tr>
<td colspan="3">Income to be Considered (Rs Per Annum) </td>
<td colspan="2"><?php echo ($section5['income_considered'] * 12 )?></td>
<td colspan="2"><?php echo $rupee_symbol.' '.MYUTIL::customIndianNumberFormat($section5['income_considered'] )?></td>
<td colspan="3" >Income Considered (Rs Per Mth) </td>
<td colspan="2"><?php echo $section5['income_considered']?></td>
<td colspan="2"><?php echo MYUTIL::customIndianNumberFormat( round(($section5['income_considered'] / 12 ),2) );?></td>
</tr>
<tr>
<td colspan="3">Income assessment Program Recommended </td>
<td colspan="2"><?php echo $section5['income_assessment_program_recommended']?></td>
<td colspan="3" >Fixed Obligations (Rs per month) </td>
<td colspan="2"><?php echo $section5['fixed_obligations']?></td>
<td colspan="2"><?php echo $rupee_symbol.' '.MYUTIL::customIndianNumberFormat( $section5['fixed_obligations'] )?></td>
</tr>
</tbody></table>
@ -372,7 +375,7 @@ if(isset($section6))
<table class="scorecard_table">
<tbody>
<tr>
<th colspan="10"> Property Information</th>
<th class="thlargefont" colspan="10"> Property Information</th>
</tr>
<tr>
<td colspan="1" >Property Address (With Landmark &amp; PIN)</td>
@ -394,7 +397,7 @@ if(isset($section6))
<td colspan="1" >Built-Up Area (Sq. Ft.)</td>
<td colspan="4" ><?php echo $section6['built_up_area']?></td>
<td colspan="1" >Approx Mkt. Val (Rs)</td>
<td colspan="4" ><?php echo $section6['approx_mkt_val']?></td>
<td colspan="4" ><?php echo $rupee_symbol.' '.MYUTIL::customIndianNumberFormat($section6['approx_mkt_val'])?></td>
</tr>
<tr>
<td colspan="1" >Property Ownership Status (Enter the names of the Property Owner(s) and their relationships)</td>
@ -408,7 +411,7 @@ if(isset($section6))
<table class="scorecard_table">
<tbody>
<tr>
<th colspan="10" >Final Remarks of PD officer</th>
<th class="thlargefont" colspan="10" >Final Remarks of PD officer</th>
</tr>
<tr>
<td colspan="4" >Business activity seen during visit (Yes / No)</td>
@ -484,28 +487,28 @@ if(isset($section6))
$iter = 0;
$photo_names = array('selfie_with_person_met' => 'Selfie with person met','approach_to_pd_location' => 'Approach to pd location','name_board_seen' => 'Name board seen', 'stock_image' => 'Stock image','workplace_interior_image' => 'Workplace interior image');
//if(count($photos))
$tot_rows = ceil(count($section9) / 3);
if(count($section9))
{
echo '<table class="scorecard_table"><tr><th colspan="10">Photograph`s</th></tr></table><br><table ><tbody>';
// $tot_rows = ceil(count($section9) / 3);
// if(count($section9))
// {
// echo '<table class="scorecard_table"><tr><th class="thlargefont" colspan="10">Photograph`s</th></tr></table><br><table ><tbody>';
for($row = 0;$row < $tot_rows; $row++)
{
echo '<tr>';
$from = $row == 0 ? $row : ($row+2);
$to = ($from + 2);
for($i = $from ; $i <= $to; $i++)
{
// for($row = 0;$row < $tot_rows; $row++)
// {
// echo '<tr>';
// $from = $row == 0 ? $row : ($row+2);
// $to = ($from + 2);
// for($i = $from ; $i <= $to; $i++)
// {
echo '<td style="text-align:center;border:1px solid;"> <img src="'.$section9[$i]['img'].'" height = "200" width="200"/><br>'.$photo_names [ $section9[$i]['img_name'] ].'</td>';
// echo '<td style="text-align:center;border:1px solid;"> <img src="'.$section9[$i]['img'].'" height = "200" width="200"/><br>'.$photo_names [ $section9[$i]['img_name'] ].'</td>';
//unset($p_key);
}
echo '</tr>';
}
echo '</tbody></table>';
}
// //unset($p_key);
// }
// echo '</tr>';
// }
// echo '</tbody></table>';
// }
?>