diff --git a/api/application/views/smc_creditpd_reports/MWISE.php b/api/application/views/smc_creditpd_reports/MWISE.php index 81986941..da6b782a 100644 --- a/api/application/views/smc_creditpd_reports/MWISE.php +++ b/api/application/views/smc_creditpd_reports/MWISE.php @@ -224,7 +224,7 @@ defined('BASEPATH') OR exit('No direct script access allowed'); - Name of the Company/Firm + Name of the Company/Firm. @@ -925,7 +925,7 @@ $business_pd_visited_remark = (isset($pd_section_data[8]['business_pd_visited_re if(is_numeric($fy_key)) { // echo ''.round((($fy_value['net_profit'] / $fy_value['sales_revenue'] ) * 100 ),2).'%'; - echo ''.($fy_value['net_profit_sales_percent'] != '' ? $fy_value['net_profit_sales_percent'] : '-').''; + echo ''.($fy_value['net_profit_sales_percent'] != '' ? ($fy_value['net_profit_sales_percent'] == 'inf' ? '0' : $fy_value['net_profit_sales_percent']) : '-').''; } } ?> @@ -1020,7 +1020,7 @@ $business_pd_visited_remark = (isset($pd_section_data[8]['business_pd_visited_re { if(is_numeric($fy_key)) { - echo ''.($fy_value['debtor_days_cet'] != '' ? number_format($fy_value['debtor_days_cet'],2,'.','') : '-') .''; + echo ''.($fy_value['debtor_days_cet'] != '' ? ( $fy_value['debtor_days_cet'] == '#DIV/0!' ? '-' : number_format($fy_value['debtor_days_cet'],2,'.','')) : '-') .''; } } ?> @@ -1033,7 +1033,7 @@ $business_pd_visited_remark = (isset($pd_section_data[8]['business_pd_visited_re { if(is_numeric($fy_key)) { - echo ''.($fy_value['creditor_days_cet'] != '' ? number_format($fy_value['creditor_days_cet'],2,'.','') : '-') .''; + echo ''.($fy_value['creditor_days_cet'] != '' ? ($fy_value['creditor_days_cet'] == '#DIV/0!' ? '-' : number_format($fy_value['creditor_days_cet'],2,'.','') ) : '-') .''; } } ?> @@ -1046,7 +1046,7 @@ $business_pd_visited_remark = (isset($pd_section_data[8]['business_pd_visited_re { if(is_numeric($fy_key)) { - echo ''.( $fy_value['inventory_days_cet'] != '' ? number_format($fy_value['inventory_days_cet'],2,'.','') : '-') .''; + echo ''.( $fy_value['inventory_days_cet'] != '' ? ( $fy_value['inventory_days_cet'] == '#DIV/0!' ? '-' : number_format($fy_value['inventory_days_cet'],2,'.','') ) : '-') .''; } } ?> @@ -1061,7 +1061,7 @@ $business_pd_visited_remark = (isset($pd_section_data[8]['business_pd_visited_re '?> - '?> + '?> @@ -1319,7 +1319,7 @@ Business run by the applicant + -
Sales / Revenue ('.$rupee_symbol.') '.(isset($pd_section_data[10]['sales_amount']) && $pd_section_data[10]['sales_amount'] != '' ? $rupee_symbol.' '. MYUTIL::customIndianNumberFormat($pd_section_data[10]['sales_amount']) : '-') .'
Net Profit or (Net Loss) to Sales % '. ( 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'] : '-').'
Net Profit / (Net Loss) ('.$rupee_symbol.') '.(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']) : '-') .'
-
Existing Loan Obligations
Existing Loan Obligations