From 2c11fd68038b0328638e634c6975b53049e73abf Mon Sep 17 00:00:00 2001 From: Sanjeev Date: Tue, 27 Apr 2021 18:00:50 +0530 Subject: [PATCH] Company name changes : ps --- .../helpers/smc_creditpd_helper.php | 11 +- .../views/smc_creditpd_reports/MWISE.php | 112 +++++++++++------- 2 files changed, 79 insertions(+), 44 deletions(-) diff --git a/api/application/helpers/smc_creditpd_helper.php b/api/application/helpers/smc_creditpd_helper.php index 1cd57ee0..bbd53a8f 100644 --- a/api/application/helpers/smc_creditpd_helper.php +++ b/api/application/helpers/smc_creditpd_helper.php @@ -242,6 +242,7 @@ class smc_creditpd $siz_row = ''.' Payment Mode '; $seven_row = ''.' No of days credit '; $eigth_row = ''.'Total purchase done on credit '; + $ninth_row = ''.'Name of the Company'; if(isset($json['supplier_details']) && is_array($json['supplier_details']) && count($json['supplier_details'])) { foreach ($json['supplier_details'] as $key => $value) @@ -257,6 +258,7 @@ class smc_creditpd $siz_row .= ' '. (isset($value['payment_mode']) ? $value['payment_mode'] : 'NA') .' '; $seven_row .= ' '. (isset($value['credit_period_no']) ? $value['credit_period_no'] : 'NA') .' '; $eigth_row .= ' '. (isset($value['credit_total_purchase']) ? $value['credit_total_purchase'].'%' : 'NA') .' '; + $ninth_row .= ' '. (isset($value['company_name']) ? $value['company_name']: 'NA') .' '; } $header_row .= ''; $first_row .= ''; @@ -267,8 +269,9 @@ class smc_creditpd $siz_row .= ''; $seven_row .= ''; $eigth_row .= ''; + $ninth_row .= ''; - $json['display_data'] = array('header_row' => $header_row,'first_row' => $first_row,'second_row' => $second_row,'third_row' => $third_row,'fourth_row' => $fourth_row,'five_row' => $five_row,'siz_row' => $siz_row,'seven_row' => $seven_row,'eigth_row' => $eigth_row); + $json['display_data'] = array('header_row' => $header_row,'first_row' => $first_row,'second_row' => $second_row,'third_row' => $third_row,'fourth_row' => $fourth_row,'five_row' => $five_row,'siz_row' => $siz_row,'seven_row' => $seven_row,'eigth_row' => $eigth_row,'ninth_row'=>$ninth_row); } return $json; } @@ -290,6 +293,7 @@ class smc_creditpd $siz_row = ''.' Payment Mode '; $seven_row = ''.' No of days credit '; $eight_row = ''.'Total sales done on credit'; + $ninth_row = ''.'Name of the Company'; foreach ($json['client_details'] as $key => $value) { @@ -304,6 +308,7 @@ class smc_creditpd $siz_row .= ' '. (isset($value['payment_mode']) ? $value['payment_mode'] : 'NA') .' '; $seven_row .= ' '. (isset($value['credit_period_no']) ? $value['credit_period_no'] : 'NA') .' '; $eight_row .= ' '. (isset($value['credit_total_purchase']) ? $value['credit_total_purchase'].'%' : 'NA') .' '; + $ninth_row .= ' '. (isset($value['company_name']) ? $value['company_name']: 'NA') .' '; } @@ -316,8 +321,8 @@ class smc_creditpd $siz_row .= ''; $seven_row .= ''; $eight_row .= ''; - - $json['display_data'] = array('header_row' => $header_row,'first_row' => $first_row,'second_row' => $second_row,'third_row' => $third_row,'fourth_row' => $fourth_row,'five_row' => $five_row,'siz_row' => $siz_row,'seven_row' => $seven_row,'eight_row' => $eight_row); + $ninth_row .= ''; + $json['display_data'] = array('header_row' => $header_row,'first_row' => $first_row,'second_row' => $second_row,'third_row' => $third_row,'fourth_row' => $fourth_row,'five_row' => $five_row,'siz_row' => $siz_row,'seven_row' => $seven_row,'eight_row' => $eight_row,'ninth_row'=>$ninth_row); } return $json; } diff --git a/api/application/views/smc_creditpd_reports/MWISE.php b/api/application/views/smc_creditpd_reports/MWISE.php index abd1108d..36447612 100644 --- a/api/application/views/smc_creditpd_reports/MWISE.php +++ b/api/application/views/smc_creditpd_reports/MWISE.php @@ -478,7 +478,7 @@ defined('BASEPATH') OR exit('No direct script access allowed'); - + @@ -487,6 +487,7 @@ defined('BASEPATH') OR exit('No direct script access allowed'); + '.( isset ($section5_value['previous_experience_details']) && $section5_value['previous_experience_details'] ? $section5_value['previous_experience_details'] : 'NA' ).''. ''. + ''. ''; } @@ -559,19 +561,28 @@ defined('BASEPATH') OR exit('No direct script access allowed'); - - - - - - - - - - - - + + $value) { + echo "". + "". + "". + ""; + echo "". + "". + "". + ""; + echo "". + "". + "". + ""; + echo "". + "". + "". + ""; + } + } ?>
Details of Key Stakeholders in the BusinessDetails of Key Stakeholders in the Business
NameTotal Work Exp(Yrs) Previous Experience Details Started BusinessName of the Company
'.$section5_value['started_biz'].''.( isset ($section5_value['company_name']) ? $section5_value['company_name'] : 'NA' ).'
General Business Information
Business Entity Type
Business Activity
Area of Sale
Name of the Company".$value['company_name']."
Business Entity Type".$value['business_entity_type']."
Business Activity".$value['select_business_activity_type']."
Area of Sale".$value['area_of_sale']."

