Company name changes : ps
This commit is contained in:
parent
0813a1cac9
commit
2c11fd6803
@ -242,6 +242,7 @@ class smc_creditpd
|
||||
$siz_row = '<tr>'.'<td> Payment Mode </td>';
|
||||
$seven_row = '<tr>'.'<td> No of days credit </td>';
|
||||
$eigth_row = '<tr>'.'<td>Total purchase done on credit </td>';
|
||||
$ninth_row = '<tr>'.'<td>Name of the Company</td>';
|
||||
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 .= '<td style="text-align:center;"> '. (isset($value['payment_mode']) ? $value['payment_mode'] : 'NA') .' </td>';
|
||||
$seven_row .= '<td style="text-align:center;"> '. (isset($value['credit_period_no']) ? $value['credit_period_no'] : 'NA') .' </td>';
|
||||
$eigth_row .= '<td style="text-align:center;"> '. (isset($value['credit_total_purchase']) ? $value['credit_total_purchase'].'%' : 'NA') .' </td>';
|
||||
$ninth_row .= '<td style="text-align:center;"> '. (isset($value['company_name']) ? $value['company_name']: 'NA') .' </td>';
|
||||
}
|
||||
$header_row .= '</tr>';
|
||||
$first_row .= '</tr>';
|
||||
@ -267,8 +269,9 @@ class smc_creditpd
|
||||
$siz_row .= '</tr>';
|
||||
$seven_row .= '</tr>';
|
||||
$eigth_row .= '</tr>';
|
||||
$ninth_row .= '</tr>';
|
||||
|
||||
$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 = '<tr>'.'<td> Payment Mode </td>';
|
||||
$seven_row = '<tr>'.'<td> No of days credit </td>';
|
||||
$eight_row = '<tr>'.'<td>Total sales done on credit</td>';
|
||||
$ninth_row = '<tr>'.'<td>Name of the Company</td>';
|
||||
|
||||
foreach ($json['client_details'] as $key => $value)
|
||||
{
|
||||
@ -304,6 +308,7 @@ class smc_creditpd
|
||||
$siz_row .= '<td style="text-align:center;"> '. (isset($value['payment_mode']) ? $value['payment_mode'] : 'NA') .' </td>';
|
||||
$seven_row .= '<td style="text-align:center;"> '. (isset($value['credit_period_no']) ? $value['credit_period_no'] : 'NA') .' </td>';
|
||||
$eight_row .= '<td style="text-align:center;"> '. (isset($value['credit_total_purchase']) ? $value['credit_total_purchase'].'%' : 'NA') .' </td>';
|
||||
$ninth_row .= '<td style="text-align:center;"> '. (isset($value['company_name']) ? $value['company_name']: 'NA') .' </td>';
|
||||
|
||||
}
|
||||
|
||||
@ -316,8 +321,8 @@ class smc_creditpd
|
||||
$siz_row .= '</tr>';
|
||||
$seven_row .= '</tr>';
|
||||
$eight_row .= '</tr>';
|
||||
|
||||
$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 .= '</tr>';
|
||||
$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;
|
||||
}
|
||||
|
||||
@ -478,7 +478,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
<table class="scorecard_table" style="table-layout: fixed">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th class="thlargefont" colspan="15">Details of Key Stakeholders in the Business</th>
|
||||
<th class="thlargefont" colspan="17">Details of Key Stakeholders in the Business</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan="3">Name</th>
|
||||
@ -487,6 +487,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
<th colspan="2">Total Work Exp(Yrs)</th>
|
||||
<th colspan="4" >Previous Experience Details</th>
|
||||
<th colspan="2" >Started Business</th>
|
||||
<th colspan="2">Name of the Company</th>
|
||||
</tr>
|
||||
<?php
|
||||
if(isset($pd_section_data[5]))
|
||||
@ -501,6 +502,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
'<td class="tdcenteralign" colspan="4">'.( isset ($section5_value['previous_experience_details']) && $section5_value['previous_experience_details'] ? $section5_value['previous_experience_details'] : 'NA' ).'</td>'.
|
||||
'<td class="tdcenteralign" colspan="2" style="text-align: center">'.$section5_value['started_biz'].'</td>'.
|
||||
'<td class="tdcenteralign" colspan="2">'.( isset ($section5_value['company_name']) ? $section5_value['company_name'] : 'NA' ).'</td>'.
|
||||
'</tr>';
|
||||
}
|
||||
|
||||
@ -559,19 +561,28 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
<tbody>
|
||||
<tr>
|
||||
<th class="thlargefont" colspan="8">General Business Information</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="4" >Business Entity Type</td>
|
||||
<td colspan="4" ><?php echo $pd_section_data[4]['business_entity_type'] ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="4" >Business Activity</td>
|
||||
<td colspan="4" ><?php echo $pd_section_data[4]['select_business_activity_type'] ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="4" >Area of Sale</td>
|
||||
<td colspan="4" ><?php echo $pd_section_data[4]['area_of_sale'] ?></td>
|
||||
</tr>
|
||||
<!-- <?php print_r($pd_section_data[4]); ?> -->
|
||||
<?php if(isset($pd_section_data[4]['business_entity']) && is_array($pd_section_data[4]['business_entity']) && count($pd_section_data[4]['business_entity'])) {
|
||||
foreach ($pd_section_data[4]['business_entity'] as $key => $value) {
|
||||
echo "<tr>".
|
||||
"<th colspan='4' >Name of the Company</th>".
|
||||
"<th colspan='4' >".$value['company_name']."</th>".
|
||||
"</tr>";
|
||||
echo "<tr>".
|
||||
"<td colspan='4' >Business Entity Type</td>".
|
||||
"<td colspan='4' >".$value['business_entity_type']."</td>".
|
||||
"</tr>";
|
||||
echo "<tr>".
|
||||
"<td colspan='4' >Business Activity</td>".
|
||||
"<td colspan='4' >".$value['select_business_activity_type']."</td>".
|
||||
"</tr>";
|
||||
echo "<tr>".
|
||||
"<td colspan='4' >Area of Sale</td>".
|
||||
"<td colspan='4' >".$value['area_of_sale']."</td>".
|
||||
"</tr>";
|
||||
}
|
||||
} ?>
|
||||
</tbody></table>
|
||||
|
||||
<br>
|
||||
@ -583,7 +594,8 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
<tr>
|
||||
<th colspan="3">Product/Service Name</th>
|
||||
<th colspan="2">Contribution Business Product</th>
|
||||
<th colspan="5">Remarks</th>
|
||||
<th colspan="2">Name of the Company</th>
|
||||
<th colspan="3">Remarks</th>
|
||||
</tr>
|
||||
<?php
|
||||
// print_r($pd_section_data[6]);
|
||||
@ -595,7 +607,8 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
// print_r($section6_value);
|
||||
echo '<tr><td class="tdcenteralign" colspan="3">'.$section6_value['product_name'] .'</td>'.
|
||||
'<td class="tdcenteralign" colspan="2">'.$section6_value['contribution_business_product'].'%</td>'.
|
||||
'<td class="tdcenteralign" colspan="5">'.$section6_value['remarks'].'</td>'.'</tr>';
|
||||
'<td class="tdcenteralign" colspan="2">'.$section6_value['company_name'].'</td>'.
|
||||
'<td class="tdcenteralign" colspan="3">'.$section6_value['remarks'].'</td>'.'</tr>';
|
||||
// '<td class="tdcenteralign" colspan="2">'.$section5_value['total_work_exp'].'</td>'.
|
||||
|
||||
// '<td class="tdcenteralign" colspan="2">'.( isset ($section5_value['previous_experience_details']) && $section5_value['previous_experience_details'] ? $section5_value['previous_experience_details'] : 'NA' ).'</td>'.
|
||||
@ -679,21 +692,34 @@ $business_pd_visited_remark = (isset($pd_section_data[8]['business_pd_visited_re
|
||||
<th class="thlargefont" colspan="16">Seasonality of the Business</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="4" >Business Seasonal (Yes / No)</td>
|
||||
<td colspan="4" ><?php echo $pd_section_data[4]['seasonality'] ?></td>
|
||||
<td colspan="4" >If Seasonal Please mention the Lean Months</td>
|
||||
<?php $low_month = '';if(isset($pd_section_data[4]['low_sale_month']) && is_array($pd_section_data[4]['low_sale_month']) && count($pd_section_data[4]['low_sale_month'])){foreach($pd_section_data[4]['low_sale_month'] as $low){ $low_month .= $low.' ,';}}
|
||||
if($low_month != ''){$low_month = substr_replace($low_month, '', -1);}else{$low_month = '-';}
|
||||
?>
|
||||
<td colspan="4" ><?php echo $low_month ?></td>
|
||||
</tr>
|
||||
<?php if(isset($pd_section_data[4]['low_sale_month_reason'])){?>
|
||||
<tr>
|
||||
<td colspan="4" >Reason</td>
|
||||
<td colspan="12" ><?php echo $pd_section_data[4]['low_sale_month_reason'] ?></td>
|
||||
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php if(isset($pd_section_data[4]['business_entity']) && is_array($pd_section_data[4]['business_entity']) && count($pd_section_data[4]['business_entity'])) {
|
||||
foreach ($pd_section_data[4]['business_entity'] as $key => $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 "<tr>".
|
||||
"<th colspan='4' >Name of the Company</th>".
|
||||
"<th colspan='4' >".$value['company_name']."</th>".
|
||||
"</tr>";
|
||||
echo "<tr>".
|
||||
"<td colspan='4' >Business Seasonal (Yes / No)</td>".
|
||||
"<td colspan='4' >".$value['seasonality']."</td>".
|
||||
"</tr>";
|
||||
echo "<tr>".
|
||||
"<td colspan='4' >If Seasonal Please mention the Lean Months</td>".
|
||||
"<td colspan='4' >".$low_month."</td>".
|
||||
"</tr>";}
|
||||
if(isset($value['low_sale_month_reason'])){
|
||||
echo "<tr>".
|
||||
"<td colspan='4' >Reason</td>".
|
||||
"<td colspan='4' >".$value['low_sale_month_reason']."</td>".
|
||||
"</tr>";}
|
||||
}
|
||||
?>
|
||||
<?php if(isset($pd_section_data[4]['common_remarks']) && !empty($pd_section_data[4]['common_remarks']))
|
||||
{
|
||||
echo '<tr> <td class = "tdcenteralign" colspan="8">Remarks - '.$pd_section_data[4]['common_remarks'].' </td></tr>';
|
||||
}?>
|
||||
</tbody></table>
|
||||
|
||||
|
||||
@ -730,14 +756,14 @@ $business_pd_visited_remark = (isset($pd_section_data[8]['business_pd_visited_re
|
||||
<div id="page_break"> </div>
|
||||
<table class="scorecard_table">
|
||||
|
||||
<thead><tr><th class="thlargefont" colspan="10">Business Assets</th></tr>
|
||||
<thead><tr><th class="thlargefont" colspan="11">Business Assets</th></tr>
|
||||
<!-- </table>
|
||||
<table class="scorecard_table"> -->
|
||||
|
||||
<?php if(isset($pd_section_data[8]['business_assets_details']) && is_array($pd_section_data[8]['business_assets_details']) && count($pd_section_data[8]['business_assets_details'])){?>
|
||||
|
||||
|
||||
<tr> <th colspan="2">Asset Type</th> <th colspan="3">Asset Description</th> <th colspan="1">Asset Ownership</th> <th colspan="1">Owner's Name</th> <th colspan="1">Market Value</th> <th colspan="1">Age of the Asset (Yrs)</th> <th colspan="1">Loan Agst Asset (Yes/ No)</th> </tr>
|
||||
<tr> <th colspan="2">Asset Type</th> <th colspan="3">Asset Description</th> <th colspan="1">Asset Ownership</th> <th colspan="1">Owner's Name</th> <th colspan="1">Market Value</th> <th colspan="1">Age of the Asset (Yrs)</th> <th colspan="1">Loan Agst Asset (Yes/ No)</th><th colspan="1">Name of the Company</th> </tr>
|
||||
|
||||
</thead>
|
||||
<tbody>
|
||||
@ -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 '<tr> <td colspan="2">'.( $b_asset['business_assets_mode'] == 1 ? $b_asset['other_asset_description'] : $asset_type [ $b_asset['business_assets_mode'] ]).'</td> <td colspan="3"> '. $description .'</td> <td colspan="1">'. $business_ownership_type .'</td> <td colspan="1">'. $business_name_of_the_owner .'</td> <td colspan="1">'.(isset($b_asset['business_approximate_market_value']) ? ( $rupee_symbol .' '. MYUTIL::customIndianNumberFormat($b_asset['business_approximate_market_value'])) : 'NA').'</td> <td>'.(isset($b_asset['business_purchase_year']) ? $b_asset['business_purchase_year'] : 'NA').'</td><td colspan="1">'.(isset($b_asset['business_emi']) ? $b_asset['business_emi'] : 'NA').'</td></tr>';
|
||||
echo '<tr> <td colspan="2">'.( $b_asset['business_assets_mode'] == 1 ? $b_asset['other_asset_description'] : $asset_type [ $b_asset['business_assets_mode'] ]).'</td> <td colspan="3"> '. $description .'</td> <td colspan="1">'. $business_ownership_type .'</td> <td colspan="1">'. $business_name_of_the_owner .'</td> <td colspan="1">'.(isset($b_asset['business_approximate_market_value']) ? ( $rupee_symbol .' '. MYUTIL::customIndianNumberFormat($b_asset['business_approximate_market_value'])) : 'NA').'</td> <td>'.(isset($b_asset['business_purchase_year']) ? $b_asset['business_purchase_year'] : 'NA').'</td><td colspan="1">'.(isset($b_asset['business_emi']) ? $b_asset['business_emi'] : 'NA').'</td><td colspan="1">'.(isset($b_asset['company_name']) ? $b_asset['company_name'] : 'NA').'</td></tr>';
|
||||
}
|
||||
?>
|
||||
|
||||
@ -1086,6 +1111,7 @@ $business_pd_visited_remark = (isset($pd_section_data[8]['business_pd_visited_re
|
||||
<?php echo $pd_section_data[11]['display_data']['siz_row']?>
|
||||
<?php echo $pd_section_data[11]['display_data']['seven_row']?>
|
||||
<?php echo $pd_section_data[11]['display_data']['eigth_row']?>
|
||||
<?php echo $pd_section_data[11]['display_data']['ninth_row']?>
|
||||
|
||||
|
||||
<?php }
|
||||
@ -1125,6 +1151,7 @@ if(isset($pd_section_data[11]['common_remarks']) && !empty($pd_section_data[11][
|
||||
<?php echo $pd_section_data[12]['display_data']['siz_row']?>
|
||||
<?php echo $pd_section_data[12]['display_data']['seven_row']?>
|
||||
<?php echo $pd_section_data[12]['display_data']['eight_row']?>
|
||||
<?php echo $pd_section_data[12]['display_data']['ninth_row']?>
|
||||
</tbody>
|
||||
<?php }
|
||||
|
||||
@ -1146,7 +1173,7 @@ if(isset($pd_section_data[12]['common_remarks']) && !empty($pd_section_data[12][
|
||||
|
||||
<tbody>
|
||||
<tr>
|
||||
<th class="thlargefont" colspan="8">Details of Stock Sighted during the PD visit</th>
|
||||
<th class="thlargefont" colspan="10">Details of Stock Sighted during the PD visit</th>
|
||||
</tr>
|
||||
<?php if(isset($pd_section_data[13]['stock_details']) && is_array($pd_section_data[13]['stock_details']) && count($pd_section_data[13]['stock_details']) ){?>
|
||||
<tr>
|
||||
@ -1155,6 +1182,7 @@ if(isset($pd_section_data[12]['common_remarks']) && !empty($pd_section_data[12][
|
||||
<th colspan="3">Stock Item</th>
|
||||
<th colspan="2">Approx Stock Value (<?php echo $rupee_symbol?>)</th>
|
||||
<th colspan="1">Approx Stock Quantity</th>
|
||||
<th colspan="2">Name of the Company</th>
|
||||
</tr>
|
||||
<?php
|
||||
|
||||
@ -1166,27 +1194,29 @@ if(isset($pd_section_data[12]['common_remarks']) && !empty($pd_section_data[12][
|
||||
'<td class="tdcenteralign" colspan="1">'.$section13_value['stock_type'].'</td>'.
|
||||
'<td class="tdcenteralign" colspan="3">'.$section13_value['provider_name'].'</td>'.
|
||||
'<td class="tdcenteralign" colspan="2">'.(isset($section13_value['estimated_stock_value']) ? $rupee_symbol.''.MYUTIL::customIndianNumberFormat($section13_value['estimated_stock_value']) : 'NA').'</td>'.
|
||||
'<td class="tdcenteralign" colspan="1">'.(isset($section13_value['estimated_quantity']) ? $section13_value['estimated_quantity'].' '.$section13_value['estimated_uom'] : 'NA').'</td>'.'</tr>';
|
||||
'<td class="tdcenteralign" colspan="1">'.(isset($section13_value['estimated_quantity']) ? $section13_value['estimated_quantity'].' '.$section13_value['estimated_uom'] : 'NA').'</td>'.
|
||||
'<td class="tdcenteralign" colspan="2">'.(isset($section13_value['company_name']) ? $section13_value['company_name'] : 'NA').'</td>'.'</tr>';
|
||||
// '<td class="tdcenteralign" colspan="1">'.(isset($section13_value['company_name']) ? MYUTIL::getCompanyNameById($section13_value['company_name']) : 'NA').'</td>'.'</tr>';
|
||||
|
||||
|
||||
}
|
||||
if(isset($pd_section_data[13]['estimated_uom']))
|
||||
{
|
||||
|
||||
echo '<tr><td class="tdcenteralign" colspan="4">Does stock sighted justify the business operations ? (Yes / No)</td>';
|
||||
echo '<td class="tdcenteralign" colspan="4">'.( ucfirst($pd_section_data[13]['estimated_uom']) ) .'</td></tr>';
|
||||
echo '<tr><td class="tdcenteralign" colspan="5">Does stock sighted justify the business operations ? (Yes / No)</td>';
|
||||
echo '<td class="tdcenteralign" colspan="5">'.( ucfirst($pd_section_data[13]['estimated_uom']) ) .'</td></tr>';
|
||||
}
|
||||
}
|
||||
else if(isset($pd_section_data[13]['stock_not_available_reason']) && $pd_section_data[13]['stock_not_available_reason'] != '')
|
||||
{
|
||||
echo '<tr><td class="tdcenteralign" colspan="8">Stock Information Not available. Reason - '.$pd_section_data[13]['stock_not_available_reason'] .'</td></tr>';
|
||||
echo '<tr><td class="tdcenteralign" colspan="10">Stock Information Not available. Reason - '.$pd_section_data[13]['stock_not_available_reason'] .'</td></tr>';
|
||||
}
|
||||
else
|
||||
{
|
||||
echo '<tr><td class="tdcenteralign" colspan="8">Stock Information Not available.</td></tr>';
|
||||
echo '<tr><td class="tdcenteralign" colspan="10">Stock Information Not available.</td></tr>';
|
||||
}
|
||||
if(isset($pd_section_data[13]['common_remarks']) && !empty($pd_section_data[13]['common_remarks'])){
|
||||
echo '<tr><td class="tdcenteralign" colspan="8">Remarks - '.$pd_section_data[13]['common_remarks'] .'</td></tr>';}
|
||||
echo '<tr><td class="tdcenteralign" colspan="10">Remarks - '.$pd_section_data[13]['common_remarks'] .'</td></tr>';}
|
||||
|
||||
|
||||
?>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user