diff --git a/api/application/views/smc_creditpd_reports/MWISE.php b/api/application/views/smc_creditpd_reports/MWISE.php index f945fc45..6bb61882 100644 --- a/api/application/views/smc_creditpd_reports/MWISE.php +++ b/api/application/views/smc_creditpd_reports/MWISE.php @@ -829,8 +829,9 @@ $business_pd_visited_remark = (isset($pd_section_data[8]['business_pd_visited_re $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'); $business_name_of_the_owner = (($business_name_of_the_owner == '' ) ? $b_asset['business_owner_name'] : $business_name_of_the_owner); - - echo ' '.( $b_asset['business_assets_mode'] == 1 ? $b_asset['other_asset_description'] : $asset_type [ $b_asset['business_assets_mode'] ]).' '. $description .' '. $business_ownership_type .' '. $business_name_of_the_owner .' '.(isset($b_asset['business_approximate_market_value']) ? ( $rupee_symbol .' '. MYUTIL::customIndianNumberFormat($b_asset['business_approximate_market_value'])) : 'NA').' '.(isset($b_asset['business_purchase_year']) ? $b_asset['business_purchase_year'] : 'NA').''.(isset($b_asset['business_emi']) ? $b_asset['business_emi'] : 'NA').''.(isset($b_asset['company_name']) ? $company[$b_asset['company_name']] : 'NA').''; + $business_name_of_the_company = (isset($b_asset['company_name']) ? ((gettype($b_asset['company_name']) == 'integer') ? $company[$b_asset['company_name']] : $b_asset['company_name']) : 'NA'); + + echo ' '.( $b_asset['business_assets_mode'] == 1 ? $b_asset['other_asset_description'] : $asset_type [ $b_asset['business_assets_mode'] ]).' '. $description .' '. $business_ownership_type .' '. $business_name_of_the_owner .' '.(isset($b_asset['business_approximate_market_value']) ? ( $rupee_symbol .' '. MYUTIL::customIndianNumberFormat($b_asset['business_approximate_market_value'])) : 'NA').' '.(isset($b_asset['business_purchase_year']) ? $b_asset['business_purchase_year'] : 'NA').''.(isset($b_asset['business_emi']) ? $b_asset['business_emi'] : 'NA').''.$business_name_of_the_company.''; } ?>