LFMP company name in report 2 : ps

This commit is contained in:
Sanjeev 2021-04-29 14:02:02 +05:30
parent 7c5f2b2c7b
commit 21a7cd8d1a

View File

@ -302,6 +302,10 @@ defined('BASEPATH') OR exit('No direct script access allowed');
echo '<tr><td colspan="1" class = "tdcenteralign">'.$value1['borrower_type'].'</td> <td colspan="1" class = "tdcenteralign">'.$value1['borrower_name'].(isset($value1['mobile_numbers']) && $value1['mobile_numbers'] != '' ? ('<br>('. $value1['mobile_numbers'] .')'): '').'</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'] : ( (strcasecmp($value1['entity_type'],'Individual')) ? $value1['numbers_of_years_business_running'] : '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>'; echo '<tr><td colspan="1" class = "tdcenteralign">'.$value1['borrower_type'].'</td> <td colspan="1" class = "tdcenteralign">'.$value1['borrower_name'].(isset($value1['mobile_numbers']) && $value1['mobile_numbers'] != '' ? ('<br>('. $value1['mobile_numbers'] .')'): '').'</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'] : ( (strcasecmp($value1['entity_type'],'Individual')) ? $value1['numbers_of_years_business_running'] : '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>';
} }
?> ?>
<tr>
<td colspan="2" >Remarks</td>
<td class = "tdcenteralign" colspan="6" ><?php echo $pd_section_data[1]['common_remarks']?></td>
</tr>
<tbody> <tbody>
</tbody> </tbody>
@ -519,6 +523,10 @@ defined('BASEPATH') OR exit('No direct script access allowed');
} }
?> ?>
<tr>
<td colspan="5" >Remarks</td>
<td class = "tdcenteralign" colspan="12" ><?php echo $pd_section_data[5]['common_remarks']?></td>
</tr>
</tbody></table> </tbody></table>
<div id="page_break"> </div> <div id="page_break"> </div>
@ -699,31 +707,20 @@ $business_pd_visited_remark = (isset($pd_section_data[8]['business_pd_visited_re
<table class="scorecard_table"> <table class="scorecard_table">
<tbody> <tbody>
<tr> <tr>
<th class="thlargefont" colspan="16">Seasonality of the Business</th> <th class="thlargefont" colspan="8">Seasonality of the Business</th>
</tr> </tr>
<tr>
<?php if(isset($pd_section_data[4]['business_entity']) && is_array($pd_section_data[4]['business_entity']) && count($pd_section_data[4]['business_entity'])) { <?php if(isset($pd_section_data[4]['business_entity']) && is_array($pd_section_data[4]['business_entity']) && count($pd_section_data[4]['business_entity'])) {
foreach ($pd_section_data[4]['business_entity'] as $key => $value) { foreach ($pd_section_data[4]['business_entity'] as $key => $value) {
$low_month = ''; $low_month = '';
if(isset($value['low_sale_month']) && is_array($value['low_sale_month']) && count($value['low_sale_month'])){foreach($value['low_sale_month'] as $low){ $low_month .= $low.' ,';}} if(isset($value['low_sale_month']) && is_array($value['low_sale_month']) && count($value['low_sale_month'])){foreach($value['low_sale_month'] as $low){ $low_month .= $low.' ,';}}
if($low_month != ''){$low_month = substr_replace($low_month, '', -1);}else{$low_month = '-';} if($low_month != ''){$low_month = substr_replace($low_month, '', -1);}else{$low_month = '-';}
echo "<tr>". echo "<tr><th colspan='4' >Name of the Company</th><th colspan='4' >".$company[$value['company_name']]."</th></tr>";
"<th colspan='4' >Name of the Company</th>". echo "<tr><td colspan='4' >Business Seasonal (Yes / No)</td><td colspan='4' >".$value['seasonality']."</td></tr>";
"<th colspan='4' >".$company[$value['company_name']]."</th>". echo "<tr><td colspan='4' >If Seasonal Please mention the Lean Months</td><td colspan='4' >".$low_month."</td></tr>";
"</tr>"; }
echo "<tr>".
"<td colspan='4' >Business Seasonal (Yes / No)</td>".
"<td colspan='4' >".$value['seasonality']."</td>".
"</tr>";
echo "<tr>".
"<td colspan='4' >If Seasonal Please mention the Lean Months</td>".
"<td colspan='4' >".$low_month."</td>".
"</tr>";}
if(isset($value['low_sale_month_reason'])){ if(isset($value['low_sale_month_reason'])){
echo "<tr>". echo "<tr><td colspan='4' >Reason</td><td colspan='4' >".$value['low_sale_month_reason']."</td></tr>";
"<td colspan='4' >Reason</td>". }
"<td colspan='4' >".$value['low_sale_month_reason']."</td>".
"</tr>";}
} }
?> ?>
<?php if(isset($pd_section_data[4]['common_remarks']) && !empty($pd_section_data[4]['common_remarks'])) <?php if(isset($pd_section_data[4]['common_remarks']) && !empty($pd_section_data[4]['common_remarks']))
@ -849,7 +846,7 @@ $business_pd_visited_remark = (isset($pd_section_data[8]['business_pd_visited_re
<?php if(isset($pd_section_data[10]) && strtolower($pd_section_data[10]['financial_info_available']) == 'yes') { ?> <?php if(isset($pd_section_data[10]) && strtolower($pd_section_data[10]['financial_info_available']) == 'yes') { ?>
<tr> <tr>
<td colspan="6" >Name of the Company / Firm whose financials are noted </td> <td colspan="6" >Name of the Company / Firm whose financials are noted </td>
<td class = "tdcenteralign" colspan="4" ><?php echo (isset($pd_section_data[10]['company_name'])) ? $compnay[$pd_section_data[10]['company_name']] : isset($applicant_details[0]['company_name']) ? $applicant_details[0]['company_name'] : $pd_master_details[0]['main_applicant']?></td> <td class = "tdcenteralign" colspan="4" ><?php echo (isset($pd_section_data[10]['company_name'] ) ? ($company[$pd_section_data[10]['company_name']]) : (isset($applicant_details[0]['company_name']) ? $applicant_details[0]['company_name'] : $pd_master_details[0]['main_applicant'])) ?></td>
</tr> </tr>
</tbody></table> </tbody></table>
<table class="scorecard_table"><tbody> <table class="scorecard_table"><tbody>
@ -1056,9 +1053,9 @@ $business_pd_visited_remark = (isset($pd_section_data[8]['business_pd_visited_re
</table><br> </table><br>
<table class="scorecard_table"> <table class="scorecard_table">
<tr><th>Working Capital Cycle (As per Person Met during PD)</th></tr> <tr><th colspan="12" >Working Capital Cycle (As per Person Met during PD)</th></tr>
</table> <!-- </table>
<table class="scorecard_table"> <table class="scorecard_table">-->
<tbody> <tbody>
<?php echo '<tr> <?php echo '<tr>
<td class="tdcenteralign" colspan="2">Debtor Days</td> <td class="tdcenteralign" colspan="2">Debtor Days</td>
@ -1087,12 +1084,12 @@ $business_pd_visited_remark = (isset($pd_section_data[8]['business_pd_visited_re
} }
else // if finance data not available . this condiiton opens at near by finace section heading else // if finance data not available . this condiiton opens at near by finace section heading
{ {
echo '<tr> <td class="tdcenteralign" colspan="10">Finance Data Not Available</td></tr>'; echo '<tr> <td class="tdcenteralign" colspan="12">Finance Data Not Available</td></tr>';
} }
if(isset($pd_section_data[10]['common_remarks']) && !empty($pd_section_data[10]['common_remarks'])) if(isset($pd_section_data[10]['common_remarks']) && !empty($pd_section_data[10]['common_remarks']))
{ {
echo '<tr> <td class="tdcenteralign" colspan="10">Remarks on Financials </td> <td colspan="10" class="tdcenteralign">'.$pd_section_data[10]['common_remarks'].'</td> </tr>'; echo '<tr> <td class="tdcenteralign" colspan="4">Remarks on Financials </td> <td colspan="8" class="tdcenteralign">'.$pd_section_data[10]['common_remarks'].'</td> </tr>';
} }
@ -1127,13 +1124,13 @@ $business_pd_visited_remark = (isset($pd_section_data[8]['business_pd_visited_re
<?php } <?php }
else if(isset($pd_section_data[11]['supplier_not_available_reason']) && $pd_section_data[11]['supplier_not_available_reason'] != ''){ else if(isset($pd_section_data[11]['supplier_not_available_reason']) && $pd_section_data[11]['supplier_not_available_reason'] != ''){
echo '<tr><td class="tdcenteralign" colspan='.(count($pd_section_data[12]['client_details']) + 1).'>Supplier Information Not available. Reason - '.$pd_section_data[11]['supplier_not_available_reason'] .'</td></tr>';} echo '<tr><td class="tdcenteralign" colspan='.(count($pd_section_data[11]['supplier_details']) + 1).'>Supplier Information Not available. Reason - '.$pd_section_data[11]['supplier_not_available_reason'] .'</td></tr>';}
else else
{ {
echo '<tr><td class="tdcenteralign">Supplier Information Not available</td></tr>'; echo '<tr><td class="tdcenteralign">Supplier Information Not available</td></tr>';
} }
if(isset($pd_section_data[11]['common_remarks']) && !empty($pd_section_data[11]['common_remarks'])){ if(isset($pd_section_data[11]['common_remarks']) && !empty($pd_section_data[11]['common_remarks'])){
echo '<tr><td class="tdcenteralign" colspan='.(count($pd_section_data[12]['client_details']) + 1).' >Remarks - '.$pd_section_data[11]['common_remarks'] .'</td></tr>';} echo '<tr><td class="tdcenteralign" colspan='.(count($pd_section_data[11]['supplier_details']) + 1).' >Remarks - '.$pd_section_data[11]['common_remarks'] .'</td></tr>';}
?> ?>
</tbody> </tbody>
@ -1293,6 +1290,7 @@ Business run by the applicant</td><td colspan="4"><?php echo $pd_section_data[1
// echo '<td class="tdcenteralign" colspan="4">'.( ucfirst($pd_section_data[13]['estimated_uom']) ) .'</td></tr>'; // echo '<td class="tdcenteralign" colspan="4">'.( ucfirst($pd_section_data[13]['estimated_uom']) ) .'</td></tr>';
// } // }
} }
echo '<tr><td colspan="5" >Remarks</td><td class = "tdcenteralign" colspan="12">'.$pd_section_data[9]['common_remarks'].'</td></tr>';
} }
else//if no count else//if no count
{ {