SMC REPORT 3
This commit is contained in:
parent
ca4e080793
commit
cb53596dad
@ -14,7 +14,7 @@ class applicantname_grabber
|
||||
$joins = array(
|
||||
array('table' => TITLES. ' as TITLES',
|
||||
'condition' =>"PDAPPLICANTSDETAILS.applicant_title_name = TITLES.title_id AND PDAPPLICANTSDETAILS.fk_pd_id = $pd_id",
|
||||
'jointype' => 'INNER')
|
||||
'jointype' => 'LEFT')
|
||||
);
|
||||
|
||||
return ( $CI->PD_Model->getJoinRecords($columns,$table,$joins));
|
||||
|
||||
@ -97,6 +97,7 @@ class readexceldata
|
||||
if(isset($tmp['parent_key']))
|
||||
{
|
||||
$trimedData = SELF::trimExcelEmptyCells($value);
|
||||
// $trimedData = ($value);
|
||||
$temp[$tmp['parent_key']][$tmp['key_name']] = SELF::getMultipleCellValues($trimedData,$tmp['key_name']);
|
||||
$keys[$tmp['parent_key']][] = $tmp['key_name'];
|
||||
$return_data = $temp;
|
||||
@ -117,9 +118,9 @@ class readexceldata
|
||||
$return_data['financial_info'] = array_reverse($return_data['financial_info']);
|
||||
|
||||
$return_data['broken_period_turnover_percent'] = SELF::getNumFormat($return_data['broken_period_turnover_percent'],'per');
|
||||
$return_data['net_profit_to_sales_percent'] = SELF::getNumFormat($return_data['net_profit_to_sales_percent'],'per');
|
||||
$return_data['net_profit_rs'] = SELF::getNumFormat($return_data['net_profit_rs']);
|
||||
$return_data['sales_amount'] = SELF::getNumFormat($return_data['net_profit_rs']);
|
||||
// $return_data['net_profit_to_sales_percent'] = SELF::getNumFormat($return_data['net_profit_to_sales_percent'],'per');
|
||||
// $return_data['net_profit_rs'] = SELF::getNumFormat($return_data['net_profit_rs']);
|
||||
// $return_data['sales_amount'] = SELF::getNumFormat($return_data['sales_amount']);
|
||||
$return_data['broken_period_turnover_cy'] = SELF::getNumFormat($return_data['broken_period_turnover_cy']);
|
||||
$return_data['broken_period_turnover_py'] = SELF::getNumFormat($return_data['broken_period_turnover_py']);
|
||||
|
||||
|
||||
@ -166,6 +166,7 @@ class smc_creditpd
|
||||
$five_row = '<tr>'.'<td> Payment Terms </td>';
|
||||
$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>';
|
||||
if(isset($json['supplier_details']) && is_array($json['supplier_details']) && count($json['supplier_details']))
|
||||
{
|
||||
foreach ($json['supplier_details'] as $key => $value)
|
||||
@ -174,12 +175,13 @@ class smc_creditpd
|
||||
$header_row .= '<th>Supplier '.$value['supplier_name'].'</th>';
|
||||
$first_row .= '<td style="text-align:center;">'. $value['provider_name'] .'</td>';
|
||||
$second_row .= '<td style="text-align:center;">'. $value['contact_person_name'] .'</td>';
|
||||
$third_row .= '<td style="text-align:center;"> '. $value['contact_person_mobile_no'] .' </td>';
|
||||
$third_row .= '<td style="text-align:center;"> '. (empty($value['contact_person_mobile_no']) ? '-':$value['contact_person_mobile_no']) .' </td>';
|
||||
// $business_name_of_the_owner = (isset($value['business_name_of_the_owner']) ? (applicantname_grabber::getApplicantsNameById($value['business_name_of_the_owner'],$applicant_details)): 'NA');
|
||||
$fourth_row .= '<td style="text-align:center;"> '. $value['person_stdcode'].' - '.$value['person_landline'] .' </td>';
|
||||
$five_row .= '<td style="text-align:center;"> '. (isset($value['payment_type']) ? $payment_term [ $value['payment_type'] ]: 'NA') .' </td>';
|
||||
$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>';
|
||||
}
|
||||
$header_row .= '</tr>';
|
||||
$first_row .= '</tr>';
|
||||
@ -189,8 +191,9 @@ class smc_creditpd
|
||||
$five_row .= '</tr>';
|
||||
$siz_row .= '</tr>';
|
||||
$seven_row .= '</tr>';
|
||||
$eigth_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);
|
||||
$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);
|
||||
}
|
||||
return $json;
|
||||
}
|
||||
@ -211,6 +214,7 @@ class smc_creditpd
|
||||
$five_row = '<tr>'.'<td> Payment Terms </td>';
|
||||
$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>';
|
||||
|
||||
foreach ($json['client_details'] as $key => $value)
|
||||
{
|
||||
@ -218,12 +222,14 @@ class smc_creditpd
|
||||
$header_row .= '<th>Client '.$value['client_name'].'</th>';
|
||||
$first_row .= '<td style="text-align:center;">'. $value['provider_name'] .'</td>';
|
||||
$second_row .= '<td style="text-align:center;">'. $value['contact_person_name'] .'</td>';
|
||||
$third_row .= '<td style="text-align:center;"> '. $value['contact_person_mobile_no'] .' </td>';
|
||||
$third_row .= '<td style="text-align:center;"> '. (empty($value['contact_person_mobile_no']) ? '-':$value['contact_person_mobile_no']) .' </td>';
|
||||
// $business_name_of_the_owner = (isset($value['business_name_of_the_owner']) ? (applicantname_grabber::getApplicantsNameById($value['business_name_of_the_owner'],$applicant_details)): 'NA');
|
||||
$fourth_row .= '<td style="text-align:center;"> '. $value['person_stdcode'].' - '.$value['person_landline'] .' </td>';
|
||||
$five_row .= '<td style="text-align:center;"> '. (isset($value['payment_type']) ? $payment_term [ $value['payment_type'] ]: 'NA') .' </td>';
|
||||
$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>';
|
||||
|
||||
}
|
||||
|
||||
$header_row .= '</tr>';
|
||||
@ -234,8 +240,9 @@ class smc_creditpd
|
||||
$five_row .= '</tr>';
|
||||
$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);
|
||||
$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);
|
||||
}
|
||||
return $json;
|
||||
}
|
||||
@ -317,6 +324,7 @@ class smc_creditpd
|
||||
static function getNeibourSectionData($section)
|
||||
{
|
||||
$json = json_decode($section['json'],true);
|
||||
$applicant_details = applicantname_grabber::getLatestApplicantsName(SELF::$current_pd_id);
|
||||
$payment_term = array('1' => 'Supply against advance payment','2' => 'Payment on Receipt of goods / service','3' => 'Payment after Credit Period provided');
|
||||
// print_r($json);die();
|
||||
// $header_row = '<tr>'.'<th> Particulars </th>';
|
||||
@ -324,6 +332,7 @@ class smc_creditpd
|
||||
$second_row = '<tr>'.'<td> Does the person met <br>know who operates this business?
|
||||
(Yes / NO) </td>';
|
||||
$third_row = '<tr>'.'<td> As per person met, how long has the applicants` <br>business been running from this location </td>';
|
||||
$owner_row = '<tr>'.'<td> As per person met, how long has the applicants` <br>business been running from this location </td>';
|
||||
$fourth_row = '<tr>'.'<td> Any other remarks </td>';
|
||||
$five_row = '<tr>'.'<td> Neighbourhood Check <br>Positive / Negative / Could not verify </td>';
|
||||
// $siz_row = '<tr>'.'<td> Payment Mode </td>';
|
||||
@ -338,6 +347,8 @@ class smc_creditpd
|
||||
$time = isset($value['how_long_do_know_in_year']) ? $value['how_long_do_know_in_year'].'Yr(s)' : '';$time .= (isset($value['how_long_do_know_in_month']) && $value['how_long_do_know_in_month'] != 0 ? (' & '.$value['how_long_do_know_in_month'].' Mnt(s)'): '');
|
||||
$time = empty($time) ? '-' : $time;
|
||||
$third_row .= '<td style="text-align:center;"> '. $time .' </td>';
|
||||
$owner_name = isset($value['organisation_owner']) ? applicantname_grabber::getMultipleApplicantsNameById($value['organisation_owner'],$applicant_details) : '';
|
||||
$owner_row .= '<td style="text-align:center;">'.($owner_name != '' ? $owner_name : '-').'</td>';
|
||||
$colspan++;
|
||||
// $business_name_of_the_owner = (isset($value['business_name_of_the_owner']) ? (applicantname_grabber::getApplicantsNameById($value['business_name_of_the_owner'],$applicant_details)): 'NA');
|
||||
// $fourth_row .= '<td style="text-align:center;"> '. $value['how_long_do_know_in_year'].' - '.$value['how_long_do_know_in_month'] .' </td>';
|
||||
@ -355,7 +366,7 @@ class smc_creditpd
|
||||
// $siz_row .= '</tr>';
|
||||
// $seven_row .= '</tr>';
|
||||
|
||||
$json['display_data'] = array('first_row' => $first_row,'second_row' => $second_row,'third_row' => $third_row,'fourth_row' => $fourth_row,'five_row' => $five_row);
|
||||
$json['display_data'] = array('first_row' => $first_row,'second_row' => $second_row,'third_row' => $third_row,'fourth_row' => $fourth_row,'five_row' => $five_row,'owner_row' => $owner_row);
|
||||
return $json;
|
||||
}
|
||||
|
||||
@ -365,8 +376,8 @@ class smc_creditpd
|
||||
|
||||
$json = json_decode($section['json'],true);
|
||||
// print_r($json);//die();
|
||||
$json['address_type'] = SELF::getDBvalue(ADDRESSTYPE,ADDRESSTYPEID,$json['address_type']);
|
||||
$json['pd_locality'] = SELF::getDBvalue(LOCALITY,LOCALITYID,$json['pd_locality']);
|
||||
$json['address_type'] = isset($json['address_type_others']) && ($json['address_type'] == 1) ? (array('address_type' => $json['address_type_others'])):SELF::getDBvalue(ADDRESSTYPE,ADDRESSTYPEID,$json['address_type']);
|
||||
$json['pd_locality'] = isset($json['locality_other']) && $json['pd_locality'] == 1 ? (array('locality_name' => $json['locality_other'])) : SELF::getDBvalue(LOCALITY,LOCALITYID,$json['pd_locality']);
|
||||
|
||||
$json['pd_location'] = SELF::getDBvalue(PDLOCATIONAPPROACH,PDLOCATIONAPPROACHID,$json['pd_location']);
|
||||
$json['comment_locality'] = SELF::getDBvalue(COMMENTSONLOCALITY,COMMENTSONLOCALITYID,$json['comment_locality']);
|
||||
@ -417,15 +428,18 @@ class smc_creditpd
|
||||
$applicant_details = applicantname_grabber::getLatestApplicantsName(SELF::$current_pd_id);
|
||||
// print_r($json);die();
|
||||
|
||||
$json['owner_name'] = applicantname_grabber::getMultipleApplicantsNameById($json['owner_name'],$applicant_details);
|
||||
$json['owner_name'] = isset($json['owner_name']) ? applicantname_grabber::getMultipleApplicantsNameById($json['owner_name'],$applicant_details) : '';
|
||||
if(isset($json['lender']))
|
||||
{
|
||||
$json['lender'] = SELF::getDBvalue(BTLENDERLIST,BTLENDERLISTID,$json['lender']);
|
||||
}
|
||||
$json['state'] = SELF::getDBvalue(STATE,STATEID,$json['state']);
|
||||
$json['city'] = SELF::getDBvalue(CITY,CITYID,$json['city']);
|
||||
$json['state'] = isset($json['state']) ? SELF::getDBvalue(STATE,STATEID,$json['state']) : '';
|
||||
$json['city'] = isset($json['city']) ? SELF::getDBvalue(CITY,CITYID,$json['city']) : '';
|
||||
if(isset($json['pincode']))
|
||||
{
|
||||
$pin = $json['pincode'] != 1 ? SELF::getDBvalue(PINCODE,PINCODEID,$json['pincode']) : $json['pincode_others'];
|
||||
$json['pincode'] = is_array($pin) ? $pin['pincode'] : $pin;
|
||||
}
|
||||
// print_r($json);die();
|
||||
|
||||
return $json;
|
||||
|
||||
@ -155,7 +155,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
<tr>
|
||||
<td colspan="3"> Name of the Company/Firm</td>
|
||||
<td class = "tdcenteralign" colspan="7"> <?php echo $applicant_details[0]['company_name']?></td>
|
||||
<td class = "tdcenteralign" colspan="7"> <?php echo isset($applicant_details[0]['company_name']) ? $applicant_details[0]['company_name'] : $pd_master_details[0]['main_applicant']?></td>
|
||||
</tr>
|
||||
|
||||
<?php if(isset($pd_section_data[1]['person_met'])){?>
|
||||
@ -208,7 +208,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
<?php
|
||||
foreach ($pd_section_data[1]['borrower_details'] as $key1 => $value1)
|
||||
{
|
||||
echo '<tr><td colspan="1" class = "tdcenteralign">'.$value1['borrower_type'].'</td> <td colspan="1" class = "tdcenteralign">'.$value1['borrower_name'].'</td> <td colspan="1" class = "tdcenteralign">'.$value1['entity_type'].'</td> <td colspan="1" class = "tdcenteralign">'.$value1['designation'].'</td> <td colspan="1" class = "tdcenteralign">'.$value1['relationship'].'</td> <td colspan="1" class = "tdcenteralign">'.$value1['relationship_to'].'</td> <td colspan="1" class = "tdcenteralign">'.(isset($value1['borrower_age']) ? : 'NA').'</td> <td colspan="1" class = "tdcenteralign">'.(isset($value1['numbers_of_years_business_running']) ? $value1['numbers_of_years_business_running'] : 'NA').'</td></tr>';
|
||||
echo '<tr><td colspan="1" class = "tdcenteralign">'.$value1['borrower_type'].'</td> <td colspan="1" class = "tdcenteralign">'.$value1['borrower_name'].'</td> <td colspan="1" class = "tdcenteralign">'.$value1['entity_type'].'</td> <td colspan="1" class = "tdcenteralign">'.$value1['designation'].'</td> <td colspan="1" class = "tdcenteralign">'.$value1['relationship'].'</td> <td colspan="1" class = "tdcenteralign">'.$value1['relationship_to'].'</td> <td colspan="1" class = "tdcenteralign">'.(isset($value1['borrower_age']) && !empty($value1['borrower_age']) ? $value1['borrower_age'] : 'NA').'</td> <td colspan="1" class = "tdcenteralign">'.(isset($value1['numbers_of_years_business_running']) && !empty($value1['numbers_of_years_business_running']) ? $value1['numbers_of_years_business_running'] : 'NA').'</td></tr>';
|
||||
}
|
||||
?>
|
||||
|
||||
@ -223,9 +223,9 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
<th class="thlargefont" colspan="10">Fund Requirement</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3" >Loan Amount Applied for (Rs)</td>
|
||||
<td colspan="3" >Loan Amount Applied for (<?php echo $rupee_symbol?>)</td>
|
||||
<td class = "tdcenteralign" colspan="3" ><?php echo $rupee_symbol.' '.MYUTIL::customIndianNumberFormat($pd_section_data[3]['loan_amount'])?></td>
|
||||
<td colspan="2">Total Fund Requirement (Rs)</td>
|
||||
<td colspan="2">Total Fund Requirement (<?php echo $rupee_symbol?>)</td>
|
||||
<td class = "tdcenteralign" colspan="2"> <?php echo $rupee_symbol.' '. MYUTIL::customIndianNumberFormat($pd_section_data[3]['total_fund_requirement'])?></td>
|
||||
</tr>
|
||||
<?php if(isset($pd_section_data[3]['remarks_fund_source_balance'])){?>
|
||||
@ -235,6 +235,11 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<tr>
|
||||
<td colspan="3" >Loan tenure</td>
|
||||
<td class = "tdcenteralign" colspan="7" ><?php echo $pd_section_data[3]['loan_tenure']?></td>
|
||||
</tr>
|
||||
<?php if($pd_master_details[0]['product_abbr'] == 'LFMP'){ ?>
|
||||
<tr>
|
||||
<td colspan="3" >Is There any Balance Transfer</td>
|
||||
<td class = "tdcenteralign" colspan="7" ><?php echo $pd_section_data[3]['is_transfer']?></td>
|
||||
</tr>
|
||||
@ -277,6 +282,13 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
<td colspan="2" >Structure type</td>
|
||||
<td class = "tdcenteralign" colspan="2" ><?php echo $pd_section_data[3]['structure_type']?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php if(isset($pd_section_data[3]['common_remarks']) && !empty($pd_section_data[3]['common_remarks'])){?>
|
||||
<tr>
|
||||
<td colspan="3" >Remarks</td>
|
||||
<td class = "tdcenteralign" colspan="7" ><?php echo $pd_section_data[3]['common_remarks']?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
</tbody>
|
||||
</table>
|
||||
<br>
|
||||
@ -347,7 +359,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
}
|
||||
|
||||
}
|
||||
if(isset($pd_section_data[16]['common_remarks']))
|
||||
if(isset($pd_section_data[16]['common_remarks']) && !empty($pd_section_data[16]['common_remarks']))
|
||||
{
|
||||
echo '<tr><th class="tdcenteralign" colspan="5">Remarks</th><td class="tdcenteralign" colspan="10">'.$pd_section_data[16]['common_remarks'] .'</td>';
|
||||
}
|
||||
@ -387,7 +399,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
// {
|
||||
// echo '<tr><th class="tdcenteralign" colspan="3">Remarks</th><td class="tdcenteralign" colspan="8">'.$pd_section_data[6]['business_process'] .'</td>';
|
||||
// }
|
||||
if(isset($pd_section_data[6]['common_remarks']))
|
||||
if(isset($pd_section_data[6]['common_remarks']) && !empty($pd_section_data[6]['common_remarks']))
|
||||
{
|
||||
echo '<tr><th class="tdcenteralign" colspan="3">Remarks</th><td class="tdcenteralign" colspan="7">'.$pd_section_data[6]['common_remarks'] .'</td>';
|
||||
}
|
||||
@ -415,7 +427,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
<tr>
|
||||
<td colspan="4" >No of Employees as per person met</td>
|
||||
<td colspan="4" >No fo Employees Sighted during the Visit</td>
|
||||
<td colspan="4" >Approx Salary Paid per month (Rs)</td>
|
||||
<td colspan="4" >Approx Salary Paid per month (<?php echo $rupee_symbol?>)</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
@ -479,8 +491,37 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
</tbody></table>
|
||||
|
||||
<br>
|
||||
<?php if(isset($pd_section_data[8]['is_business_address']) && strtolower($pd_section_data[8]['is_business_address']) == 'yes'){ ?>
|
||||
<table class="scorecard_table">
|
||||
<tr><th class="thlargefont">Business Assets</th></tr>
|
||||
<tr><th class="thlargefont" colspan="2">Business Asset</th></tr>
|
||||
|
||||
<tr> <td>Business asset address</td><td class = "tdcenteralign"><?php echo $pd_section_data[8]['initiated_address']?></td> </tr>
|
||||
<tr> <td>business operating duration<br>in visited premises </td> <td class = "tdcenteralign"><?php echo ($pd_section_data[8]['business_years'].'Yr(s)'.(isset($pd_section_data[8]['business_months']) && $pd_section_data[8]['business_months'] != '' ? ' & ' . $pd_section_data[8]['business_months'] .'Mnt(s)': ''))?></td> </tr>
|
||||
|
||||
<?php
|
||||
$business_pd_visited_remark = (isset($pd_section_data[8]['business_pd_visited_remark']) && $pd_section_data[8]['business_pd_visited_remark'] != '' ? ( '(' . $pd_section_data[8]['business_pd_visited_remark']. ' ) ' ) : '');
|
||||
|
||||
?>
|
||||
|
||||
|
||||
<tr><td>Business activities seen </td> <td class = "tdcenteralign"><?php echo ($pd_section_data[8]['business_is_pd_visited'].$business_pd_visited_remark)?> </td> </tr>
|
||||
<tr><td>Business ownership type </td> <td class = "tdcenteralign"><?php echo ($pd_section_data[8]['business_ownership_type'].( isset($pd_section_data[8]['business_monthly_rented_amt']) ? ( '(' . $rupee_symbol.''.MYUTIL::customIndianNumberFormat($pd_section_data[8]['business_monthly_rented_amt']) . ')' ) : '' ))?> </td> </tr>
|
||||
|
||||
<?php if( strtolower($pd_section_data[8]['business_ownership_type']) == 'owned'){?>
|
||||
<tr><td>Asset approximate market value </td> <td class = "tdcenteralign"><?php echo $rupee_symbol.''.MYUTIL::customIndianNumberFormat($pd_section_data[8]['business_approximate_market_value'])?> </td> </tr>
|
||||
<tr><td>Age of asset </td> <td class = "tdcenteralign"><?php echo $pd_section_data[8]['business_vintage'].' Yr(s) ( Purchased at ' .$pd_section_data[8]['business_purchase_year'].')'?> </td> </tr>
|
||||
<tr><td>Owner(s) Name </td> <td class = "tdcenteralign"><?php $owners_name = applicantname_grabber::getMultipleApplicantsNameById($pd_section_data[8]['business_name_of_the_owner'],$applicant_details); echo $owners_name;?> </td> </tr>
|
||||
<tr><td>Loan Existing against asset</td> <td class = "tdcenteralign"><?php echo ($pd_section_data[8]['business_emi'])?> </td> </tr>
|
||||
<?php } ?>
|
||||
|
||||
<!-- <tr> <td>Remarks </td> <td class = "tdcenteralign"><?php $pd_section_data[8]['common_remarks']?></td> </tr> -->
|
||||
</table>
|
||||
<?php } ?>
|
||||
<table class="scorecard_table">
|
||||
</table>
|
||||
<br>
|
||||
<table class="scorecard_table">
|
||||
<tr><th class="thlargefont">Other Business Assets</th></tr>
|
||||
</table>
|
||||
<table class="scorecard_table">
|
||||
<?php if(isset($pd_section_data[8]['display_data']) && is_array($pd_section_data[8]['display_data']) && count($pd_section_data[8]['display_data'])){?>
|
||||
@ -499,14 +540,14 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
</tbody>
|
||||
<?php }else
|
||||
{
|
||||
echo '<tr> <td class = "tdcenteralign">There is no Business asset</td> </tr>';
|
||||
echo '<tr> <td class = "tdcenteralign">There is no other business asset available</td> </tr>';
|
||||
}
|
||||
|
||||
|
||||
|
||||
?>
|
||||
</table>
|
||||
<?php if(isset($pd_section_data[8]['common_remarks']))
|
||||
<?php if(isset($pd_section_data[8]['common_remarks']) && !empty($pd_section_data[8]['common_remarks']))
|
||||
{
|
||||
echo '<br><br><table class="scorecard_table"><tr> <td class = "tdcenteralign" colspan="1">Business Assets Remarks - '.$pd_section_data[8]['common_remarks'].' </td></tr></table>';
|
||||
}?>
|
||||
@ -520,7 +561,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="6" >Name of the Company / Firm whose financials are noted </td>
|
||||
<td class = "tdcenteralign" colspan="4" ><?php echo $applicant_details[0]['company_name']?></td>
|
||||
<td class = "tdcenteralign" colspan="4" ><?php echo isset($applicant_details[0]['company_name']) ? $applicant_details[0]['company_name'] : $pd_master_details[0]['main_applicant']?></td>
|
||||
</tr>
|
||||
</tbody></table>
|
||||
<table class="scorecard_table"><tbody>
|
||||
@ -549,7 +590,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
|
||||
<tr>
|
||||
<td colspan="7">Sales / Revenue (Rs) </td>
|
||||
<td colspan="7">Sales / Revenue (<?php echo $rupee_symbol?>) </td>
|
||||
<?php
|
||||
|
||||
foreach ($pd_section_data[10]['financial_info'] as $fy_key => $fy_value)
|
||||
@ -562,7 +603,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
?>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="7" >Net Profit / (Net Loss) (Rs) </td>
|
||||
<td colspan="7" >Net Profit / (Net Loss) (<?php echo $rupee_symbol?>) </td>
|
||||
<?php
|
||||
|
||||
foreach ($pd_section_data[10]['financial_info'] as $fy_key => $fy_value)
|
||||
@ -719,9 +760,9 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
</table>
|
||||
<table class="scorecard_table">
|
||||
<tbody>
|
||||
<?php echo '<tr> <td>Sales / Revenue (Rs) </td><td class="tdcenteralign">'.$rupee_symbol.' '. MYUTIL::customIndianNumberFormat($pd_section_data[10]['sales_amount']) .'</td> </tr>'?>
|
||||
<?php echo '<tr> <td>Sales / Revenue ('.$rupee_symbol.') </td><td class="tdcenteralign">'.$rupee_symbol.' '. MYUTIL::customIndianNumberFormat($pd_section_data[10]['sales_amount']) .'</td> </tr>'?>
|
||||
<?php echo '<tr> <td>Net Profit or (Net Loss) to Sales % </td><td class="tdcenteralign">'. $pd_section_data[10]['net_profit_to_sales_percent'] .'</td> </tr>'?>
|
||||
<?php echo '<tr> <td>Net Profit / (Net Loss) (Rs) </td><td class="tdcenteralign">'.$rupee_symbol.' '.MYUTIL::customIndianNumberFormat($pd_section_data[10]['net_profit_rs']) .'</td> </tr>'?>
|
||||
<?php echo '<tr> <td>Net Profit / (Net Loss) ('.$rupee_symbol.') </td><td class="tdcenteralign">'.$rupee_symbol.' '.MYUTIL::customIndianNumberFormat($pd_section_data[10]['net_profit_rs']) .'</td> </tr>'?>
|
||||
|
||||
</tbody>
|
||||
</table><br>
|
||||
@ -732,8 +773,9 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
<table class="scorecard_table">
|
||||
<tbody>
|
||||
<?php echo '<tr> <td class="tdcenteralign" colspan="2">Debtor Days</td> <td colspan="2" class="tdcenteralign"</td>'.$pd_section_data[10]['debtor_days_cm'].'<td colspan="2" class="tdcenteralign">Creditor Days</td> <td colspan="2" class="tdcenteralign">'.$pd_section_data[10]['creditor_days_cm'].'</td> <td colspan="2" class="tdcenteralign">Stock Days</td> <td colspan="2" class="tdcenteralign">'.$pd_section_data[10]['inventory_days_cm'].'</td> </tr>'?>
|
||||
<?php echo '<tr> <td colspan="4" class="tdcenteralign">Does the business have any working capital facility from any lender other than Moneywise? (Yes / No)</td> <td colspan="2" class="tdcenteralign">'.$pd_section_data[10]['is_any_other_working_captial_facility'].'</td> <td colspan="4" class="tdcenteralign">If Yes, then details of the same to be captured</td> <td colspan="2" class="tdcenteralign">'.$pd_section_data[10]['facility_details_specify'].'<br>('.(isset($pd_section_data[10]['facility_details_other']) ? $pd_section_data[10]['facility_details_other'] : $pd_section_data[10]['facility_details_other_lender']).')'.'</td> </tr>'?>
|
||||
<?php echo '<tr> <td class="tdcenteralign" colspan="2">Remarks on Financials >></td> <td colspan="10" class="tdcenteralign">'.$pd_section_data[10]['common_remarks'].'</td> </tr>'?>
|
||||
<?php echo '<tr> <td colspan="4" class="tdcenteralign">Does the business have any working capital facility from any lender other than Moneywise? (Yes / No)</td> <td colspan="2" class="tdcenteralign">'.$pd_section_data[10]['is_any_other_working_captial_facility'].'</td> <td colspan="4" class="tdcenteralign">If Yes, then details of the same to be captured</td> <td colspan="2" class="tdcenteralign">'.(isset($pd_section_data[10]['facility_details_specify']) ? $pd_section_data[10]['facility_details_specify'] : '').'<br>('.(isset($pd_section_data[10]['facility_details_other']) ? $pd_section_data[10]['facility_details_other'] : $pd_section_data[10]['facility_details_other_lender']).')'.'</td> </tr>'?>
|
||||
|
||||
<?php if(!empty($pd_section_data[10]['common_remarks'])) {echo '<tr> <td class="tdcenteralign" colspan="2">Remarks on Financials >></td> <td colspan="10" class="tdcenteralign">'.$pd_section_data[10]['common_remarks'].'</td> </tr>';}?>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
@ -757,13 +799,14 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
<?php echo $pd_section_data[11]['display_data']['five_row']?>
|
||||
<?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']?>
|
||||
</tbody>
|
||||
|
||||
<?php }
|
||||
|
||||
else if(isset($pd_section_data[11]['supplier_not_available_reason'])){
|
||||
echo '<tr><td class="tdcenteralign">Supplier Information Not available. Reason - '.$pd_section_data[11]['supplier_not_available_reason'] .'</td></tr>';}
|
||||
if(isset($pd_section_data[11]['common_remarks'])){
|
||||
if(isset($pd_section_data[11]['common_remarks']) && !empty($pd_section_data[11]['common_remarks'])){
|
||||
echo '<tr><td class="tdcenteralign">Remarks - '.$pd_section_data[11]['common_remarks'] .'</td></tr>';}
|
||||
|
||||
?>
|
||||
@ -790,12 +833,13 @@ if(isset($pd_section_data[11]['common_remarks'])){
|
||||
<?php echo $pd_section_data[12]['display_data']['five_row']?>
|
||||
<?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']?>
|
||||
</tbody>
|
||||
<?php }
|
||||
|
||||
else if(isset($pd_section_data[12]['client_not_available_reason'])){
|
||||
echo '<tr><td class="tdcenteralign">Client Information Not available. Reason - '.$pd_section_data[12]['client_not_available_reason'] .'</td></tr>';}
|
||||
if(isset($pd_section_data[12]['common_remarks'])){
|
||||
if(isset($pd_section_data[12]['common_remarks']) && !empty($pd_section_data[12]['common_remarks'])){
|
||||
echo '<tr><td class="tdcenteralign">Remarks - '.$pd_section_data[12]['common_remarks'] .'</td></tr>';}
|
||||
|
||||
?>
|
||||
@ -813,7 +857,7 @@ if(isset($pd_section_data[12]['common_remarks'])){
|
||||
<th colspan="1">Sr. No.</th>
|
||||
<th colspan="1">Type of Stock (RM / FG)</th>
|
||||
<th colspan="3">Stock Item</th>
|
||||
<th colspan="2">Approx Stock Value (Rs)</th>
|
||||
<th colspan="2">Approx Stock Value (<?php echo $rupee_symbol?>)</th>
|
||||
<th colspan="1">Approx Stock Quantity</th>
|
||||
</tr>
|
||||
<?php
|
||||
@ -841,7 +885,7 @@ if(isset($pd_section_data[12]['common_remarks'])){
|
||||
{
|
||||
echo '<tr><td class="tdcenteralign" colspan="8">Stock Information Not available. Reason - '.$pd_section_data[13]['stock_not_available_reason'] .'</td></tr>';
|
||||
}
|
||||
if(isset($pd_section_data[13]['common_remarks'])){
|
||||
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>';}
|
||||
|
||||
|
||||
@ -860,6 +904,12 @@ if(isset($pd_section_data[12]['common_remarks'])){
|
||||
<tr><td colspan="4">Succession Plan for business</td><td colspan="4"><?php echo $pd_section_data[14]['sucession_plan'];?></td></tr>
|
||||
<tr><td colspan="4">Brief of other group concerns/
|
||||
Business run by the applicant</td><td colspan="4"><?php echo $pd_section_data[14]['other_group_business_applicants'];?></td></tr>
|
||||
<?php
|
||||
if(isset($pd_section_data[14]['common_remarks']) && !empty($pd_section_data[14]['common_remarks']))
|
||||
{
|
||||
echo '<tr><td colspan="4">Remarks</td><td colspan="4">'.$pd_section_data[14]['common_remarks'].'</td></tr>';
|
||||
}
|
||||
?>
|
||||
</tbody></table>
|
||||
|
||||
|
||||
@ -891,7 +941,7 @@ Business run by the applicant</td><td colspan="4"><?php echo $pd_section_data[1
|
||||
'<td class="tdcenteralign" colspan="3">'.(isset($section9_value['bank_name']) ? $section9_value['bank_name'] : 'NA').'</td>'.
|
||||
'<td class="tdcenteralign" colspan="1">'.(isset($section9_value['account_type']) ? $section9_value['account_type'] : 'NA').'</td>'.
|
||||
// '<td class="tdcenteralign" colspan="1">'.(isset($section14_value['estimated_quantity']) ? $section14_value['estimated_quantity'].' '.$section14_value['estimated_uom'] : 'NA').'</td>'.
|
||||
'<td class="tdcenteralign" colspan="1">'.(isset($section9_value['cc_limit']) ? $section9_value['cc_limit'] : '-').'</td>'.'</tr>';
|
||||
'<td class="tdcenteralign" colspan="1">'.(isset($section9_value['cc_limit']) ? ($rupee_symbol.''.MYUTIL::customIndianNumberFormat($section9_value['cc_limit'])) : '-').'</td>'.'</tr>';
|
||||
|
||||
|
||||
}
|
||||
@ -935,27 +985,29 @@ Business run by the applicant</td><td colspan="4"><?php echo $pd_section_data[1
|
||||
</table> -->
|
||||
|
||||
|
||||
<table class="scorecard_table">
|
||||
<!-- <table class="scorecard_table">
|
||||
<tr>
|
||||
<th>Existing Loan Obligations</th>
|
||||
</tr>
|
||||
</table>
|
||||
< /table>-->
|
||||
<br>
|
||||
<table class="scorecard_table">
|
||||
|
||||
<thead>
|
||||
|
||||
<tr>
|
||||
<th colspan="">Sr. No.</th>
|
||||
<th colspan="">Loan<br>Type</th>
|
||||
<th colspan="">Loan Amount </th>
|
||||
<th colspan="">Availed From </th>
|
||||
<th colspan="">Borrower`s Name </th>
|
||||
<th colspan="">Instalment Amount (Rs) </th>
|
||||
<th colspan="">Instalment Frequency (Rs) </th>
|
||||
<th colspan="">Original Tenure (Mnts) </th>
|
||||
<th colspan="">Elapsed Tenure (Mnts) </th>
|
||||
<th colspan="">Balance Tenure (Mnts)</th>
|
||||
<th colspan="10">Existing Loan Obligations</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan="1">Sr. No.</th>
|
||||
<th colspan="1">Loan<br>Type</th>
|
||||
<th colspan="1">Loan Amount </th>
|
||||
<th colspan="1">Availed From </th>
|
||||
<th colspan="1">Borrower`s Name </th>
|
||||
<th colspan="1">Instalment Amount (<?php echo $rupee_symbol?>) </th>
|
||||
<th colspan="1">Instalment Frequency (<?php echo $rupee_symbol?>) </th>
|
||||
<th colspan="1">Original Tenure (Mnts) </th>
|
||||
<th colspan="1">Elapsed Tenure (Mnts) </th>
|
||||
<th colspan="1">Balance Tenure (Mnts)</th>
|
||||
<!-- <th colspan="1">Vintage</th> -->
|
||||
</tr>
|
||||
</thead>
|
||||
@ -988,6 +1040,7 @@ Business run by the applicant</td><td colspan="4"><?php echo $pd_section_data[1
|
||||
<?php echo $pd_section_data[17]['display_data']['first_row']?>
|
||||
<?php echo $pd_section_data[17]['display_data']['second_row']?>
|
||||
<?php echo $pd_section_data[17]['display_data']['third_row']?>
|
||||
<?php echo $pd_section_data[17]['display_data']['owner_row']?>
|
||||
<?php echo $pd_section_data[17]['display_data']['fourth_row']?>
|
||||
<?php echo $pd_section_data[17]['display_data']['five_row']?>
|
||||
<!-- <?php echo $pd_section_data[17]['display_data']['siz_row']?>
|
||||
@ -999,19 +1052,16 @@ Business run by the applicant</td><td colspan="4"><?php echo $pd_section_data[1
|
||||
<br>
|
||||
|
||||
|
||||
<table class="scorecard_table" style="table-layout: fixed">
|
||||
<table class="scorecard_table" style="table-layout: fixed">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th class="thlargefont" colspan="2">Credit Manager Specific Queries</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan="1">Question</th>
|
||||
<th colspan="1">Answer</th>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
if(isset($pd_section_data[18]))
|
||||
if(isset($pd_section_data[18]) && (count($pd_section_data[18]['cm_queries']) && $pd_section_data[18]['cm_queries'][0]['question'] != ''))
|
||||
{
|
||||
|
||||
echo '<tr><th colspan="1">Question</th><th colspan="1">Answer</th></tr>';
|
||||
foreach ($pd_section_data[18]['cm_queries'] as $section18_key => $section18_value)
|
||||
{
|
||||
|
||||
@ -1023,9 +1073,17 @@ Business run by the applicant</td><td colspan="4"><?php echo $pd_section_data[1
|
||||
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
echo '<tr><td colspan="2" class="tdcenteralign">There are no credit manager queires</td></tr>';
|
||||
}
|
||||
if(isset($pd_section_data[18]['common_remarks']) && !empty($pd_section_data[18]['common_remarks']))
|
||||
{
|
||||
echo '<tr><td colspan="2" class="tdcenteralign">Remarks - '.$pd_section_data[18]['common_remarks'].'</td></tr>';
|
||||
}
|
||||
|
||||
?>
|
||||
</tbody></table>
|
||||
</tbody></table>
|
||||
<br>
|
||||
|
||||
|
||||
@ -1056,7 +1114,10 @@ $over_all = array('2' => 'Positive','3' => 'Negative');
|
||||
?>
|
||||
<tr><td colspan="4">PD Officer's key points considered while arriving at the
|
||||
aforementioned status</td><td colspan="4"><?php echo $reason;?></td></tr>
|
||||
|
||||
<?php if(isset($pd_section_data[19]['final_form_remarks']) && !empty($pd_section_data[19]['final_form_remarks'])){
|
||||
echo '<tr><td colspan="4">Remarks</td><td colspan="4">'.$pd_section_data[19]['final_form_remarks'] .'</td></tr>';
|
||||
|
||||
}?>
|
||||
</tbody></table>
|
||||
|
||||
<div id="page_break"></div>
|
||||
@ -1110,13 +1171,13 @@ if(count($smc_images))
|
||||
<table class="scorecard_table">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td colspan="3" >Name of PD Offier </td>
|
||||
<td colspan="3" >Name of Credit Manager </td>
|
||||
<td class="tdcenteralign" colspan="7" ><?php echo $pd_master_details[0]['updatedby']?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<!-- <tr>
|
||||
<td colspan="3" >Designation of Sales Team Member </td>
|
||||
<td class="tdcenteralign" colspan="7" ><?php echo $pd_master_details[0]['updatedby_designation']?></td>
|
||||
</tr>
|
||||
</tr> -->
|
||||
<tr>
|
||||
<td colspan="3" >Date of PD Visit </td>
|
||||
<td class="tdcenteralign" colspan="7" ><?php echo $pd_master_details[0]['pd_visit_date']?></td>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user