@@ -583,7 +594,8 @@ defined('BASEPATH') OR exit('No direct script access allowed'); Product/Service Name Contribution Business Product - Remarks + Name of the Company + Remarks '.$section6_value['product_name'] .''. ''.$section6_value['contribution_business_product'].'%'. - ''.$section6_value['remarks'].''.''; + ''.$section6_value['company_name'].''. + ''.$section6_value['remarks'].''.''; // ''.$section5_value['total_work_exp'].''. // ''.( isset ($section5_value['previous_experience_details']) && $section5_value['previous_experience_details'] ? $section5_value['previous_experience_details'] : 'NA' ).''. @@ -679,21 +692,34 @@ $business_pd_visited_remark = (isset($pd_section_data[8]['business_pd_visited_re Seasonality of the Business - Business Seasonal (Yes / No) - - If Seasonal Please mention the Lean Months - - - - - - Reason - - - - + $value) { + $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($low_month != ''){$low_month = substr_replace($low_month, '', -1);}else{$low_month = '-';} + echo "". + "Name of the Company". + "".$value['company_name']."". + ""; + echo "". + "Business Seasonal (Yes / No)". + "".$value['seasonality']."". + ""; + echo "". + "If Seasonal Please mention the Lean Months". + "".$low_month."". + "";} + if(isset($value['low_sale_month_reason'])){ + echo "". + "Reason". + "".$value['low_sale_month_reason']."". + "";} + } + ?> + Remarks - '.$pd_section_data[4]['common_remarks'].' '; + }?> @@ -730,14 +756,14 @@ $business_pd_visited_remark = (isset($pd_section_data[8]['business_pd_visited_re
- + - + @@ -781,8 +807,7 @@ $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'); - - echo ''; + echo ''; } ?> @@ -1086,6 +1111,7 @@ $business_pd_visited_remark = (isset($pd_section_data[8]['business_pd_visited_re + + - + @@ -1155,6 +1182,7 @@ if(isset($pd_section_data[12]['common_remarks']) && !empty($pd_section_data[12][ + '.$section13_value['stock_type'].''. ''. ''. - ''.''; + ''. + ''.''; + // ''.''; } if(isset($pd_section_data[13]['estimated_uom'])) { - echo ''; - echo ''; + echo ''; + echo ''; } } else if(isset($pd_section_data[13]['stock_not_available_reason']) && $pd_section_data[13]['stock_not_available_reason'] != '') { - echo ''; + echo ''; } else { - echo ''; + echo ''; } if(isset($pd_section_data[13]['common_remarks']) && !empty($pd_section_data[13]['common_remarks'])){ - echo '';} + echo '';} ?>
Business Assets
Business Assets
Asset Type Asset Description Asset Ownership Owner's Name Market Value Age of the Asset (Yrs) Loan Agst Asset (Yes/ No)
Asset Type Asset Description Asset Ownership Owner's Name Market Value Age of the Asset (Yrs) Loan Agst Asset (Yes/ No)Name of the Company
'.( $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').'
'.( $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']) ? $b_asset['company_name'] : 'NA').'
Details of Stock Sighted during the PD visitDetails of Stock Sighted during the PD visit
Stock Item Approx Stock Value () Approx Stock QuantityName of the Company
'.$section13_value['provider_name'].''.(isset($section13_value['estimated_stock_value']) ? $rupee_symbol.''.MYUTIL::customIndianNumberFormat($section13_value['estimated_stock_value']) : 'NA').''.(isset($section13_value['estimated_quantity']) ? $section13_value['estimated_quantity'].' '.$section13_value['estimated_uom'] : 'NA').'
'.(isset($section13_value['estimated_quantity']) ? $section13_value['estimated_quantity'].' '.$section13_value['estimated_uom'] : 'NA').''.(isset($section13_value['company_name']) ? $section13_value['company_name'] : 'NA').'
'.(isset($section13_value['company_name']) ? MYUTIL::getCompanyNameById($section13_value['company_name']) : 'NA').'
Does stock sighted justify the business operations ? (Yes / No)'.( ucfirst($pd_section_data[13]['estimated_uom']) ) .'
Does stock sighted justify the business operations ? (Yes / No)'.( ucfirst($pd_section_data[13]['estimated_uom']) ) .'
Stock Information Not available. Reason - '.$pd_section_data[13]['stock_not_available_reason'] .'
Stock Information Not available. Reason - '.$pd_section_data[13]['stock_not_available_reason'] .'
Stock Information Not available.
Stock Information Not available.
Remarks - '.$pd_section_data[13]['common_remarks'] .'
Remarks - '.$pd_section_data[13]['common_remarks'] .'