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');
- | Details of Key Stakeholders in the Business |
+ Details of Key Stakeholders in the Business |
| Name |
@@ -487,6 +487,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
Total Work Exp(Yrs) |
Previous Experience Details |
Started Business |
+ Name of the Company |
'.( isset ($section5_value['previous_experience_details']) && $section5_value['previous_experience_details'] ? $section5_value['previous_experience_details'] : 'NA' ).''.
''.$section5_value['started_biz'].' | '.
+ ''.( isset ($section5_value['company_name']) ? $section5_value['company_name'] : 'NA' ).' | '.
'';
}
@@ -559,19 +561,28 @@ defined('BASEPATH') OR exit('No direct script access allowed');
| General Business Information |
-
-
- | Business Entity Type |
- |
-
-
- | Business Activity |
- |
-
-
- | Area of Sale |
- |
+
+ $value) {
+ echo "".
+ "| Name of the Company | ".
+ "".$value['company_name']." | ".
+ "
";
+ echo "".
+ "| Business Entity Type | ".
+ "".$value['business_entity_type']." | ".
+ "
";
+ echo "".
+ "| Business Activity | ".
+ "".$value['select_business_activity_type']." | ".
+ "
";
+ echo "".
+ "| 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
- | 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 |
@@ -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 ' | '.( $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').' |
';
+ 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']) ? $b_asset['company_name'] : 'NA').' |
';
}
?>
@@ -1086,6 +1111,7 @@ $business_pd_visited_remark = (isset($pd_section_data[8]['business_pd_visited_re
+
+
- | Details of Stock Sighted during the PD visit |
+ Details of Stock Sighted during the PD visit |
@@ -1155,6 +1182,7 @@ if(isset($pd_section_data[12]['common_remarks']) && !empty($pd_section_data[12][
| Stock Item |
Approx Stock Value () |
Approx Stock Quantity |
+ Name of the Company |
'.$section13_value['stock_type'].''.
''.$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').' | '.'';
}
if(isset($pd_section_data[13]['estimated_uom']))
{
- echo '| Does stock sighted justify the business operations ? (Yes / No) | ';
- echo ''.( ucfirst($pd_section_data[13]['estimated_uom']) ) .' |
';
+ echo '| Does stock sighted justify the business operations ? (Yes / No) | ';
+ echo ''.( ucfirst($pd_section_data[13]['estimated_uom']) ) .' |
';
}
}
else if(isset($pd_section_data[13]['stock_not_available_reason']) && $pd_section_data[13]['stock_not_available_reason'] != '')
{
- echo '| Stock Information Not available. Reason - '.$pd_section_data[13]['stock_not_available_reason'] .' |
';
+ echo '| Stock Information Not available. Reason - '.$pd_section_data[13]['stock_not_available_reason'] .' |
';
}
else
{
- echo '| Stock Information Not available. |
';
+ echo '| Stock Information Not available. |
';
}
if(isset($pd_section_data[13]['common_remarks']) && !empty($pd_section_data[13]['common_remarks'])){
- echo '| Remarks - '.$pd_section_data[13]['common_remarks'] .' |
';}
+ echo '| Remarks - '.$pd_section_data[13]['common_remarks'] .' |
';}
?>