diff --git a/api/application/controllers/SMC_Credit_PD_Controller.php b/api/application/controllers/SMC_Credit_PD_Controller.php index 4d1b3908..7fe5717e 100644 --- a/api/application/controllers/SMC_Credit_PD_Controller.php +++ b/api/application/controllers/SMC_Credit_PD_Controller.php @@ -1443,12 +1443,15 @@ public function filterSalesPDList_post() { { foreach ($pd_section_data as $key => $value) { - $value['json'] = smc_creditpd::getSMCCreditPDReportContent($value); + $value['json'] = smc_creditpd::getSMCCreditPDReportContent($value,$records['pd_id']); + // if($value['fk_form_id'] == 2){print_r($value['json']);die();} $view_data['pd_section_data'][$value['fk_form_id']] = $value['json']; //die(); } } - // print_r($view_data['pd_section_data'][18]);die(); + // print_r($view_data['pd_section_data'][15]);die(); + + $html_content = $this->load->view('smc_creditpd_reports/MWISE',$view_data,true); // echo $html_content;die(); diff --git a/api/application/helpers/applicantname_grabber_helper.php b/api/application/helpers/applicantname_grabber_helper.php index 61968def..8a5c87f2 100644 --- a/api/application/helpers/applicantname_grabber_helper.php +++ b/api/application/helpers/applicantname_grabber_helper.php @@ -29,6 +29,23 @@ class applicantname_grabber return $type == 1 ? $value['applicant_name'] : ($type == 2 ? $value['title'] : ($value['title'].' '.$value['applicant_name'])); } } + } + + public static function getMultipleApplicantsNameById($arr,$latest_applicants_names) //$type i for return name only, 2 for return title only, and 3 for return both + { + $mergered_applicants_name = ''; + foreach ($arr as $key => $value) { + + foreach ($latest_applicants_names as $k => $val) + { + if($value == $val['pd_co_applicant_id']) + { + $mergered_applicants_name .= $val['applicant_name'].', '; + } + } + } + if($mergered_applicants_name != ''){ $mergered_applicants_name = substr_replace($mergered_applicants_name, '',-2);} + return $mergered_applicants_name; } } ?> \ No newline at end of file diff --git a/api/application/helpers/readexceldata_helper.php b/api/application/helpers/readexceldata_helper.php index 895af906..1e0b671e 100644 --- a/api/application/helpers/readexceldata_helper.php +++ b/api/application/helpers/readexceldata_helper.php @@ -2,11 +2,14 @@ class readexceldata { - + private static $current_section_id = null; public static function getExcelSectionData($file_path_withname,$section_id = null,$pd_id = null) { $CI =&get_instance(); $CI->load->library('myspreadsheet'); + SELF::$current_section_id = $section_id; + + // echo is_numeric($section_id); // var_dump($section_id);die(); //echo $file_path_withname;echo file_exists($file_path_withname); die(); @@ -51,7 +54,7 @@ class readexceldata $return_data = SELF::getIndividualSectionData($sheetData,$section_ref_data); - if($section_id == 2) //get pd initialted address as custom function + if($section_id == 2 || $section_id == 8) //get pd initialted address as custom function { $pd_address = $CI->PD_Model->getPDAddress($pd_id); @@ -107,10 +110,24 @@ class readexceldata } } // print_r($keys); - // print_r($return_data);die(); + //print_r($return_data);//die(); $return_data = SELF::transformRowColumsForMultipleData($return_data,$keys); - // print_r($return_data); - // die(); + if(SELF::$current_section_id == 10) + { + $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['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']); + + $return_data['broken_period_from_month'] = SELF::getExcel2DateFormat($return_data['broken_period_from_month']); + $return_data['broken_period_to_month'] = SELF::getExcel2DateFormat($return_data['broken_period_to_month']); + } + // print_r($return_data); + // die(); return ($return_data); } @@ -200,12 +217,18 @@ class readexceldata $return_data[] = $value; } } + // if(SELF::$current_section_id == 5) + // { + // print_r($return_data); + // } return $return_data; } static function transformRowColumsForMultipleData($return_data,$keys) { $final_data = array(); + $keys_to_be_decimal = array('sales_revenue','net_profit'); + $keys_to_be_per = array('share_holding'); // print_r($return_data); // print_r($keys);die(); foreach ($keys as $current_key => $arr) @@ -223,7 +246,21 @@ class readexceldata { for($j=0;$j<$total_no_of_data;$j++) { - $temp[$j][ $arr[$i] ] = isset($data_to_be_transform[ $arr[$i] ][$j]) ? $data_to_be_transform[ $arr[$i] ][$j] : ''; + + if(in_array($arr[$i],$keys_to_be_decimal)) + { + + $temp[$j][ $arr[$i] ] = isset($data_to_be_transform[ $arr[$i] ][$j]) ? (SELF::getNumFormat($data_to_be_transform[ $arr[$i] ][$j])) : ''; + } + else if(in_array($arr[$i],$keys_to_be_per)) + { + $temp[$j][ $arr[$i] ] = isset($data_to_be_transform[ $arr[$i] ][$j]) ? (SELF::getNumFormat($data_to_be_transform[ $arr[$i] ][$j],'per')) : ''; + } + else + { + $temp[$j][ $arr[$i] ] = isset($data_to_be_transform[ $arr[$i] ][$j]) ? $data_to_be_transform[ $arr[$i] ][$j] : ''; + } + } } @@ -232,6 +269,28 @@ class readexceldata } } return $return_data; - } + } + + static function getNumFormat($field,$field_type = '') + { + if(isset($field) && $field != '') + { + if($field_type == 'per') + { + $field = $field * 100; + } + $field = number_format($field,2,'.',''); + + } + return $field; + } + + static function getExcel2DateFormat($excel_date) + { + // $excel_date = 39994; + return gmdate('d-m-Y',$UNIX_DATE = (($excel_date) - 25569) * 86400); + // return date('m/d/Y',mktime(0,0,0,1,($excel_date-1),1900)); + //gmdate("d-m-Y H:i:s", $UNIX_DATE); + } } ?> \ No newline at end of file diff --git a/api/application/helpers/smc_creditpd_helper.php b/api/application/helpers/smc_creditpd_helper.php index 47558d1e..2d1100e6 100644 --- a/api/application/helpers/smc_creditpd_helper.php +++ b/api/application/helpers/smc_creditpd_helper.php @@ -2,9 +2,10 @@ class smc_creditpd { - - public static function getSMCCreditPDReportContent($section)//1 = Di, 2 = SAL + private static $current_pd_id = null; + public static function getSMCCreditPDReportContent($section,$pd_id)//1 = Di, 2 = SAL { + SELF::$current_pd_id = $pd_id; // $CI =&get_instance(); // $CI->load->model('PD_Model'); $return_data =array(); @@ -13,8 +14,6 @@ class smc_creditpd case 1://borrower $return_data = SELF::getBorrowerSectionData($section); break; - - case 2://address case 3://fund case 4://General Business case 5://Key Stakeholders @@ -23,12 +22,13 @@ class smc_creditpd case 9://banking case 10://finance case 14://future - case 16://other family case 18://credit - case 19://final remarks $return_data = json_decode($section['json'],true); break; + case 2://address + $return_data = SELF::getAddressSectionData($section); + break; case 8://assest $return_data = SELF::getAssestSectionData($section); break; @@ -47,7 +47,10 @@ class smc_creditpd case 15://existing loan $return_data = SELF::getExistingLoanSectionData($section); break; - + case 16://other family + $return_data = SELF::getFamilySectionData($section); + // print_r($return_data);die(); + break; case 17://neighborhood $return_data = SELF::getNeibourSectionData($section); break; @@ -62,27 +65,31 @@ class smc_creditpd $json = json_decode($section['json'],true); foreach ($json['borrower_details'] as $key => $value) { - if(!strcasecmp($value['borrower_met'],'yes')) + if(isset($value['borrower_met']) && !strcasecmp($value['borrower_met'],'yes')) { $json['person_met'] = $value['borrower_name']; break; } } - if(!isset($json['person_met'])) - { - $json['person_met'] = 'No One Met'; - } + // if(!isset($json['person_met'])) + // { + // $json['person_met'] = ''; + // } return $json; } static function getAssestSectionData($section) { $json = json_decode($section['json'],true); + $rupee_symbol = ""; // $CI =&get_instance(); // $CI->load->model('PD_Model'); $applicant_details = applicantname_grabber::getLatestApplicantsName($section['fk_pd_id']); $asset_type = array('2' => 'Property','3' => 'Vehicle','4' => 'Equipments and machinery','5' => 'Jewellery','6' => 'Life Insurance Policy','7' => 'Investments','1' => 'Others'); + $address_type = array('2' => 'Clinic','3' => 'Factory','4' => 'Warehouse / Godown','5' => 'Shop','6' => 'Residence','7' => 'Residence cum Office','1' => 'Others','8' => 'Industrial Shed','9'=> 'Workshop','10'=> 'Business Centre','11'=> 'Shared Office','12'=> 'Office'); + $vehicle_type = array('2' => 'Car/Jeep','3' => 'Truck/ Bus','4' => 'Rickshaw/Tempo','5' => 'Tractor','6' => 'Two Wheeler','1' => 'Others'); + // print_r($applicant_details);die(); $header_row = ''.' Particulars '; @@ -95,13 +102,37 @@ class smc_creditpd $seven_row = ''.' Is there a Loan Against the Asset? (Yes / No) '; foreach ($json['business_assets_details'] as $key => $value) { + + $description = $value['other_asset_description']; + if(isset($value['property_type'])) + { + + if($value['property_type'] == 1){ $description .= '('. $value['property_type_others'] .')'; } + else{ $description .= '('. $address_type[ $value['property_type'] ] .')'; } + } + if(isset($value['vehicle_type'])) + { + + + if($value['vehicle_type'] == 1){ $description .= '('. $value['vehicle_type_others'] .')'; } + else{$description .= '('. $vehicle_type[ $value['vehicle_type'] ] .')';} + } + if(isset($value['business_purchase_year'])) + { + $description .= ' purchased at '.$value['business_purchase_year']; + } + if(isset($value['property_address'])) + { + $description .= ' is in '. $value['property_address']; + } + $business_ownership_type = $value['business_ownership_type'] . (isset($value['business_monthly_rented_amt']) ? ' ( '. $rupee_symbol .' '. MYUTIL::customIndianNumberFormat($value['business_monthly_rented_amt']) .' ) ' : ''); $header_row .= ' Assest '. ( $key + 1 ).''; - $first_row .= ''. $asset_type [ $value['business_assets_mode'] ].''; - $second_row .= ''. $value['other_asset_description'] .''; - $third_row .= ' '. $value['business_ownership_type'] .' '; - $business_name_of_the_owner = (isset($value['business_name_of_the_owner']) ? (applicantname_grabber::getApplicantsNameById($value['business_name_of_the_owner'],$applicant_details)): 'NA'); + $first_row .= ''. ( $value['business_assets_mode'] == 1 ? $value['other_asset_description'] : $asset_type [ $value['business_assets_mode'] ]).''; + $second_row .= ''. $description .''; + $third_row .= ' '.$business_ownership_type.' '; + $business_name_of_the_owner = (isset($value['business_name_of_the_owner']) ? (applicantname_grabber::getMultipleApplicantsNameById($value['business_name_of_the_owner'],$applicant_details)): 'NA'); $fourth_row .= ' '. $business_name_of_the_owner .' '; - $five_row .= ' '. (isset($value['business_approximate_market_value']) ? $value['business_approximate_market_value'] : 'NA') .' '; + $five_row .= ' '. (isset($value['business_approximate_market_value']) ? ( $rupee_symbol .' '. MYUTIL::customIndianNumberFormat($value['business_approximate_market_value'])) : 'NA') .' '; $siz_row .= ' '. (isset($value['business_purchase_year']) ? $value['business_purchase_year'] : 'NA') .' '; $seven_row .= ' '. (isset($value['business_emi']) ? $value['business_emi'] : 'NA') .' '; } @@ -130,6 +161,8 @@ class smc_creditpd $five_row = ''.' Payment Terms '; $siz_row = ''.' Payment Mode '; $seven_row = ''.' No of days credit '; + if(isset($json['supplier_details']) && is_array($json['supplier_details']) && count($json['supplier_details'])) + { foreach ($json['supplier_details'] as $key => $value) { @@ -153,6 +186,7 @@ class smc_creditpd $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); + } return $json; } @@ -162,6 +196,7 @@ class smc_creditpd $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 = ''.' Particulars '; $first_row = ''.' Product/ Service '; $second_row = ''.' Contact Person '; @@ -170,6 +205,8 @@ class smc_creditpd $five_row = ''.' Payment Terms '; $siz_row = ''.' Payment Mode '; $seven_row = ''.' No of days credit '; + if(isset($json['client_details']) && is_array($json['client_details']) && count($json['client_details'])) + { foreach ($json['client_details'] as $key => $value) { @@ -183,6 +220,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') .' '; } + } $header_row .= ''; $first_row .= ''; $second_row .= ''; @@ -205,7 +243,8 @@ class smc_creditpd $CI->load->model('PD_Model'); $uom_master = $CI->PD_Model->selectCustomRecords(array('*'),array('isactive' => 1),UOM); // print_r($json);die(); - + if(isset($json['stock_details']) && is_array($json['stock_details']) && count($json['stock_details'])) + { foreach ($json['stock_details'] as $key => $value) { if(isset($value['estimated_uom'])) @@ -218,6 +257,7 @@ class smc_creditpd } } } + } //echo 'asfter'; // print_r($json);die(); return $json; @@ -234,6 +274,7 @@ class smc_creditpd $third_row = ''.' Availed From '; $fourth_row = ''.' Borrower`s Name '; $five_row = ''.' Instalment Amount (Rs) '; + $install_fre_row = ''.' Instalment Frequency (Rs) '; $siz_row = ''.' Original Tenure (Mnts) '; $seven_row = ''.' Elapsed Tenure (Mnts) '; $eight_row = ''.' Balance Tenure (Mnts) '; @@ -247,6 +288,7 @@ class smc_creditpd // $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 .= ' '. $value['lender_name'] .' '; $five_row .= ' '. (isset($value['instalment_amount']) ? $value['instalment_amount'] : 'NA') .' '; + $install_fre_row .= ' '. (isset($value['instalment_frequency']) ? $value['instalment_frequency'] : 'NA') .' '; $siz_row .= ' '. (isset($value['original_tenure_months']) ? $value['original_tenure_months'] : 'NA') .' '; $seven_row .= ' '. (isset($value['elapsed_tenure_months']) ? $value['elapsed_tenure_months'] : 'NA') .' '; $eight_row .= ' '. (isset($value['current_tenure_months']) ? $value['current_tenure_months'] : 'NA') .' '; @@ -257,11 +299,12 @@ class smc_creditpd $third_row .= ''; $fourth_row .= ''; $five_row .= ''; + $install_fre_row .= ''; $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); + $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,'install_fre_row' => $install_fre_row); return $json; } @@ -300,8 +343,8 @@ class smc_creditpd $first_row .= ''; $second_row .= ''; $third_row .= ''; - $fourth_row .= ''.$json['neighbourhood_status'].''.''; - $five_row .= ''.$json['neighbourhood_remarks'].''.''; + $fourth_row .= ''.$json['neighbourhood_remarks'].''.''; + $five_row .= ''.$json['neighbourhood_status'].''.''; // $siz_row .= ''; // $seven_row .= ''; @@ -311,5 +354,57 @@ class smc_creditpd } + static function getAddressSectionData($section) + { + + $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['pd_location'] = SELF::getDBvalue(PDLOCATIONAPPROACH,PDLOCATIONAPPROACHID,$json['pd_location']); + $json['comment_locality'] = SELF::getDBvalue(COMMENTSONLOCALITY,COMMENTSONLOCALITYID,$json['comment_locality']); + $json['alternative_address'] = isset($json['alternative_address']) ? $json['alternative_address'] : ''; + // die(); + return $json; + + } + + + static function getDBvalue($table_name,$field_name,$pk) + { + $CI =&get_instance(); + $CI->load->model('PD_Model'); + $res_data = $CI->PD_Model->selectCustomRecords(array('*'),array('isactive' => 1,$field_name => $pk),$table_name); + //print_r($CI->db->last_query()); + if(is_array($res_data) && count($res_data)) + { + return $res_data[0]; + } + return null; + } + + static function getFamilySectionData($section) + { + $json = json_decode($section['json'],true); + $applicant_details = applicantname_grabber::getLatestApplicantsName(SELF::$current_pd_id); + // print_r($json);die(); + if(isset($json['family_details']) && count($json['family_details'])) + { + foreach ($json['family_details'] as $key => $value) + { + $json['family_details'][$key]['relationship'] = SELF::getDBvalue(RELATIONSHIPS,RELATIONSHIPSID,$value['relationship']); + $json['family_details'][$key]['stakeholder_relation'] = applicantname_grabber::getApplicantsNameById($value['stakeholder_relation'],$applicant_details); + $json['family_details'][$key]['company_relation'] = SELF::getDBvalue(COMPANYRELATIONSHIPS,COMPANYRELATIONSHIPSID,$value['company_relation']); + // $json[$key]['comment_locality'] = SELF::getDBvalue(COMMENTSONLOCALITY,COMMENTSONLOCALITYID,$value['comment_locality']); + // $json['alternative_address'] = isset($json['alternative_address']) ? $json['alternative_address'] : ''; + } + } + // print_r($json);die(); + // die(); + return $json; + } + + } ?> \ No newline at end of file diff --git a/api/application/views/smc_creditpd_reports/MWISE.php b/api/application/views/smc_creditpd_reports/MWISE.php index 4b08ef18..5ed9f4ba 100644 --- a/api/application/views/smc_creditpd_reports/MWISE.php +++ b/api/application/views/smc_creditpd_reports/MWISE.php @@ -157,11 +157,14 @@ defined('BASEPATH') OR exit('No direct script access allowed'); Name of the Company/Firm + + Name of Person Met During Visit + + $section16_value) { echo ''.$section16_value['member_name'] .''. - ''.$section16_value['relationship'].''. + ''.$section16_value['relationship']['name'].''. ''.$section16_value['stakeholder_relation'].''. - ''.$section16_value['company_relation'].''. + ''.$section16_value['company_relation']['name'].''. // ''.( isset ($section5_value['previous_experience_details']) && $section5_value['previous_experience_details'] ? $section5_value['previous_experience_details'] : 'NA' ).''. - ''.$section5_value['started_biz'].''. + ''.$section16_value['started_biz'].''. ''; } } + if(isset($pd_section_data[16]['common_remarks'])) + { + echo 'Remarks'.$pd_section_data[16]['common_remarks'] .''; + } ?> - +
@@ -282,29 +304,49 @@ defined('BASEPATH') OR exit('No direct script access allowed'); - + $section6_value) { + // print_r($section6_value); echo ''. ''. - ''.''; + ''.''; // ''. // ''. // ''. } + // if(isset($pd_section_data[6]['business_process'])) + // { + // echo ''; + // } + if(isset($pd_section_data[6]['common_remarks'])) + { + echo ''; + } + } ?>
Product/Service Name Contribution Business ProductBusiness Process Briefremarks
'.$section6_value['product_name'] .''.$section6_value['contribution_business_product'].'%'.$section6_value['business_process'].'
'.$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' ).''.$section5_value['started_biz'].'
Remarks'.$pd_section_data[6]['business_process'] .'
Remarks'.$pd_section_data[6]['common_remarks'] .'
+
+ + + ';?> + + +
Business Brief
'.$pd_section_data[6]['business_process'] .'
+ @@ -333,6 +375,25 @@ defined('BASEPATH') OR exit('No direct script access allowed');
+ + + + + + + + + + + + + + + + + +
General Business Information
Business Entity Type
Business Activity
Area of Sale
+ @@ -342,15 +403,20 @@ defined('BASEPATH') OR exit('No direct script access allowed'); - + + + -
Business Seasonal (Yes / No) If Seasonal Please mention the Lean Months
Reason
+ +
Business Assets
@@ -396,6 +462,7 @@ defined('BASEPATH') OR exit('No direct script access allowed'); //print_r($section5);die(); // $totol = 0; + $pd_section_data[10]['financial_info'] = array_reverse($pd_section_data[10]['financial_info']); foreach ($pd_section_data[10]['financial_info'] as $fy_key => $fy_value) { // if(is_numeric($fy_key)) @@ -462,7 +529,7 @@ defined('BASEPATH') OR exit('No direct script access allowed'); // echo ''.($fy_value['sales_py']).''; - if($fy_key == 0) + if($fy_key == (count($pd_section_data[10]['financial_info']) - 1)) { echo 'NA'; } @@ -489,7 +556,7 @@ defined('BASEPATH') OR exit('No direct script access allowed'); { if(is_numeric($fy_key)) { - if($fy_key == 0) + if($fy_key == (count($pd_section_data[10]['financial_info']) - 1)) { echo 'NA'; } @@ -514,7 +581,7 @@ defined('BASEPATH') OR exit('No direct script access allowed'); { if(is_numeric($fy_key)) { - if($fy_key == 0) + if($fy_key == (count($pd_section_data[10]['financial_info']) - 1)) { echo 'NA'; } @@ -533,8 +600,8 @@ defined('BASEPATH') OR exit('No direct script access allowed'); ?> - -
+ + - +
Supplier Details
+ - + @@ -569,14 +637,24 @@ defined('BASEPATH') OR exit('No direct script access allowed'); +';} +if(isset($pd_section_data[11]['common_remarks'])){ + echo '';} + + ?>
Supplier Information Not available. Reason - '.$pd_section_data[11]['supplier_not_available_reason'] .'
Remarks - '.$pd_section_data[11]['common_remarks'] .'
+ + +
Client Details
- + @@ -590,32 +668,41 @@ defined('BASEPATH') OR exit('No direct script access allowed'); +';} +if(isset($pd_section_data[12]['common_remarks'])){ + echo '';} + + ?>
Client Information Not available. Reason - '.$pd_section_data[12]['client_not_available_reason'] .'
Remarks - '.$pd_section_data[12]['common_remarks'] .'

+ + - + - + $section13_value) { echo ''. // ''. + ''. ''. - ''. + ''. ''.''; @@ -627,9 +714,19 @@ defined('BASEPATH') OR exit('No direct script access allowed'); echo ''; } } + else if(isset($pd_section_data[13]['stock_not_available_reason'])) + { + echo ''; + } + if(isset($pd_section_data[13]['common_remarks'])){ + echo '';} + ?>
Details of Stock Sighted during the PD visit
Sr. No.Type of Stock (RM / FG) Stock ItemApprox Stock Value (Rs)Approx Stock Value (Rs) Approx Stock Quantity
'.($section13_key + 1) .''.$section13_value['provider_name'].''.$section13_value['stock_type'].''.$section13_value['provider_name'].''.(isset($section13_value['estimated_stock_value']) ? $section13_value['estimated_stock_value'] : 'NA').''.(isset($section13_value['estimated_stock_value']) ? $section13_value['estimated_stock_value'] : 'NA').''.(isset($section13_value['estimated_quantity']) ? $section13_value['estimated_quantity'].' '.$section13_value['estimated_uom'] : 'NA').'
'.( ucfirst($pd_section_data[13]['estimated_uom']) ) .'
Stock Information Not available. Reason - '.$pd_section_data[13]['stock_not_available_reason'] .'
Remarks - '.$pd_section_data[13]['common_remarks'] .'
+ +

@@ -647,15 +744,15 @@ Business run by the applicant - + - - - + + + '. // ''. ''. ''. - ''. + ''. // ''. - ''.''; + ''.''; } @@ -686,7 +783,7 @@ Business run by the applicant
Business Banking & Personal BankingBusiness Banking & Personal Banking
Sr. No. Account Holder's Name Bank NameAccount TypeVintageAccount TypeOD / CC Limit
$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)') : ''); + // $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 '
'.($section9_key + 1) .''.$section13_value['provider_name'].''.$section9_value['applicant_name'].''.(isset($section9_value['bank_name']) ? $section9_value['bank_name'] : 'NA').''.(isset($section9_value['account_type']) ? $section9_value['account_type'] : 'NA').''.(isset($section9_value['account_type']) ? $section9_value['account_type'] : 'NA').''.(isset($section14_value['estimated_quantity']) ? $section14_value['estimated_quantity'].' '.$section14_value['estimated_uom'] : 'NA').''.$vintage.'
'.(isset($section9_value['cc_limit']) ? $section9_value['cc_limit'] : '-').'

- + + + +
+ + + +
Existing Loan Obligations
+
+ + + + + + + + + + + + + + + + + + + + $value15) + { + echo ''; + } + + + ?> + + +
Sr. No.Loan TypeLoan Amount Availed From Borrower`s Name Instalment Amount (Rs) Instalment Frequency (Rs) Original Tenure (Mnts) Elapsed Tenure (Mnts) Balance Tenure (Mnts)
'. ($key15 + 1) .''. $value15['loan_type'] .''.$rupee_symbol.' '.MYUTIL::customIndianNumberFormat($value15['loan_amount']).''.$value15['lender_name'].''.$value15['loan_taken_by'].''.$rupee_symbol.' '.MYUTIL::customIndianNumberFormat($value15['instalment_amount']).''.$value15['instalment_frequency'].''.$value15['original_tenure_months'].''.$value15['current_tenure_months'].''.$value15['elapsed_tenure_months'].'