Fly Feedback 1 : ps
This commit is contained in:
parent
877ab03d4c
commit
7958ea90cc
@ -846,7 +846,7 @@ class Data_Dump_Controller extends REST_Controller {
|
||||
$replaced_j_arr = $this->traverseArray($replaced_j_arr, $arr10,$general_format);
|
||||
break;
|
||||
case 12:
|
||||
$arr9 = array("employer_name","designation_person_met");
|
||||
$arr12 = array("employer_name","designation_person_met");
|
||||
$replaced_pj_arr = $this->traverseArray($replaced_pj_arr, $arr12,$general_format);
|
||||
$replaced_j_arr = $this->traverseArray($replaced_j_arr, $arr12,$general_format);
|
||||
break;
|
||||
|
||||
@ -206,11 +206,11 @@ class Flyhi_Controller extends REST_Controller {
|
||||
public function listFlyhiPD_get(){
|
||||
|
||||
$user_id = $this->uri->segment(1);
|
||||
|
||||
$columns = array('SALES_PD_DATA.sales_pd_id','SALES_PD_DATA.sales_pd_sno','SALES_PD_DATA.applicant_name','concat(USERPROFILE.first_name," ",USERPROFILE.last_name) as officer_name','SALES_PD_DATA.applicant_id','SALES_PD_DATA.lender_id','SALES_PD_DATA.is_pdf','SALES_PD_DATA.is_edited','ENTITY.full_name','ENTITY.short_name','SALES_PD_DATA.status','SALES_PD_DATA.sales_pd_type','SALES_PD_DATA.rand_string','SALES_PD_DATA.isactive','SALES_PD_DATA.city_id','CITY.name as city_name',
|
||||
'SALES_PD_DATA.lender_sales_person','concat(LENDERSALESPERSON.first_name," ",LENDERSALESPERSON.last_name) as lender_sales_person_name','LENDERSALESPERSON.mobile_no as lender_sales_contact_mobileno','LENDERSALESPERSON.email as lender_sales_person_email',
|
||||
'SALES_PD_DATA.lender_credit_person','concat(LENDERCREDITPERSON.first_name," ",LENDERCREDITPERSON.last_name) as lender_credit_person_name','LENDERCREDITPERSON.mobile_no as lender_credit_person_contact_mobileno','LENDERCREDITPERSON.email as lender_credit_person_email',
|
||||
'SALES_PD_DATA.pd_branch_id','ENTITYLENDERBRANCH.branch_name','SALES_PD_DATA.loan_amount',
|
||||
'(CASE WHEN SALES_PD_DATA.sales_pd_type = 3 THEN "Workplace verification" WHEN SALES_PD_DATA.sales_pd_type = 4 THEN "Residence verification" ELSE "-" END) AS sales_pd_type_master',
|
||||
'(CASE WHEN SALES_PD_DATA.status = "STARTED" THEN SALES_PD_DATA.createdon WHEN SALES_PD_DATA.status = "COMPLETED" THEN SALES_PD_DATA.completed_date ELSE NULL END) AS createdon');
|
||||
$table = SALES_PD_DATA.' as SALES_PD_DATA';
|
||||
|
||||
@ -687,9 +687,10 @@ class Flyhi_Controller extends REST_Controller {
|
||||
// $where_condition_array = array('SALES_PD_DATA.sales_pd_id' => $flyhipd_id);
|
||||
$flyhipd_data = $this->Flyhi_Model->getJoinRecords($columns,$table,$joins,$where_condition_array);
|
||||
$pd_type = "";
|
||||
if($flyhipd_data[0]['sales_pd_type'] == 3){$pd_type = "Office FI PD-"; }else if($flyhipd_data[0]['sales_pd_type'] == 4){$pd_type = "Residence FI PD-";}
|
||||
|
||||
if($flyhipd_data[0]['sales_pd_type'] == 3){$pd_type = "Workplace FI PD-"; }else if($flyhipd_data[0]['sales_pd_type'] == 4){$pd_type = "Residence FI PD-";}
|
||||
// print_r($flyhipd_data);die();
|
||||
if($flyhipd_data)
|
||||
// if(1)
|
||||
{
|
||||
ini_set('max_execution_time', 0);
|
||||
$bucket_name = LENDER_BUCKET_NAME_PREFIX.$flyhipd_data[0]['lender_id'];
|
||||
@ -733,7 +734,7 @@ class Flyhi_Controller extends REST_Controller {
|
||||
//$view_name = $flyhipd_data[0]['short_name'].'_'.$flyhipd_data[0]['abbr'];
|
||||
$view_name = $flyhipd_data[0]['short_name'];
|
||||
$html_content = $this->load->view('sale_pd_templates/'.$view_name,$view_data,true);
|
||||
//echo $html_content;die();
|
||||
// echo $html_content;die();
|
||||
$pdf_doc = $this->pdfgenerator->generate($html_content, $filename='version', $stream=false, $paper = 'A4', $orientation = "portrait");
|
||||
//End of PDF Gen using DOM PDF
|
||||
$output_file = $this->external_path ."/sales_pd/" .$pd_id. "/temp.pdf";
|
||||
|
||||
@ -1,13 +1,15 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
// print_r($master);
|
||||
print_r($master);
|
||||
$uparrow = '<span style="color:green;">↑</span>';
|
||||
$downarrow = '<span style="color:red;">↓</span>';
|
||||
$dash = '<span style="color:black;"> </span>';
|
||||
$product_name = $master[0]['abbr'];
|
||||
$product_abbr = $master[0]['abbr'];
|
||||
$product = $master[0]['name'];
|
||||
$rupee_symbol = "<span style='font-family: DejaVu Sans; sans-serif;font-size:10px'>₹</span>";
|
||||
$title = "";
|
||||
if($section1['verification_type'] == "Office verification"){$title = "Office FI "; }else if($section1['verification_type'] == "Residence verification"){$title = "Residence FI ";}
|
||||
if($section1['verification_type'] == "Office verification" || $section1['verification_type'] == "Workplace verification"){$title = "Workplace FI for ".$product; }
|
||||
else if($section1['verification_type'] == "Residence verification"){$title = "Residence FI for ".$product;}
|
||||
$smc_emp_code = $master[0]['smc_emp_code'];
|
||||
$residence_ownership_arr = array("self_owned" => "Self-Owned","parental"=>"Parental","family_owned"=>"Family Owned","rented"=>"Rented");
|
||||
$residence_yr_arr = array("0"=>"< 1 yr","1"=>"1-2 yrs","2"=>"2 to 5 yrs","3"=>"> 5 yrs");
|
||||
@ -142,7 +144,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
<footer>
|
||||
<hr>
|
||||
<img style="width:100px;height:50px;opacity: 0.5;padding-top: 5px;" src='https://pdgenie.com/logo/sineedge_red.png'/> Powered By PD Genie (FLYHI Team)
|
||||
<img style="width:100px;height:50px;opacity: 0.5;padding-top: 5px;" src='https://pdgenie.com/logo/sineedge_red.png'/> Powered By PD Genie
|
||||
</footer>
|
||||
<header>
|
||||
<div>
|
||||
@ -155,7 +157,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
<tbody>
|
||||
<tr>
|
||||
<th class="thlargefont" colspan="10" ><?php echo $title ?>Personal Discussion by FlyHI Team - <?php echo $product_name; ?> </th>
|
||||
<th class="thlargefont" colspan="10" ><?php echo $title; ?> </th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3"> Lender Name</td>
|
||||
@ -186,11 +188,11 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
<td class = "tdcenteralign" colspan="7"> <?php echo isset($section1['loan_amount']) ? $rupee_symbol.' '.MYUTIL::customIndianNumberFormat($section1['loan_amount']) : 'Not Provided'; ?> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3"> Application Name</td>
|
||||
<td colspan="3"> Applicant Name</td>
|
||||
<td class = "tdcenteralign" colspan="7"> <?php echo isset($section1['applicant_name']) ? $section1['applicant_name'] : 'Not Provided'?> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3"> Application Mobile Number</td>
|
||||
<td colspan="3"> Applicant Mobile Number</td>
|
||||
<td class = "tdcenteralign" colspan="7"> <?php echo isset($section1['applicant_mobile_no']) ? $section1['applicant_mobile_no'] : 'Not Provided'?> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -224,14 +226,14 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
<tr>
|
||||
<td colspan="3">Residence Ownership</td>
|
||||
<td class = "tdcenteralign" colspan="7"> <?php echo isset($section1['residence_ownership']) ? $section1['residence_ownership'] :'Not Provided'; ?> </td>
|
||||
<td class = "tdcenteralign" colspan="7"> <?php echo isset($section1['residence_ownership']) ? $residence_ownership_arr[$section1['residence_ownership']] :'Not Provided'; ?> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3">Years at Current Residence</td>
|
||||
<td class = "tdcenteralign" colspan="7"> <?php echo isset($section1['years_at_current_residence']) ? $section1['years_at_current_residence'] : 'Not Provided' ; ?> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3">Same as Current Residence Address</td>
|
||||
<td colspan="3">Permanent Address Same as Current Residence Address</td>
|
||||
<td class = "tdcenteralign" colspan="7"> <?php echo isset($section1['Same_as_current_residence_address'])?$section1['Same_as_current_residence_address']:'Not Provided'; ?> </td>
|
||||
</tr>
|
||||
<?php if(isset($section1['Same_as_current_residence_address']) && $section1['Same_as_current_residence_address'] == 'No'){?>
|
||||
@ -280,13 +282,13 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3">Occupation of the Loan Applicant</td>
|
||||
<td class = "tdcenteralign" colspan="7"> <?php echo isset($section1['occupation_of_the_loan_applicant'])?$section1['occupation_of_the_loan_applicant']:'Not Provided'; ?> </td>
|
||||
<td class = "tdcenteralign" colspan="7"> <?php echo isset($section1['occupation_of_the_loan_applicant'])?$occupation_arr[$section1['occupation_of_the_loan_applicant']]:'Not Provided'; ?> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3">Employer/Business Name</td>
|
||||
<td class = "tdcenteralign" colspan="7"> <?php echo isset($section1['employer_business_name'])?$section1['employer_business_name']:'Not Provided'; ?> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<!-- <tr>
|
||||
<td colspan="3">Same as Current Business Address</td>
|
||||
<td class = "tdcenteralign" colspan="7"> <?php echo isset($section1['Same_as_current_business_address'])?$section1['Same_as_current_business_address']:'Not Provided'; ?> </td>
|
||||
</tr>
|
||||
@ -308,22 +310,22 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
<td colspan="2" >PIN</td>
|
||||
<td class = "tdcenteralign" colspan="2"><?php echo isset($section1['business_pincode_master'])?$section1['business_pincode_master']:'Not Provided'; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php } ?> -->
|
||||
<tr>
|
||||
<td colspan="3"> Constitution of Employer /Business Applicant</td>
|
||||
<td class = "tdcenteralign" colspan="7"> <?php echo isset($section1['constitution_of_employer_business_applicant']) ? $section1['constitution_of_employer_business_applicant'] : 'Not Provided'?> </td>
|
||||
<td colspan="3"> Constitution of Employer /Business </td>
|
||||
<td class = "tdcenteralign" colspan="7"> <?php echo isset($section1['constitution_of_employer_business_applicant']) ? $constitution_arr[$section1['constitution_of_employer_business_applicant']] : 'Not Provided'?> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3"> Years at Current employment/Business</td>
|
||||
<td class = "tdcenteralign" colspan="7"> <?php echo isset($section1['years_at_current_employment_business'])?$section1['years_at_current_employment_business']:'Not Provided'; ?> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3"> Total Work Experience</td>
|
||||
<td colspan="3"> Total Work Experience (in Years) </td>
|
||||
<td class = "tdcenteralign" colspan="7"> <?php echo isset($section1['total_work_experience'])?$section1['total_work_experience']:'Not Provided'; ?> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3"> Net Monthly Salary/ Net Income</td>
|
||||
<td class = "tdcenteralign" colspan="7"> <?php echo isset($section1['net_monthly_salary_net_income'])?$section1['net_monthly_salary_net_income']:'Not Provided'; ?> </td>
|
||||
<td colspan="3"> Net Monthly Salary/ Net Income (Rs)</td>
|
||||
<td class = "tdcenteralign" colspan="7"> <?php echo isset($section1['net_monthly_salary_net_income'])?$rupee_symbol.' '.MYUTIL::customIndianNumberFormat($section1['net_monthly_salary_net_income']):'Not Provided'; ?> </td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@ -364,11 +366,11 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
<td class = "tdcenteralign" colspan="7"> <?php echo isset($section1['class_section_course_name'])?$section1['class_section_course_name']:'Not Provided'; ?> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3"> Educational Institute Fee</td>
|
||||
<td class = "tdcenteralign" colspan="7"> <?php echo isset($section1['educational_institute_fee'])?$section1['educational_institute_fee']:'Not Provided'; ?> </td>
|
||||
<td colspan="3"> Educational Institute Fee (Rs)</td>
|
||||
<td class = "tdcenteralign" colspan="7"> <?php echo isset($section1['educational_institute_fee'])?$rupee_symbol.' '.MYUTIL::customIndianNumberFormat($section1['educational_institute_fee']):'Not Provided'; ?> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3"> Duration of the Course</td>
|
||||
<td colspan="3"> Duration of the Course (months)</td>
|
||||
<td class = "tdcenteralign" colspan="7"> <?php echo isset($section1['duration_of_the_course'])?$section1['duration_of_the_course']:'Not Provided'; ?> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user