SMC REPORT FIRST FULL
This commit is contained in:
parent
ccff530c89
commit
8255acfab2
@ -1438,7 +1438,7 @@ public function filterSalesPDList_post() {
|
||||
$view_data['applicant_details'] = $this->PD_Model->getApplicantsDetails($records['pd_id']);
|
||||
$pd_section_data = $this->SMC_Credit_PD_Model->selectCustomRecords(array('*'),array('isactive' => 1,'fk_pd_id' => $records['pd_id']),SMC_CREDIT_PD_SECTION_DATA,array(),'','fk_form_id','ASC');
|
||||
// print_r ($view_data['pd_master_details']);die();
|
||||
|
||||
// print_r($pd_section_data[12]);die();
|
||||
if(count($pd_section_data))
|
||||
{
|
||||
foreach ($pd_section_data as $key => $value)
|
||||
@ -1448,7 +1448,7 @@ public function filterSalesPDList_post() {
|
||||
//die();
|
||||
}
|
||||
}
|
||||
// print_r($view_data['pd_section_data'][11]);die();
|
||||
// print_r($view_data['pd_section_data'][18]);die();
|
||||
|
||||
$html_content = $this->load->view('smc_creditpd_reports/MWISE',$view_data,true);
|
||||
// echo $html_content;die();
|
||||
@ -1457,7 +1457,7 @@ public function filterSalesPDList_post() {
|
||||
//End of PDF Gen using DOM PDF
|
||||
$output_file = $this->external_path ."/pd_reports/" . $records['pd_id'] . "/temp.pdf";
|
||||
$bytes = file_put_contents($output_file, $pdf_doc);
|
||||
|
||||
// echo $bytes;die();
|
||||
$bucket_name = LENDER_BUCKET_NAME_PREFIX.(ENVIRONMENT == 'production' ? 7 : 35);
|
||||
$key = 'pd'.$records['pd_id'].'/pd_reports/'.$pdf_name.'.pdf';
|
||||
$bucket_data = array('bucket_name'=>$bucket_name,'key'=>$key,'sourcefile'=>$output_file);
|
||||
|
||||
@ -20,19 +20,37 @@ class smc_creditpd
|
||||
case 5://Key Stakeholders
|
||||
case 6://bbusiness brief
|
||||
case 7://emp strength
|
||||
case 9://banking
|
||||
case 10://finance
|
||||
|
||||
case 12://client
|
||||
case 14://future
|
||||
case 16://other family
|
||||
case 18://credit
|
||||
|
||||
case 19://final remarks
|
||||
$return_data = json_decode($section['json'],true);
|
||||
break;
|
||||
case 8://assest
|
||||
$return_data = SELF::getAssestSectionData($section);
|
||||
break;
|
||||
|
||||
// case 11://supplier
|
||||
// $return_data = SELF::getSupplierSectionData($section);
|
||||
// break;
|
||||
case 11://supplier
|
||||
$return_data = SELF::getSupplierSectionData($section);
|
||||
break;
|
||||
case 12://client
|
||||
$return_data = SELF::getClientSectionData($section);
|
||||
break;
|
||||
|
||||
case 13://stock
|
||||
$return_data = SELF::getStockSectionData($section);
|
||||
break;
|
||||
|
||||
case 15://existing loan
|
||||
$return_data = SELF::getExistingLoanSectionData($section);
|
||||
break;
|
||||
|
||||
case 17://neighborhood
|
||||
$return_data = SELF::getNeibourSectionData($section);
|
||||
break;
|
||||
|
||||
}
|
||||
return $return_data;
|
||||
@ -102,6 +120,8 @@ class smc_creditpd
|
||||
static function getSupplierSectionData($section)
|
||||
{
|
||||
$json = json_decode($section['json'],true);
|
||||
$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>';
|
||||
$first_row = '<tr>'.'<td> Item Purchased </td>';
|
||||
$second_row = '<tr>'.'<td> Contact Person </td>';
|
||||
@ -110,17 +130,18 @@ 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>';
|
||||
foreach ($json['business_assets_details'] as $key => $value)
|
||||
foreach ($json['supplier_details'] as $key => $value)
|
||||
{
|
||||
$header_row .= '<th>'.$value['supplier_name'].'</th>';
|
||||
|
||||
$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['business_ownership_type'] .' </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['contact_person_mobile_no'] .' </td>';
|
||||
$five_row .= '<td style="text-align:center;"> '. (isset($value['person_landline']) ? $value['person_landline'] : 'NA') .' </td>';
|
||||
$siz_row .= '<td style="text-align:center;"> '. (isset($value['payment_type']) ? $value['payment_type'] : 'NA') .' </td>';
|
||||
$seven_row .= '<td style="text-align:center;"> '. (isset($value['payment_mode']) ? $value['payment_mode'] : 'NA') .' </td>';
|
||||
$third_row .= '<td style="text-align:center;"> '. $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>';
|
||||
}
|
||||
$header_row .= '</tr>';
|
||||
$first_row .= '</tr>';
|
||||
@ -129,8 +150,164 @@ class smc_creditpd
|
||||
$fourth_row .= '</tr>';
|
||||
$five_row .= '</tr>';
|
||||
$siz_row .= '</tr>';
|
||||
$seven_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);
|
||||
return $json;
|
||||
}
|
||||
|
||||
|
||||
static function getClientSectionData($section)
|
||||
{
|
||||
$json = json_decode($section['json'],true);
|
||||
$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>';
|
||||
$first_row = '<tr>'.'<td> Product/ Service </td>';
|
||||
$second_row = '<tr>'.'<td> Contact Person </td>';
|
||||
$third_row = '<tr>'.'<td> Mobile Number </td>';
|
||||
$fourth_row = '<tr>'.'<td> Landline No </td>';
|
||||
$five_row = '<tr>'.'<td> Payment Terms </td>';
|
||||
$siz_row = '<tr>'.'<td> Payment Mode </td>';
|
||||
$seven_row = '<tr>'.'<td> No of days credit </td>';
|
||||
foreach ($json['client_details'] as $key => $value)
|
||||
{
|
||||
|
||||
$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>';
|
||||
// $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>';
|
||||
}
|
||||
$header_row .= '</tr>';
|
||||
$first_row .= '</tr>';
|
||||
$second_row .= '</tr>';
|
||||
$third_row .= '</tr>';
|
||||
$fourth_row .= '</tr>';
|
||||
$five_row .= '</tr>';
|
||||
$siz_row .= '</tr>';
|
||||
$seven_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);
|
||||
return $json;
|
||||
}
|
||||
|
||||
|
||||
static function getStockSectionData($section)
|
||||
{
|
||||
|
||||
$json = json_decode($section['json'],true);
|
||||
$CI =&get_instance();
|
||||
$CI->load->model('PD_Model');
|
||||
$uom_master = $CI->PD_Model->selectCustomRecords(array('*'),array('isactive' => 1),UOM);
|
||||
// print_r($json);die();
|
||||
|
||||
foreach ($json['stock_details'] as $key => $value)
|
||||
{
|
||||
if(isset($value['estimated_uom']))
|
||||
{
|
||||
//echo $value['estimated_uom'];die();
|
||||
foreach ($uom_master as $m_key => $mvalue)
|
||||
{
|
||||
if($value['estimated_uom'] == $mvalue['uom_id'])
|
||||
{ $json['stock_details'][$key]['estimated_uom'] = $mvalue['name'];break; }
|
||||
}
|
||||
}
|
||||
}
|
||||
//echo 'asfter';
|
||||
// print_r($json);die();
|
||||
return $json;
|
||||
}
|
||||
|
||||
static function getExistingLoanSectionData($section)
|
||||
{
|
||||
$json = json_decode($section['json'],true);
|
||||
$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>';
|
||||
$first_row = '<tr>'.'<td> Loan Type </td>';
|
||||
$second_row = '<tr>'.'<td> Loan Amount </td>';
|
||||
$third_row = '<tr>'.'<td> Availed From </td>';
|
||||
$fourth_row = '<tr>'.'<td> Borrower`s Name </td>';
|
||||
$five_row = '<tr>'.'<td> Instalment Amount (Rs) </td>';
|
||||
$siz_row = '<tr>'.'<td> Original Tenure (Mnts) </td>';
|
||||
$seven_row = '<tr>'.'<td> Elapsed Tenure (Mnts) </td>';
|
||||
$eight_row = '<tr>'.'<td> Balance Tenure (Mnts) </td>';
|
||||
foreach ($json['existing_loan_details'] as $key => $value)
|
||||
{
|
||||
|
||||
$header_row .= '<th>Loan '.($key + 1).'</th>';
|
||||
$first_row .= '<td style="text-align:center;">'. $value['loan_type'] .'</td>';
|
||||
$second_row .= '<td style="text-align:center;">'. $value['loan_amount'] .'</td>';
|
||||
$third_row .= '<td style="text-align:center;"> '. $value['loan_taken_by'] .' </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['lender_name'] .' </td>';
|
||||
$five_row .= '<td style="text-align:center;"> '. (isset($value['instalment_amount']) ? $value['instalment_amount'] : 'NA') .' </td>';
|
||||
$siz_row .= '<td style="text-align:center;"> '. (isset($value['original_tenure_months']) ? $value['original_tenure_months'] : 'NA') .' </td>';
|
||||
$seven_row .= '<td style="text-align:center;"> '. (isset($value['elapsed_tenure_months']) ? $value['elapsed_tenure_months'] : 'NA') .' </td>';
|
||||
$eight_row .= '<td style="text-align:center;"> '. (isset($value['current_tenure_months']) ? $value['current_tenure_months'] : 'NA') .' </td>';
|
||||
}
|
||||
$header_row .= '</tr>';
|
||||
$first_row .= '</tr>';
|
||||
$second_row .= '</tr>';
|
||||
$third_row .= '</tr>';
|
||||
$fourth_row .= '</tr>';
|
||||
$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,'eight_row' => $eight_row);
|
||||
return $json;
|
||||
}
|
||||
|
||||
static function getNeibourSectionData($section)
|
||||
{
|
||||
$json = json_decode($section['json'],true);
|
||||
$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>';
|
||||
$first_row = '<tr>'.'<td> Name & brief of Person <br>with whom check done </td>';
|
||||
$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>';
|
||||
$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>';
|
||||
// $seven_row = '<tr>'.'<td> No of days credit </td>';
|
||||
$colspan = 0;
|
||||
foreach ($json['neighbourhood_list'] as $key => $value)
|
||||
{
|
||||
|
||||
// $header_row .= '<th>Client '.$value['client_name'].'</th>';
|
||||
$first_row .= '<td style="text-align:center;">'. $value['neighbourhood_name'] .'</td>';
|
||||
$second_row .= '<td style="text-align:center;">'. ucfirst($value['know_business_operation']) .'</td>';
|
||||
$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>';
|
||||
$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>';
|
||||
// $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>';
|
||||
}
|
||||
// $header_row .= '</tr>';
|
||||
$first_row .= '</tr>';
|
||||
$second_row .= '</tr>';
|
||||
$third_row .= '</tr>';
|
||||
$fourth_row .= '<td style="text-align:center;" colspan='.$colspan.'>'.$json['neighbourhood_status'].'</td>'.'</tr>';
|
||||
$five_row .= '<td style="text-align:center;" colspan='.$colspan.'>'.$json['neighbourhood_remarks'].'</td>'.'</tr>';
|
||||
|
||||
// $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);
|
||||
return $json;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -550,8 +550,250 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
</tr>
|
||||
</tbody></table> -->
|
||||
|
||||
<table class="scorecard_table">
|
||||
<tr><th class="thlargefont">Supplier Details</th></tr>
|
||||
</table>
|
||||
<table class="scorecard_table">
|
||||
|
||||
<thead>
|
||||
|
||||
<?php echo $pd_section_data[11]['display_data']['header_row']?>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php echo $pd_section_data[11]['display_data']['first_row']?>
|
||||
<?php echo $pd_section_data[11]['display_data']['second_row']?>
|
||||
<?php echo $pd_section_data[11]['display_data']['third_row']?>
|
||||
<?php echo $pd_section_data[11]['display_data']['fourth_row']?>
|
||||
<?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']?>
|
||||
</tbody>
|
||||
|
||||
|
||||
</table>
|
||||
<br>
|
||||
<table class="scorecard_table">
|
||||
<tr><th class="thlargefont">Client Details</th></tr>
|
||||
</table>
|
||||
<table class="scorecard_table">
|
||||
|
||||
<thead>
|
||||
|
||||
<?php echo $pd_section_data[12]['display_data']['header_row']?>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php echo $pd_section_data[12]['display_data']['first_row']?>
|
||||
<?php echo $pd_section_data[12]['display_data']['second_row']?>
|
||||
<?php echo $pd_section_data[12]['display_data']['third_row']?>
|
||||
<?php echo $pd_section_data[12]['display_data']['fourth_row']?>
|
||||
<?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']?>
|
||||
</tbody>
|
||||
|
||||
|
||||
</table><br>
|
||||
|
||||
<table class="scorecard_table" style="table-layout: fixed">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th class="thlargefont" colspan="8">Details of Stock Sighted during the PD visit</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan="1">Sr. No.</th>
|
||||
<!-- <th colspan="2">Type of Stock (RM / FG)</th> -->
|
||||
<th colspan="3">Stock Item</th>
|
||||
<th colspan="3">Approx Stock Value (Rs)</th>
|
||||
<th colspan="1">Approx Stock Quantity</th>
|
||||
</tr>
|
||||
<?php
|
||||
if(isset($pd_section_data[13]))
|
||||
{
|
||||
|
||||
foreach ($pd_section_data[13]['stock_details'] as $section13_key => $section13_value)
|
||||
{
|
||||
echo '<tr><td class="tdcenteralign" colspan="1">'.($section13_key + 1) .'</td>'.
|
||||
// '<td class="tdcenteralign" colspan="2">'.$section13_value['provider_name'].'</td>'.
|
||||
'<td class="tdcenteralign" colspan="3">'.$section13_value['provider_name'].'</td>'.
|
||||
'<td class="tdcenteralign" colspan="3">'.(isset($section13_value['estimated_stock_value']) ? $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>';
|
||||
|
||||
|
||||
}
|
||||
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>';
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
</tbody></table>
|
||||
<br>
|
||||
<table class="scorecard_table" style="table-layout: fixed">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th class="thlargefont" colspan="8">Future Plans & Business Environment</th>
|
||||
</tr>
|
||||
<tr><td colspan="4">USP of the business (How applicant’s business is different from others in the business)</td><td colspan="4"><?php echo $pd_section_data[14]['usp_of_business'];?></td></tr>
|
||||
<tr><td colspan="4">Future plan for business expansion</td><td colspan="4"><?php echo $pd_section_data[14]['future_business_expansion'];?></td></tr>
|
||||
<tr><td colspan="4">Key competitors in the business</td><td colspan="4"><?php echo $pd_section_data[14]['key_competitors'];?></td></tr>
|
||||
<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>
|
||||
</tbody></table>
|
||||
<br>
|
||||
<table class="scorecard_table" style="table-layout: fixed">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th class="thlargefont" colspan="10">Business Banking & Personal Banking</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan="1">Sr. No.</th>
|
||||
<th colspan="2">Account Holder's Name</th>
|
||||
<th colspan="3">Bank Name</th>
|
||||
<th colspan="3">Account Type</th>
|
||||
<!-- <th colspan="2">OD / CC Limit</th> -->
|
||||
<th colspan="1">Vintage</th>
|
||||
</tr>
|
||||
<?php
|
||||
if(isset($pd_section_data[9]))
|
||||
{
|
||||
|
||||
foreach ($pd_section_data[9]['banking_details'] as $section9_key => $section9_value)
|
||||
{
|
||||
$vintage = $section9_value['vintage_year'].'Yr(s)';
|
||||
$vintage .= (isset($section9_value['vintage_month']) && $section9_value['vintage_month'] != 0 ? (' & '.$section9_value['vintage_month'].'Mt(s)') : '');
|
||||
echo '<tr><td class="tdcenteralign" colspan="1">'.($section9_key + 1) .'</td>'.
|
||||
// '<td class="tdcenteralign" colspan="2">'.$section13_value['provider_name'].'</td>'.
|
||||
'<td class="tdcenteralign" colspan="2">'.$section9_value['applicant_name'].'</td>'.
|
||||
'<td class="tdcenteralign" colspan="3">'.(isset($section9_value['bank_name']) ? $section9_value['bank_name'] : 'NA').'</td>'.
|
||||
'<td class="tdcenteralign" colspan="3">'.(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">'.$vintage.'</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>';
|
||||
// }
|
||||
}
|
||||
|
||||
?>
|
||||
</tbody></table>
|
||||
<br>
|
||||
<table class="scorecard_table">
|
||||
<tr><th class="thlargefont" colspan="<?php echo (count($pd_section_data[15]['existing_loan_details']) + 1 )?>">Existing Loan Obligations</th></tr>
|
||||
</table>
|
||||
<br>
|
||||
<table class="scorecard_table">
|
||||
|
||||
<thead>
|
||||
|
||||
<?php echo $pd_section_data[15]['display_data']['header_row']?>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php echo $pd_section_data[15]['display_data']['first_row']?>
|
||||
<?php echo $pd_section_data[15]['display_data']['second_row']?>
|
||||
<?php echo $pd_section_data[15]['display_data']['third_row']?>
|
||||
<?php echo $pd_section_data[15]['display_data']['fourth_row']?>
|
||||
<?php echo $pd_section_data[15]['display_data']['five_row']?>
|
||||
<?php echo $pd_section_data[15]['display_data']['siz_row']?>
|
||||
<?php echo $pd_section_data[15]['display_data']['seven_row']?>
|
||||
<?php echo $pd_section_data[15]['display_data']['eight_row']?>
|
||||
</tbody>
|
||||
|
||||
|
||||
</table>
|
||||
<br>
|
||||
<table class="scorecard_table">
|
||||
<tr><th class="thlargefont">Neighbour Details</th></tr>
|
||||
</table>
|
||||
<table class="scorecard_table">
|
||||
|
||||
<!-- <thead>
|
||||
|
||||
<?php echo $pd_section_data[12]['display_data']['header_row']?>
|
||||
</thead> -->
|
||||
<tbody>
|
||||
<?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']['fourth_row']?>
|
||||
<?php echo $pd_section_data[17]['display_data']['five_row']?>
|
||||
<!-- <?php echo $pd_section_data[17]['display_data']['siz_row']?>
|
||||
<?php echo $pd_section_data[17]['display_data']['seven_row']?> -->
|
||||
</tbody>
|
||||
|
||||
|
||||
</table>
|
||||
<br>
|
||||
<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]))
|
||||
{
|
||||
|
||||
foreach ($pd_section_data[18]['cm_queries'] as $section18_key => $section18_value)
|
||||
{
|
||||
|
||||
|
||||
echo '<tr><td class="tdcenteralign" colspan="1">'.$section18_value['question'] .'</td>'.
|
||||
// '<td class="tdcenteralign" colspan="2">'.$section13_value['provider_name'].'</td>'.
|
||||
'<td class="tdcenteralign" colspan="1">'.$section18_value['answer'].'</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>';
|
||||
// }
|
||||
}
|
||||
|
||||
?>
|
||||
</tbody></table>
|
||||
<br>
|
||||
<table class="scorecard_table" style="table-layout: fixed">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th class="thlargefont" colspan="8">Final Remarks of PD officer</th>
|
||||
</tr>
|
||||
<?php
|
||||
$customer_behaviour = array('1' => 'Others','2' => 'Rude','3' => 'Polite');
|
||||
$over_all = array('2' => 'Positive','3' => 'Negative');
|
||||
?>
|
||||
<tr><td colspan="4">Customer Behaviour
|
||||
[Polite / Rude / Others (Please specify)]</td><td colspan="4"><?php echo isset($pd_section_data[19]['customer_behaviour_other']) ? $pd_section_data[19]['customer_behaviour_other'] : $customer_behaviour [ $pd_section_data[19]['customer_behaviour'] ];?></td></tr>
|
||||
|
||||
<tr><td colspan="4">Suitability of Business Location
|
||||
[Well Suited / Fairly Suited / Not Suited]</td><td colspan="4"><?php echo $pd_section_data[19]['business_location_suited'];?></td></tr>
|
||||
|
||||
<tr><td colspan="4">PD Officer's overall assessment
|
||||
(Positive / Negative)</td><td colspan="4"><?php echo $over_all [ $pd_section_data[19]['pd_officer_recommendation'] ];?></td></tr>
|
||||
|
||||
|
||||
<?php
|
||||
$reason = '';
|
||||
foreach($pd_section_data[19]['pd_officer_recommendation_remarks'] as $key => $val)
|
||||
{ $reason .= ($key + 1).' '.$val['reason'].'<br>'; }
|
||||
?>
|
||||
<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>
|
||||
|
||||
</tbody></table>
|
||||
|
||||
|
||||
</body>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user