inf fixes in report : ps

This commit is contained in:
VE10-Sanjeev 2023-07-12 14:52:39 +05:30
parent 9847b68f68
commit 3047a99b3a

View File

@ -224,7 +224,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
</tr>
<tr>
<td colspan="3"> Name of the Company/Firm</td>
<td colspan="3"> Name of the Company/Firm.<?php echo $applicant_details[0]['company_name']; ?></td>
<td class = "tdcenteralign" colspan="7"> <?php echo isset($applicant_details[0]['company_name']) && (strlen($applicant_details[0]['company_name']) != 0) ? $applicant_details[0]['company_name'] : $pd_master_details[0]['main_applicant']?></td>
</tr>
@ -925,7 +925,7 @@ $business_pd_visited_remark = (isset($pd_section_data[8]['business_pd_visited_re
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">'.($fy_value['net_profit_sales_percent'] != '' ? $fy_value['net_profit_sales_percent'] : '-').'</td>';
echo '<td colspan="1" class="tdcenteralign">'.($fy_value['net_profit_sales_percent'] != '' ? ($fy_value['net_profit_sales_percent'] == 'inf' ? '0' : $fy_value['net_profit_sales_percent']) : '-').'</td>';
}
}
?>
@ -1020,7 +1020,7 @@ $business_pd_visited_remark = (isset($pd_section_data[8]['business_pd_visited_re
{
if(is_numeric($fy_key))
{
echo '<td colspan="1" class="tdcenteralign">'.($fy_value['debtor_days_cet'] != '' ? number_format($fy_value['debtor_days_cet'],2,'.','') : '-') .'</td>';
echo '<td colspan="1" class="tdcenteralign">'.($fy_value['debtor_days_cet'] != '' ? ( $fy_value['debtor_days_cet'] == '#DIV/0!' ? '-' : number_format($fy_value['debtor_days_cet'],2,'.','')) : '-') .'</td>';
}
}
?>
@ -1033,7 +1033,7 @@ $business_pd_visited_remark = (isset($pd_section_data[8]['business_pd_visited_re
{
if(is_numeric($fy_key))
{
echo '<td colspan="1" class="tdcenteralign">'.($fy_value['creditor_days_cet'] != '' ? number_format($fy_value['creditor_days_cet'],2,'.','') : '-') .'</td>';
echo '<td colspan="1" class="tdcenteralign">'.($fy_value['creditor_days_cet'] != '' ? ($fy_value['creditor_days_cet'] == '#DIV/0!' ? '-' : number_format($fy_value['creditor_days_cet'],2,'.','') ) : '-') .'</td>';
}
}
?>
@ -1046,7 +1046,7 @@ $business_pd_visited_remark = (isset($pd_section_data[8]['business_pd_visited_re
{
if(is_numeric($fy_key))
{
echo '<td colspan="1" class="tdcenteralign">'.( $fy_value['inventory_days_cet'] != '' ? number_format($fy_value['inventory_days_cet'],2,'.','') : '-') .'</td>';
echo '<td colspan="1" class="tdcenteralign">'.( $fy_value['inventory_days_cet'] != '' ? ( $fy_value['inventory_days_cet'] == '#DIV/0!' ? '-' : number_format($fy_value['inventory_days_cet'],2,'.','') ) : '-') .'</td>';
}
}
?>
@ -1061,7 +1061,7 @@ $business_pd_visited_remark = (isset($pd_section_data[8]['business_pd_visited_re
<table class="scorecard_table">
<tbody>
<?php echo '<tr> <td>Sales / Revenue ('.$rupee_symbol.') </td><td class="tdcenteralign">'.(isset($pd_section_data[10]['sales_amount']) && $pd_section_data[10]['sales_amount'] != '' ? $rupee_symbol.' '. MYUTIL::customIndianNumberFormat($pd_section_data[10]['sales_amount']) : '-') .'</td> </tr>'?>
<?php echo '<tr> <td>Net Profit or (Net Loss) to Sales % </td><td class="tdcenteralign">'. ( isset($pd_section_data[10]['net_profit_to_sales_percent']) && $pd_section_data[10]['net_profit_to_sales_percent'] != ''? $pd_section_data[10]['net_profit_to_sales_percent'] : '-').'</td> </tr>'?>
<!-- <?php echo '<tr> <td>Net Profit or (Net Loss) to Sales % </td><td class="tdcenteralign">'. ( isset($pd_section_data[10]['net_profit_to_sales_percent']) && $pd_section_data[10]['net_profit_to_sales_percent'] != ''? $pd_section_data[10]['net_profit_to_sales_percent'] : '-').'</td> </tr>'?> -->
<?php echo '<tr> <td>Net Profit / (Net Loss) ('.$rupee_symbol.') </td><td class="tdcenteralign">'.(isset($pd_section_data[10]['net_profit_rs']) && $pd_section_data[10]['net_profit_rs'] != '' ? $rupee_symbol.' '.MYUTIL::customIndianNumberFormat($pd_section_data[10]['net_profit_rs']) : '-') .'</td> </tr>'?>
</tbody>
@ -1319,7 +1319,7 @@ Business run by the applicant</td><td colspan="4"><?php echo $pd_section_data[1
<!-- <table class="scorecard_table">
<tr><th class="thlargefont" colspan="<?php echo (count($pd_section_data[15]['existing_loan_details']) + 1 )?>">Existing Loan Obligations</th></tr>
<tr><th class="thlargefont" colspan="<?php echo (count($pd_section_data[15]['existing_loan_details']) + 1 )?>">Existing Loan Obligations</th></tr>-
</table>
<br>
<table class="scorecard_table">