SMART PR REPORTS 2 and FBS
This commit is contained in:
parent
283fbec3f6
commit
b1357f7d15
@ -4897,6 +4897,7 @@ public function getPDFormDetailsJSON_post()
|
||||
for($i = 1;$i<=30;$i++)
|
||||
{
|
||||
$fields = array('processed_json');
|
||||
if($i == 25) { $fields = array('json'); }
|
||||
$where_condition_array = array('isactive' => 1,'fk_pd_id'=>$pdid,'fk_form_id' => $i);
|
||||
$data['pd_processed_forms'][$i] = $this->PD_Model->selectCustomRecords($fields,$where_condition_array,PDFORMDETAILSJSON,array(),'','company_id','ASC');
|
||||
|
||||
@ -4918,7 +4919,7 @@ public function getPDFormDetailsJSON_post()
|
||||
// {
|
||||
|
||||
|
||||
if($data['pd_master_details'][0]['fk_pd_type'] == 1 || $data['pd_master_details'][0]['fk_pd_type'] == 2) //Full PD
|
||||
if($data['pd_master_details'][0]['fk_pd_type'] == 1) //Full PD
|
||||
{
|
||||
|
||||
if($data['pd_master_details'][0]['lender_short_name'] == 'CLIX' || ($data['pd_master_details'][0]['lender_short_name'] == 'MWISE'))// && $data['pd_master_details'][0]['product_abbr'] == 'BL'))
|
||||
@ -4938,6 +4939,25 @@ public function getPDFormDetailsJSON_post()
|
||||
$t = $this->load->view('report_templates/JSONTOREPORT_SAL',$data,true);
|
||||
}
|
||||
}
|
||||
else if($data['pd_master_details'][0]['fk_pd_type'] == 2)
|
||||
{
|
||||
if($data['pd_master_details'][0]['lender_short_name'] == 'CLIX' || ($data['pd_master_details'][0]['lender_short_name'] == 'MWISE'))// && $data['pd_master_details'][0]['product_abbr'] == 'BL'))
|
||||
{
|
||||
$t = $this->load->view('report_templates/JSONTOREPORT_CLIX_SMARTPD',$data,true);
|
||||
}
|
||||
else if($data['pd_master_details'][0]['customer_segment_abbr'] == 'SE-RI')
|
||||
{
|
||||
$t = $this->load->view('report_templates/JSONTOREPORT_RI_SMARTPD',$data,true);
|
||||
}
|
||||
else if($data['pd_master_details'][0]['customer_segment_abbr'] == 'SE-DI' || $data['pd_master_details'][0]['customer_segment_abbr'] == 'SE-AI' || $data['pd_master_details'][0]['customer_segment_abbr'] == 'SEP_INDV')
|
||||
{
|
||||
$t = $this->load->view('report_templates/JSONTOREPORT_DI_AI_SMARTPD',$data,true);
|
||||
}
|
||||
else if($data['pd_master_details'][0]['customer_segment_abbr'] == 'SAL')
|
||||
{
|
||||
$t = $this->load->view('report_templates/JSONTOREPORT_SAL_SMARTPD',$data,true);
|
||||
}
|
||||
}
|
||||
else if($data['pd_master_details'][0]['fk_pd_type'] == 3) //Tele PD
|
||||
{
|
||||
|
||||
@ -6262,7 +6282,7 @@ public function getPDFormDetailsJSON_post()
|
||||
// $this->getPDImages_post``($fields2,array('fk_pd_id'=>$pdid,'fk_form_id' => $i),PDDOCUMENTS,array(),'','company_id','ASC');
|
||||
// print_r($this->db->last_query());
|
||||
}
|
||||
//print_r(json_decode($data['pd_processed_forms'][13][0]['processed_json']));die();
|
||||
//print_r(json_decode($data['pd_processed_forms'][25][0]['json'],true));die();
|
||||
|
||||
if($data['pd_master_details'][0]['customer_segment_abbr'] == "SAL" && $data['pd_master_details'][0]['fk_pd_type'] != 3)
|
||||
{
|
||||
@ -10373,6 +10393,11 @@ public function getCompaniesListsFromGeneralFormRawJSON_post()
|
||||
if(isset($records['vendor_status']) && $records['vendor_status'] == COMPLETED)
|
||||
{
|
||||
$fields_to_update['pd_visit_date'] = date('Y-m-d H:i:s');
|
||||
if(isset($records['is_form_validated']))
|
||||
{
|
||||
$fields_to_update['is_video_merged'] = $records['is_form_validated'];
|
||||
unset($records['is_form_validated']);
|
||||
}
|
||||
}
|
||||
|
||||
$id = $this->PD_Model->updateRecords($fields_to_update,PDTRIGGER,array('pd_id' => $records['pd_id']));
|
||||
|
||||
@ -3,15 +3,20 @@
|
||||
class vendor_form
|
||||
{
|
||||
|
||||
public static function getVendorGeneralSectionContent($vendor_gen_section)
|
||||
public static function getVendorGeneralSectionContent($vendor_gen_section,$cus_type = 1)//1 = Di, 2 = SAL
|
||||
{
|
||||
$CI =&get_instance();
|
||||
$CI->load->model('PD_Model');
|
||||
$return_data = 'DEFULT TEXT';
|
||||
$return_data = 'During FI visit, No one met at the visited premises.';
|
||||
if($cus_type == 2)
|
||||
{
|
||||
$return_data .= 'FI officer clicked Office/Name Board/Entrance photographs and same is available in zipped folder attached with report.';
|
||||
}
|
||||
|
||||
|
||||
if($vendor_gen_section['person_met_entered'])
|
||||
{
|
||||
$return_data = $vendor_gen_section['person_met_entered']." ".$vendor_gen_section['designation_entered'] ." met at the visited address during FI.";
|
||||
$return_data = ($cus_type == 1 ? $vendor_gen_section['person_met_entered']." ".$vendor_gen_section['designation_entered'] ." met at the visited address during FI." : $vendor_gen_section['person_met_entered']. " met at the visited address during FI.");
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -28,7 +33,7 @@ class vendor_form
|
||||
return $return_data;
|
||||
}
|
||||
|
||||
public static function getVendoraddressSectionContent($vendor_add_section)
|
||||
public static function getVendoraddressSectionContent($vendor_add_section,$cus_type = 1)
|
||||
{
|
||||
$CI =&get_instance();
|
||||
$CI->load->model('PD_Model');
|
||||
@ -47,7 +52,9 @@ class vendor_form
|
||||
|
||||
$comment_locality = $CI->PD_Model->selectCustomRecords(array('rating'),array('comments_on_locality_id' => $vendor_add_section['comment_locality']),COMMENTSONLOCALITY);
|
||||
|
||||
return array('initiated_address' => $initiated_address,'actual_address' => $actual_address,'address_type' => $address_type_name[0]['address_type'],'address_locality' => $address_locality[0]['locality_name'],'uom' => $uom[0]['name'],'pd_location_approach' => $pd_location_approach[0]['description'],'comment_locality' => $comment_locality[0]['rating']);
|
||||
$return_data = array('initiated_address' => $initiated_address,'actual_address' => $actual_address,'address_type' => $address_type_name[0]['address_type'],'address_locality' => $address_locality[0]['locality_name'],'pd_location_approach' => $pd_location_approach[0]['description'],'comment_locality' => $comment_locality[0]['rating']);
|
||||
if($cus_type == 1){ $return_data['uom'] = $uom[0]['name']; }
|
||||
return $return_data;
|
||||
}
|
||||
|
||||
static function getAddress($CI,$vendor_add_section,$addres_type = 1)//1 = visited address, 2 = alternative address
|
||||
@ -64,6 +71,15 @@ class vendor_form
|
||||
|
||||
return array('state_name' => $state_name[0]['name'],'city_name' => $city_name[0]['name'],'pincode' => $pincode[0]['pincode']);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
static function getVendorEmpSectionContent($vendor_employer_info)
|
||||
{
|
||||
$CI =&get_instance();
|
||||
$CI->load->model('PD_Model');
|
||||
$company_relationship_id = $vendor_employer_info['employer_details']['designation_person_met'];
|
||||
$company_relationship = $CI->PD_Model->selectCustomRecords(array('name'),array('company_relationship_id' => $company_relationship_id),COMPANYRELATIONSHIPS);
|
||||
return $company_relationship && count($company_relationship) ? $company_relationship[0]['name'] : '';
|
||||
}
|
||||
}
|
||||
?>
|
||||
@ -14,7 +14,7 @@ class PD_Model extends SPARQ_Model {
|
||||
public function listLessPDDetails($page,$limit,$sort,$pdofficerid,$datetype,$fdate,$tdate,$lenderid,$status,$lender_details,$pdagencyid,$vendor_pdofficer)// $page represents mysql offset
|
||||
{
|
||||
//echo $pd_agency_id;die();
|
||||
$this->db->SELECT('PDTRIGGER.pd_id,PDTRIGGER.imgc_fin_institute,PDTRIGGER.pd_sno,PDTRIGGER.fk_lender_id,PDTRIGGER.sub_entity_id,SUBENTITY.short_name as sub_entity_short_name,ENTITY.full_name as lender_full_name,ENTITY.short_name as lender_short_name,PDTRIGGER.fk_entity_billing_id,ENTITYBILLING.billing_name, PDTRIGGER.lender_applicant_id, DATE_FORMAT(PDTRIGGER.pd_date_of_initiation, "%d/%m/%Y") as pd_date_of_initiation, PDTRIGGER.fk_product_id,PRODUCTS.name as product_name,PRODUCTS.abbr as product_abbr, PRODUCTS.prod_catagory,PDTRIGGER.fk_subproduct_id,SUBPRODUCTS.name as subproduct_name,SUBPRODUCTS.abbr as subproduct_abbr, PDTRIGGER.fk_pd_type,PDTYPE.type_name as pd_type_name, PDTRIGGER.pd_status,PDTRIGGER.pd_specific_clarification, DATE_FORMAT(PDTRIGGER.createdon,"%d/%m/%Y %H:%i:%s") as createdon, PDTRIGGER.fk_createdby, DATE_FORMAT(PDTRIGGER.updatedon,"%d/%m/%Y %H:%i:%s") as master_updatedon, PDTRIGGER.fk_updatedby,concat(USERPROFILE.first_name," ",USERPROFILE.last_name) as createdby,concat(USERPROFILE1.first_name," ",USERPROFILE1.last_name) as updatedby, PDTRIGGER.fk_pd_allocation_type,,PDALLOCATIONTYPE.pd_allocation_type_name, PDTRIGGER.fk_pd_allocated_to,concat(USERPROFILE2.first_name," ",USERPROFILE2.last_name) as pd_allocated_to,PDTRIGGER.executive_id,concat(EXECUTIVE.first_name," ",EXECUTIVE.last_name) as executive_name,PDTRIGGER.central_pd_officer_id,concat(CENTRALOFFICER.first_name," ",CENTRALOFFICER.last_name) as centralofficer,PDTRIGGER.fk_pd_template_id,TEMPLATE.template_name, PDTRIGGER.fk_customer_segment,CUSTOMERSEGMENT.name as customer_segment_name,CUSTOMERSEGMENT.abbr as customer_segment_abbr, PDTRIGGER.pd_officier_final_judgement, PDTRIGGER.pd_agency_id,AGENCY.full_name as agency_name, PDTRIGGER.loan_amount,PDTRIGGER.addressline1,PDTRIGGER.addressline2,PDTRIGGER.addressline3,PDTRIGGER.fk_city,CITY.name as city_name,PDTRIGGER.fk_state,STATE.name as state_name,PINCODE.pincode,PDTRIGGER.pincode as pincode_id,PDTRIGGER.pd_contact_person,PDTRIGGER.pd_contact_mobileno,DATE_FORMAT(PDTRIGGER.scheduled_on,"%d/%m/%Y %h:%i %p") as scheduled_on,DATE_FORMAT(PDTRIGGER.completed_on,"%d/%m/%Y %h:%i:%s %p") as completed_on,PDTRIGGER.remarks,PDTRIGGER.is_original_report_created,PDTRIGGER.pd_report_latest_version,PDTRIGGER.pd_branch_id,ENTITYLENDERBRANCH.branch_name,PDTRIGGER.qc_feedback,PDTRIGGER.qc_rating,PDTRIGGER.qc_remarks,PDTRIGGER.lender_rating,PDTRIGGER.lender_feedback,PDTRIGGER.other_pincode,PDAPPLICANTSDETAILS.applicant_name,PDTRIGGER.is_otp_done,PDTRIGGER.is_child,PDTRIGGER.parent_pd_id,PDTRIGGER.fk_primary_address_id,PDTRIGGER.fk_address_id,PDTRIGGER.encrypted_url,PDTRIGGER.random_string,PDTRIGGER.pd_qc_note,ENTITY.is_sms_enabled,ENTITY.is_mail_enabled,ENTITY.is_app_notify_enabled,PDTRIGGER.is_notify_enabled,(SELECT DATE_FORMAT(createdon,"%d/%m/%Y") FROM h_common_masters where PDTRIGGER.pd_id = primary_key AND field_name = "pd_status" order by log_id DESC limit 1) as updatedon,ENTITYFININSTITUTION.institute_name as fin_institute_name,PDTRIGGER.is_video_merged,PDTRIGGER.vendor_status');
|
||||
$this->db->SELECT('PDTRIGGER.pd_id,PDTRIGGER.imgc_fin_institute,PDTRIGGER.pd_sno,PDTRIGGER.fk_lender_id,PDTRIGGER.sub_entity_id,SUBENTITY.short_name as sub_entity_short_name,ENTITY.full_name as lender_full_name,ENTITY.short_name as lender_short_name,PDTRIGGER.fk_entity_billing_id,ENTITYBILLING.billing_name, PDTRIGGER.lender_applicant_id, DATE_FORMAT(PDTRIGGER.pd_date_of_initiation, "%d/%m/%Y") as pd_date_of_initiation, PDTRIGGER.fk_product_id,PRODUCTS.name as product_name,PRODUCTS.abbr as product_abbr, PRODUCTS.prod_catagory,PDTRIGGER.fk_subproduct_id,SUBPRODUCTS.name as subproduct_name,SUBPRODUCTS.abbr as subproduct_abbr, PDTRIGGER.fk_pd_type,PDTYPE.type_name as pd_type_name, PDTRIGGER.pd_status,PDTRIGGER.pd_specific_clarification, DATE_FORMAT(PDTRIGGER.createdon,"%d/%m/%Y %H:%i:%s") as createdon, PDTRIGGER.fk_createdby, DATE_FORMAT(PDTRIGGER.updatedon,"%d/%m/%Y %H:%i:%s") as master_updatedon, PDTRIGGER.fk_updatedby,concat(USERPROFILE.first_name," ",USERPROFILE.last_name) as createdby,concat(USERPROFILE1.first_name," ",USERPROFILE1.last_name) as updatedby, PDTRIGGER.fk_pd_allocation_type,,PDALLOCATIONTYPE.pd_allocation_type_name, PDTRIGGER.fk_pd_allocated_to,concat(USERPROFILE2.first_name," ",USERPROFILE2.last_name) as pd_allocated_to,PDTRIGGER.executive_id,concat(EXECUTIVE.first_name," ",EXECUTIVE.last_name) as executive_name,PDTRIGGER.central_pd_officer_id,concat(CENTRALOFFICER.first_name," ",CENTRALOFFICER.last_name) as centralofficer,PDTRIGGER.fk_pd_template_id,TEMPLATE.template_name, PDTRIGGER.fk_customer_segment,CUSTOMERSEGMENT.name as customer_segment_name,CUSTOMERSEGMENT.abbr as customer_segment_abbr, PDTRIGGER.pd_officier_final_judgement, PDTRIGGER.pd_agency_id,AGENCY.full_name as agency_name,AGENCY.is_qc_enabled, PDTRIGGER.loan_amount,PDTRIGGER.addressline1,PDTRIGGER.addressline2,PDTRIGGER.addressline3,PDTRIGGER.fk_city,CITY.name as city_name,PDTRIGGER.fk_state,STATE.name as state_name,PINCODE.pincode,PDTRIGGER.pincode as pincode_id,PDTRIGGER.pd_contact_person,PDTRIGGER.pd_contact_mobileno,DATE_FORMAT(PDTRIGGER.scheduled_on,"%d/%m/%Y %h:%i %p") as scheduled_on,DATE_FORMAT(PDTRIGGER.completed_on,"%d/%m/%Y %h:%i:%s %p") as completed_on,PDTRIGGER.remarks,PDTRIGGER.is_original_report_created,PDTRIGGER.pd_report_latest_version,PDTRIGGER.pd_branch_id,ENTITYLENDERBRANCH.branch_name,PDTRIGGER.qc_feedback,PDTRIGGER.qc_rating,PDTRIGGER.qc_remarks,PDTRIGGER.lender_rating,PDTRIGGER.lender_feedback,PDTRIGGER.other_pincode,PDAPPLICANTSDETAILS.applicant_name,PDTRIGGER.is_otp_done,PDTRIGGER.is_child,PDTRIGGER.parent_pd_id,PDTRIGGER.fk_primary_address_id,PDTRIGGER.fk_address_id,PDTRIGGER.encrypted_url,PDTRIGGER.random_string,PDTRIGGER.pd_qc_note,ENTITY.is_sms_enabled,ENTITY.is_mail_enabled,ENTITY.is_app_notify_enabled,PDTRIGGER.is_notify_enabled,(SELECT DATE_FORMAT(createdon,"%d/%m/%Y") FROM h_common_masters where PDTRIGGER.pd_id = primary_key AND field_name = "pd_status" order by log_id DESC limit 1) as updatedon,ENTITYFININSTITUTION.institute_name as fin_institute_name,PDTRIGGER.is_video_merged,PDTRIGGER.vendor_status');
|
||||
//$this->db->SELECT('pd_sno,fk_lender_id,pd_agency_id,pd_status,vendor_status');
|
||||
$this->db->FROM(PDTRIGGER.' as PDTRIGGER');
|
||||
$this->db->JOIN(ENTITY.' as ENTITY','PDTRIGGER.fk_lender_id = ENTITY.entity_id','LEFT');
|
||||
@ -187,7 +187,7 @@ class PD_Model extends SPARQ_Model {
|
||||
{
|
||||
|
||||
$limit = 1000;
|
||||
$this->db->SELECT('PDTRIGGER.pd_id, PDTRIGGER.pd_sno,PDTRIGGER.fk_lender_id,PDTRIGGER.sub_entity_id,SUBENTITY.short_name as sub_entity_short_name,PDTRIGGER.imgc_fin_institute,ENTITY.full_name as lender_full_name,ENTITY.short_name as lender_short_name,ENTITY.is_score_card_enabled,ENTITY.is_otp_enabled, PDTRIGGER.fk_entity_billing_id,ENTITYBILLING.billing_name,PDTRIGGER.lender_applicant_id, DATE_FORMAT(PDTRIGGER.pd_date_of_initiation, "%d/%m/%Y") as pd_date_of_initiation,PDTRIGGER.pd_date_of_initiation as pd_date_of_initiation_sqlformat, PDTRIGGER.fk_product_id,PRODUCTS.name as product_name,PRODUCTS.abbr as product_abbr, PRODUCTS.prod_catagory, PDTRIGGER.fk_subproduct_id,SUBPRODUCTS.name as subproduct_name,SUBPRODUCTS.abbr as subproduct_abbr, PDTRIGGER.fk_pd_type,PDTYPE.type_name as pd_type_name, PDTRIGGER.pd_status,PDTRIGGER.pd_specific_clarification, DATE_FORMAT(PDTRIGGER.createdon,"%d/%m/%Y %h:%i:%s %p") as createdon, PDTRIGGER.fk_createdby, DATE_FORMAT(PDTRIGGER.updatedon,"%d/%m/%Y %H:%i %p") as master_updatedon, PDTRIGGER.fk_updatedby,concat(USERPROFILE.first_name," ",USERPROFILE.last_name) as createdby,concat(USERPROFILE1.first_name," ",USERPROFILE1.last_name) as updatedby, PDTRIGGER.fk_pd_allocation_type,,PDALLOCATIONTYPE.pd_allocation_type_name, PDTRIGGER.fk_pd_allocated_to,concat(USERPROFILE2.first_name," ",USERPROFILE2.last_name) as pd_allocated_to,PDTRIGGER.executive_id,concat(EXECUTIVE.first_name," ",EXECUTIVE.last_name) as executive_name,PDTRIGGER.central_pd_officer_id,concat(CENTRALOFFICER.first_name," ",CENTRALOFFICER.last_name) as centralofficer,PDTRIGGER.fk_pd_template_id,TEMPLATE.template_name, PDTRIGGER.fk_customer_segment,CUSTOMERSEGMENT.name as customer_segment_name,CUSTOMERSEGMENT.abbr as customer_segment_abbr, PDTRIGGER.pd_officier_final_judgement, PDTRIGGER.pd_agency_id,AGENCY.full_name as agency_name, PDTRIGGER.loan_amount,PDTRIGGER.addressline1,PDTRIGGER.addressline2,PDTRIGGER.addressline3,PDTRIGGER.fk_city,CITY.name as city_name,PDTRIGGER.fk_state,STATE.name as state_name,PINCODE.pincode,PDTRIGGER.pincode as pincode_id,PDTRIGGER.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,PDTRIGGER.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,PDTRIGGER.pd_contact_person,PDTRIGGER.pd_contact_mobileno,DATE_FORMAT(PDTRIGGER.scheduled_on,"%d/%m/%Y %h:%i %p") as scheduled_on,PDTRIGGER.scheduled_on as scheduled_on_for_validation,DATE_FORMAT(PDTRIGGER.scheduled_on,"%dth %b %Y ") as scheduled_date_for_log,DATE_FORMAT(PDTRIGGER.scheduled_on,"%h:%i %p") as scheduled_time_for_log,DATE_FORMAT(PDTRIGGER.completed_on,"%d/%m/%Y %h:%i:%s %p") as completed_on,PDTRIGGER.remarks,PDTRIGGER.bounce_reason,PDTRIGGER.bounce_reason_others,BOUNCEMASTER.bounce_reason_name,PDTRIGGER.is_original_report_created,PDTRIGGER.pd_report_latest_version,PDAPPLICANTSDETAILS.applicant_name,PDAPPLICANTSDETAILS.applicant_name as main_applicant,PDTRIGGER.pd_branch_id,ENTITYLENDERBRANCH.branch_name,PDTRIGGER.qc_feedback,PDTRIGGER.qc_rating,PDTRIGGER.qc_remarks,PDTRIGGER.lender_rating,PDTRIGGER.lender_feedback,PDAPPLICANTSDETAILS.applicant_title_name,TITLES.name as title_name,PDTRIGGER.pd_contact_landline,PDTRIGGER.other_pincode,PDTRIGGER.is_otp_done,OTPREJECTION.rejection_reason,PDTRIGGER.otp_reject_other_reason,PDTRIGGER.encrypted_url,PDTRIGGER.is_child,PDTRIGGER.parent_pd_id,PDTRIGGER.fk_primary_address_id,PDTRIGGER.fk_address_id,PDTRIGGER.start_location,PDTRIGGER.satellite_image_base64_blob,DATE_FORMAT(PDTRIGGER.pd_report_generated_date,"%d/%m/%Y %h:%i:%s %p") as pd_report_generated_date,DATE_FORMAT(PDTRIGGER.pd_visit_date,"%d/%m/%Y %h:%i:%s %p") as pd_visit_date,PDTRIGGER.random_string,PDTRIGGER.pd_report_html_filename,PDTRIGGER.is_qc_edited,PDTRIGGER.is_zip_created,PDTRIGGER.pd_qc_note,PDTRIGGER.is_notify_enabled,(SELECT DATE_FORMAT(createdon,, "%d/%m/%Y") FROM h_common_masters where PDTRIGGER.pd_id = primary_key AND field_name = "pd_status" order by log_id DESC limit 1) as updatedon,ENTITYFININSTITUTION.institute_name as fin_institute_name,PDTRIGGER.vendor_status');
|
||||
$this->db->SELECT('PDTRIGGER.pd_id, PDTRIGGER.pd_sno,PDTRIGGER.fk_lender_id,PDTRIGGER.sub_entity_id,SUBENTITY.short_name as sub_entity_short_name,PDTRIGGER.imgc_fin_institute,ENTITY.full_name as lender_full_name,ENTITY.short_name as lender_short_name,ENTITY.is_score_card_enabled,ENTITY.is_otp_enabled, PDTRIGGER.fk_entity_billing_id,ENTITYBILLING.billing_name,PDTRIGGER.lender_applicant_id, DATE_FORMAT(PDTRIGGER.pd_date_of_initiation, "%d/%m/%Y") as pd_date_of_initiation,PDTRIGGER.pd_date_of_initiation as pd_date_of_initiation_sqlformat, PDTRIGGER.fk_product_id,PRODUCTS.name as product_name,PRODUCTS.abbr as product_abbr, PRODUCTS.prod_catagory, PDTRIGGER.fk_subproduct_id,SUBPRODUCTS.name as subproduct_name,SUBPRODUCTS.abbr as subproduct_abbr, PDTRIGGER.fk_pd_type,PDTYPE.type_name as pd_type_name, PDTRIGGER.pd_status,PDTRIGGER.pd_specific_clarification, DATE_FORMAT(PDTRIGGER.createdon,"%d/%m/%Y %h:%i:%s %p") as createdon, PDTRIGGER.fk_createdby, DATE_FORMAT(PDTRIGGER.updatedon,"%d/%m/%Y %H:%i %p") as master_updatedon, PDTRIGGER.fk_updatedby,concat(USERPROFILE.first_name," ",USERPROFILE.last_name) as createdby,concat(USERPROFILE1.first_name," ",USERPROFILE1.last_name) as updatedby, PDTRIGGER.fk_pd_allocation_type,,PDALLOCATIONTYPE.pd_allocation_type_name, PDTRIGGER.fk_pd_allocated_to,concat(USERPROFILE2.first_name," ",USERPROFILE2.last_name) as pd_allocated_to,PDTRIGGER.executive_id,concat(EXECUTIVE.first_name," ",EXECUTIVE.last_name) as executive_name,PDTRIGGER.central_pd_officer_id,concat(CENTRALOFFICER.first_name," ",CENTRALOFFICER.last_name) as centralofficer,PDTRIGGER.fk_pd_template_id,TEMPLATE.template_name, PDTRIGGER.fk_customer_segment,CUSTOMERSEGMENT.name as customer_segment_name,CUSTOMERSEGMENT.abbr as customer_segment_abbr, PDTRIGGER.pd_officier_final_judgement, PDTRIGGER.pd_agency_id,AGENCY.full_name as agency_name,AGENCY.is_qc_enabled, PDTRIGGER.loan_amount,PDTRIGGER.addressline1,PDTRIGGER.addressline2,PDTRIGGER.addressline3,PDTRIGGER.fk_city,CITY.name as city_name,PDTRIGGER.fk_state,STATE.name as state_name,PINCODE.pincode,PDTRIGGER.pincode as pincode_id,PDTRIGGER.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,PDTRIGGER.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,PDTRIGGER.pd_contact_person,PDTRIGGER.pd_contact_mobileno,DATE_FORMAT(PDTRIGGER.scheduled_on,"%d/%m/%Y %h:%i %p") as scheduled_on,PDTRIGGER.scheduled_on as scheduled_on_for_validation,DATE_FORMAT(PDTRIGGER.scheduled_on,"%dth %b %Y ") as scheduled_date_for_log,DATE_FORMAT(PDTRIGGER.scheduled_on,"%h:%i %p") as scheduled_time_for_log,DATE_FORMAT(PDTRIGGER.completed_on,"%d/%m/%Y %h:%i:%s %p") as completed_on,PDTRIGGER.remarks,PDTRIGGER.bounce_reason,PDTRIGGER.bounce_reason_others,BOUNCEMASTER.bounce_reason_name,PDTRIGGER.is_original_report_created,PDTRIGGER.pd_report_latest_version,PDAPPLICANTSDETAILS.applicant_name,PDAPPLICANTSDETAILS.applicant_name as main_applicant,PDTRIGGER.pd_branch_id,ENTITYLENDERBRANCH.branch_name,PDTRIGGER.qc_feedback,PDTRIGGER.qc_rating,PDTRIGGER.qc_remarks,PDTRIGGER.lender_rating,PDTRIGGER.lender_feedback,PDAPPLICANTSDETAILS.applicant_title_name,TITLES.name as title_name,PDTRIGGER.pd_contact_landline,PDTRIGGER.other_pincode,PDTRIGGER.is_otp_done,OTPREJECTION.rejection_reason,PDTRIGGER.otp_reject_other_reason,PDTRIGGER.encrypted_url,PDTRIGGER.is_child,PDTRIGGER.parent_pd_id,PDTRIGGER.fk_primary_address_id,PDTRIGGER.fk_address_id,PDTRIGGER.start_location,PDTRIGGER.satellite_image_base64_blob,DATE_FORMAT(PDTRIGGER.pd_report_generated_date,"%d/%m/%Y %h:%i:%s %p") as pd_report_generated_date,DATE_FORMAT(PDTRIGGER.pd_visit_date,"%d/%m/%Y %h:%i:%s %p") as pd_visit_date,PDTRIGGER.random_string,PDTRIGGER.pd_report_html_filename,PDTRIGGER.is_qc_edited,PDTRIGGER.is_zip_created,PDTRIGGER.pd_qc_note,PDTRIGGER.is_notify_enabled,(SELECT DATE_FORMAT(createdon,, "%d/%m/%Y") FROM h_common_masters where PDTRIGGER.pd_id = primary_key AND field_name = "pd_status" order by log_id DESC limit 1) as updatedon,ENTITYFININSTITUTION.institute_name as fin_institute_name,PDTRIGGER.vendor_status');
|
||||
$this->db->FROM(PDTRIGGER.' as PDTRIGGER');
|
||||
$this->db->JOIN(ENTITY.' as ENTITY','PDTRIGGER.fk_lender_id = ENTITY.entity_id ','LEFT');
|
||||
$this->db->JOIN(ENTITY.' as SUBENTITY','PDTRIGGER.sub_entity_id = SUBENTITY.entity_id ','LEFT');
|
||||
@ -1993,7 +1993,7 @@ class PD_Model extends SPARQ_Model {
|
||||
|
||||
public function getAddtionalPDInformations($addressid)
|
||||
{
|
||||
$this->db->SELECT('PDTRIGGER.pd_id, PDTRIGGER.fk_lender_id,PDTRIGGER.sub_entity_id,SUBENTITY.short_name as sub_entity_short_name,ENTITY.full_name as lender_full_name,ENTITY.short_name as lender_short_name, PDTRIGGER.fk_entity_billing_id,ENTITYBILLING.billing_name,PDTRIGGER.lender_applicant_id, DATE_FORMAT(PDTRIGGER.pd_date_of_initiation, "%d/%m/%Y") as pd_date_of_initiation, PDTRIGGER.fk_product_id,PRODUCTS.name as product_name,PRODUCTS.abbr as product_abbr, PDTRIGGER.fk_subproduct_id,SUBPRODUCTS.name as subproduct_name,SUBPRODUCTS.abbr as subproduct_abbr, PDTRIGGER.fk_pd_type,PDTYPE.type_name as pd_type_name, PDTRIGGER.pd_status,PDTRIGGER.pd_specific_clarification, DATE_FORMAT(PDTRIGGER.createdon,"%d/%m/%Y %H:%i %p") as createdon, PDTRIGGER.fk_createdby, DATE_FORMAT(PDTRIGGER.updatedon,"%d/%m/%Y %H:%i %p") as updatedon, PDTRIGGER.fk_updatedby,concat(USERPROFILE.first_name," ",USERPROFILE.last_name) as createdby,concat(USERPROFILE1.first_name," ",USERPROFILE1.last_name) as updatedby, PDTRIGGER.fk_pd_allocation_type,,PDALLOCATIONTYPE.pd_allocation_type_name, PDTRIGGER.fk_pd_allocated_to,concat(USERPROFILE2.first_name," ",USERPROFILE2.last_name) as pd_allocated_to,PDTRIGGER.executive_id,concat(EXECUTIVE.first_name," ",EXECUTIVE.last_name) as executive_name,PDTRIGGER.central_pd_officer_id,concat(CENTRALOFFICER.first_name," ",CENTRALOFFICER.last_name) as centralofficer,PDTRIGGER.fk_pd_template_id,TEMPLATE.template_name, PDTRIGGER.fk_customer_segment,CUSTOMERSEGMENT.name as customer_segment_name,CUSTOMERSEGMENT.abbr as customer_segment_abbr, PDTRIGGER.pd_officier_final_judgement, PDTRIGGER.pd_agency_id,AGENCY.full_name as agency_name,PDTRIGGER.vendor_pdofficer,concat(VENDORPDOFFICER.first_name," ",VENDORPDOFFICER.last_name) as vendor_pdofficer_name,PDTRIGGER.loan_amount,PDTRIGGER.addressline1,PDTRIGGER.addressline2,PDTRIGGER.addressline3,PDTRIGGER.fk_city,CITY.name as city_name,PDTRIGGER.fk_state,STATE.name as state_name,PINCODE.pincode,PDTRIGGER.pincode as pincode_id,PDTRIGGER.pd_contact_person,PDTRIGGER.pd_contact_mobileno,DATE_FORMAT(PDTRIGGER.scheduled_on,"%d/%m/%Y %h:%i %p") as scheduled_on,PDTRIGGER.scheduled_on as scheduled_on_for_validation,DATE_FORMAT(PDTRIGGER.scheduled_on,"%dth %b %Y ") as scheduled_date_for_log,DATE_FORMAT(PDTRIGGER.scheduled_on,"%h:%i %p") as scheduled_time_for_log,DATE_FORMAT(PDTRIGGER.completed_on,"%d/%m/%Y %h:%i:%s %p") as completed_on,PDTRIGGER.remarks,PDTRIGGER.bounce_reason,PDTRIGGER.bounce_reason_others,BOUNCEMASTER.bounce_reason_name,PDTRIGGER.is_original_report_created,PDTRIGGER.pd_report_latest_version,PDTRIGGER.pd_branch_id,ENTITYLENDERBRANCH.branch_name,PDTRIGGER.qc_feedback,PDTRIGGER.qc_rating,PDTRIGGER.qc_remarks,PDTRIGGER.lender_rating,PDTRIGGER.lender_feedback,PDTRIGGER.pd_contact_landline,PDTRIGGER.other_pincode,PDTRIGGER.is_otp_done,OTPREJECTION.rejection_reason,PDTRIGGER.otp_reject_other_reason,PDTRIGGER.encrypted_url,PDTRIGGER.is_child,PDTRIGGER.parent_pd_id,PDTRIGGER.fk_primary_address_id,PDTRIGGER.fk_address_id,PDTRIGGER.random_string,PRODUCTS.prod_catagory,,PDTRIGGER.vendor_status');
|
||||
$this->db->SELECT('PDTRIGGER.pd_id, PDTRIGGER.fk_lender_id,PDTRIGGER.sub_entity_id,SUBENTITY.short_name as sub_entity_short_name,ENTITY.full_name as lender_full_name,ENTITY.short_name as lender_short_name, PDTRIGGER.fk_entity_billing_id,ENTITYBILLING.billing_name,PDTRIGGER.lender_applicant_id, DATE_FORMAT(PDTRIGGER.pd_date_of_initiation, "%d/%m/%Y") as pd_date_of_initiation, PDTRIGGER.fk_product_id,PRODUCTS.name as product_name,PRODUCTS.abbr as product_abbr, PDTRIGGER.fk_subproduct_id,SUBPRODUCTS.name as subproduct_name,SUBPRODUCTS.abbr as subproduct_abbr, PDTRIGGER.fk_pd_type,PDTYPE.type_name as pd_type_name, PDTRIGGER.pd_status,PDTRIGGER.pd_specific_clarification, DATE_FORMAT(PDTRIGGER.createdon,"%d/%m/%Y %H:%i %p") as createdon, PDTRIGGER.fk_createdby, DATE_FORMAT(PDTRIGGER.updatedon,"%d/%m/%Y %H:%i %p") as updatedon, PDTRIGGER.fk_updatedby,concat(USERPROFILE.first_name," ",USERPROFILE.last_name) as createdby,concat(USERPROFILE1.first_name," ",USERPROFILE1.last_name) as updatedby, PDTRIGGER.fk_pd_allocation_type,,PDALLOCATIONTYPE.pd_allocation_type_name, PDTRIGGER.fk_pd_allocated_to,concat(USERPROFILE2.first_name," ",USERPROFILE2.last_name) as pd_allocated_to,PDTRIGGER.executive_id,concat(EXECUTIVE.first_name," ",EXECUTIVE.last_name) as executive_name,PDTRIGGER.central_pd_officer_id,concat(CENTRALOFFICER.first_name," ",CENTRALOFFICER.last_name) as centralofficer,PDTRIGGER.fk_pd_template_id,TEMPLATE.template_name, PDTRIGGER.fk_customer_segment,CUSTOMERSEGMENT.name as customer_segment_name,CUSTOMERSEGMENT.abbr as customer_segment_abbr, PDTRIGGER.pd_officier_final_judgement, PDTRIGGER.pd_agency_id,AGENCY.full_name as agency_name,AGENCY.is_qc_enabled,PDTRIGGER.vendor_pdofficer,concat(VENDORPDOFFICER.first_name," ",VENDORPDOFFICER.last_name) as vendor_pdofficer_name,PDTRIGGER.loan_amount,PDTRIGGER.addressline1,PDTRIGGER.addressline2,PDTRIGGER.addressline3,PDTRIGGER.fk_city,CITY.name as city_name,PDTRIGGER.fk_state,STATE.name as state_name,PINCODE.pincode,PDTRIGGER.pincode as pincode_id,PDTRIGGER.pd_contact_person,PDTRIGGER.pd_contact_mobileno,DATE_FORMAT(PDTRIGGER.scheduled_on,"%d/%m/%Y %h:%i %p") as scheduled_on,PDTRIGGER.scheduled_on as scheduled_on_for_validation,DATE_FORMAT(PDTRIGGER.scheduled_on,"%dth %b %Y ") as scheduled_date_for_log,DATE_FORMAT(PDTRIGGER.scheduled_on,"%h:%i %p") as scheduled_time_for_log,DATE_FORMAT(PDTRIGGER.completed_on,"%d/%m/%Y %h:%i:%s %p") as completed_on,PDTRIGGER.remarks,PDTRIGGER.bounce_reason,PDTRIGGER.bounce_reason_others,BOUNCEMASTER.bounce_reason_name,PDTRIGGER.is_original_report_created,PDTRIGGER.pd_report_latest_version,PDTRIGGER.pd_branch_id,ENTITYLENDERBRANCH.branch_name,PDTRIGGER.qc_feedback,PDTRIGGER.qc_rating,PDTRIGGER.qc_remarks,PDTRIGGER.lender_rating,PDTRIGGER.lender_feedback,PDTRIGGER.pd_contact_landline,PDTRIGGER.other_pincode,PDTRIGGER.is_otp_done,OTPREJECTION.rejection_reason,PDTRIGGER.otp_reject_other_reason,PDTRIGGER.encrypted_url,PDTRIGGER.is_child,PDTRIGGER.parent_pd_id,PDTRIGGER.fk_primary_address_id,PDTRIGGER.fk_address_id,PDTRIGGER.random_string,PRODUCTS.prod_catagory,,PDTRIGGER.vendor_status');
|
||||
$this->db->FROM(PDTRIGGER.' as PDTRIGGER');
|
||||
$this->db->JOIN(ENTITY.' as ENTITY','PDTRIGGER.fk_lender_id = ENTITY.entity_id ','LEFT');
|
||||
$this->db->JOIN(ENTITY.' as SUBENTITY','PDTRIGGER.sub_entity_id = SUBENTITY.entity_id ','LEFT');
|
||||
|
||||
@ -4791,9 +4791,10 @@ if($total_no_of_business > 0) {
|
||||
if(($vendor_business_info['documents_sighted'] == 'yes'))
|
||||
{
|
||||
$doc_names = '';
|
||||
$photo_names = array('rent_agreement' => 'Rent Agreement','eb_bill' => 'EB Bill','factory_cert' => 'Factory Certificate','export_import_cert' => 'Export/Import Certificate','esic_regn' => 'ESIC Registration','pf_regn' => 'PF Registration','gst_Regn_cert' => 'GST Registration','shop_eat_act_cert' => 'Shop/Est act Certificate','practice_cert' => 'Practice Certificate');
|
||||
foreach ($vendor_business_info['documents_info'] as $doc_key => $doc_value)
|
||||
{
|
||||
$doc_names .= $doc_value['document_name'].', ';
|
||||
$doc_names .= $photo_names [ $doc_value['document_name'] ].', ';
|
||||
}
|
||||
|
||||
$doc_names = substr_replace($doc_names,' ',-2);
|
||||
@ -4895,6 +4896,7 @@ if($total_no_of_business > 0) {
|
||||
echo '<p><b>Name of the FI Officer visited:</b>'.$pd_master_details[0]['vendor_pdofficer_name'].'</p>';
|
||||
echo '<p><b>Name of the FI Agency visited:</b>'.$pd_master_details[0]['agency_name'].'</p>';
|
||||
echo '<p><b>Date & Time of FI visit:</b>'.$pd_master_details[0]['pd_visit_date'].'</p>';
|
||||
echo '<div><img style="width:100px;height:50px;opacity: 0.5;" src="https://apitest.pdgenie.com/sparqtest/api/vs.jpg"/></div>';
|
||||
|
||||
|
||||
|
||||
|
||||
@ -552,11 +552,121 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
echo '<p align="justify"><i><strong>Registered / Corporate Office:</strong> SineEdge Consulting Private Limited. A-211, Pioneer Urban Square, Golf Course Extension Road, Sector 62, Gurgaon, Haryana - 122002</i></p>';
|
||||
?>
|
||||
|
||||
<!-- ######################### VENDOR SECTION START ###########################-->
|
||||
<!-- ######################### VENDOR SECTION START ###########################-->
|
||||
<?php
|
||||
$vendor_form_json = json_decode($pd_processed_forms[25][0]['json'],true);
|
||||
echo "<h2><center>Vendor FI Report of $main_applicant_name</center></h2>";
|
||||
echo '<p><b>General Section</b></p>';
|
||||
$vendor_gen_section_text = vendor_form::getVendorGeneralSectionContent($vendor_form_json['questions'][0],2);
|
||||
echo "<p>$vendor_gen_section_text</p>";
|
||||
|
||||
|
||||
echo '<p><b>Employer information</b></p>';
|
||||
$vendor_employer_info = $vendor_form_json['questions'][2];
|
||||
|
||||
if(array_key_exists('employer_details',$vendor_employer_info))
|
||||
{
|
||||
$employer_details = $vendor_employer_info['employer_details'];
|
||||
$vendor_emp_master = vendor_form::getVendorEmpSectionContent($vendor_employer_info);
|
||||
echo '<p>During FI visit,'. $employer_details['name_person_met'] .' '.substr_replace($vendor_emp_master,'',-3) .'was met at the visited premises.</p>';
|
||||
echo '<p>Employer’s/Manager’s Company ID card / Visiting Card was photographed during FI visit.</p>';
|
||||
echo '<p>Salary amount was confirmed by person met during FI visit. Applicant gets monthly gross salary of ₹ '.$employer_details['gross_monthly_salary'].' and net monthly salary of ₹'.$employer_details['net_monthly_salary'].'.</p>';
|
||||
echo '<p>Salary paid to the applicant between '.$employer_details['from_date_the_salary_is_rcv'].' to ' .$employer_details['to_date_the_salary_is_rcv'].' of every month via '.$salary_mode_text [ $employer_details['mode_of_getting_salary'] ].'.</p>';
|
||||
$time = $employer_details['how_long_year'].' year(s)'; $time .= ($employer_details['how_long_year'] ? ' and '.$employer_details['how_long_year'] .' month(s)': '');
|
||||
echo '<p>During FI visit, Employer confirmed that the applicant has served '.$time.' an employee in this firm / company.</p>';
|
||||
}
|
||||
else
|
||||
{
|
||||
echo '<p>During FI visit, employer/manager was not met at the visited premises.</p>';
|
||||
echo '<p>Employer’s/Manager’s Company ID card / Visiting Card was not photographed during FI visit.</p>';
|
||||
echo '<p>Salary amount was not confirmed</p>';
|
||||
}
|
||||
|
||||
if(isset($vendor_employer_info['docs_sighted']))
|
||||
{
|
||||
//print_r($vendor_employer_info['docs_sighted']['sal_reg_seen'] == 'yes' ? 'Salary Register': '');die();
|
||||
echo '<p><b>Documents Sighted of applicant employment During FI:</b></p>';
|
||||
$document_name = '';
|
||||
$document_name .= ($vendor_employer_info['docs_sighted']['sal_reg_seen'] == 'yes' ? 'Salary Register, ': '');
|
||||
$document_name .= ($vendor_employer_info['docs_sighted']['attendance_seen'] == 'yes' ? 'Attendance Register, ' : '');
|
||||
$document_name .= ($vendor_employer_info['docs_sighted']['cash_voucher'] == 'yes'? 'Cash Vouche, r' : '');
|
||||
$document_name .= ($vendor_employer_info['docs_sighted']['sal_certificate'] == 'yes' ? 'Salary Certificate, ' : '');
|
||||
$document_name .= ($vendor_employer_info['docs_sighted']['sal_slip'] == 'yes' ? 'Salary Slip, ': '');
|
||||
$document_name .= ($vendor_employer_info['docs_sighted']['other_doc'] == 'yes' ? $vendor_employer_info['docs_sighted']['other_doc_name'].', ' : '');
|
||||
|
||||
if($document_name != '')
|
||||
{
|
||||
$document_name = substr_replace($document_name,'', -2);
|
||||
echo "<p> $document_name was seen during FI visit and photographs of same is available in zipped file enclosed with report.</p>";
|
||||
}
|
||||
else
|
||||
{
|
||||
echo '<p>Applicant’s employment documents were not seen during FI visit because (reason entered).</p>';
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
$vendor_credit_manager_info = $vendor_form_json['questions'][6];
|
||||
if(count($vendor_credit_manager_info['docs_to_be_sighted']))
|
||||
{
|
||||
echo '<p><b>Credit Manager Special Requests:</b></p></br>';
|
||||
foreach ($vendor_credit_manager_info['docs_to_be_sighted'] as $cm_key => $cm_value)
|
||||
{
|
||||
echo '<b>Document Required:</b>'.$cm_value['placeholder'].'<br>';
|
||||
echo '<b>Provided (Yes / No):</b>'.ucfirst($cm_value[ $cm_value['control_name'] ] );
|
||||
echo isset($cm_value['reason']) ? '<br><b>Reason:</b>'.$cm_value['reason'] : '';
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
echo '<p><b>Address Section</b></p>';
|
||||
$vendor_address_section = $vendor_form_json['questions'][1];
|
||||
$address_content = vendor_form::getVendoraddressSectionContent($vendor_address_section);
|
||||
|
||||
echo "<p>FI Initiated Address: ".$vendor_address_section['address'].", ". $address_content['initiated_address']['city_name'] .", ".$address_content['initiated_address']['state_name']." - ".$address_content['initiated_address']['pincode']." </p>";
|
||||
if(!$vendor_address_section['is_pd_done_on_initiated_address'])
|
||||
{
|
||||
echo "<p>FI Actual Visited Address: ".$vendor_address_section['alternative_addresses'][0]['alternative_address'].", ". $address_content['actual_address']['city_name'] .", ".$address_content['actual_address']['state_name']." - ".$address_content['actual_address']['pincode']." </p>";
|
||||
echo "<p>Reasaon: ".$vendor_address_section['alternative_addresses'][0]['reason_for_alternative_address']."</p>";
|
||||
}
|
||||
|
||||
$locality = preg_match("/^[aeiouAEIOU]/U", $address_content['comment_locality']) ? 'an '.$address_content['comment_locality'] : 'a '.$address_content['comment_locality'];
|
||||
echo "<p>The FI visit was done at ".$address_content['address_type']." of the loan applicants. The ".$address_content['address_type']." is located in a ".$address_content['address_locality'].". The PD location was ".$address_content['pd_location_approach'].". As Per FI Officer, the ".$address_content['address_type']." is situated in $locality Locality.</p>";
|
||||
|
||||
echo '<p><b>Submit:</b></p>';
|
||||
$vendoe_final_remars = $vendor_form_json['questions'][5];
|
||||
echo '<p><b>Final Status of FI visit:</b>'. $vendoe_final_remars['final_visit_status'] .'</p>';
|
||||
echo '<p><b>Comments Entered:</b>'. $vendoe_final_remars['final_comments'] .'</p>';
|
||||
echo '<p><b> Neighbourhood check:</b></p>';
|
||||
echo '<p><b>Existence of organization/office confirmed by neighbour:</b>'. ucfirst($vendoe_final_remars['company_existence_neighbour_confirmed']) .'</p>';
|
||||
if($vendoe_final_remars['company_existence_neighbour_confirmed'] == 'yes')
|
||||
{
|
||||
$time = '<p>Existence of organization/office confirmed by neighbour and is in existence for '.$vendoe_final_remars['company_existence_years'].' year(s).</p>';
|
||||
$time .= ( $vendoe_final_remars['company_existence_months'] ? $vendoe_final_remars['company_existence_months'].' month(s)' : '');
|
||||
echo $time;
|
||||
}
|
||||
|
||||
|
||||
echo '<br><br><br>';
|
||||
echo '<p><b>Name of the FI Officer visited:</b>'.$pd_master_details[0]['vendor_pdofficer_name'].'</p>';
|
||||
echo '<p><b>Name of the FI Agency visited:</b>'.$pd_master_details[0]['agency_name'].'</p>';
|
||||
echo '<p><b>Date & Time of FI visit:</b>'.$pd_master_details[0]['pd_visit_date'].'</p>';
|
||||
echo '<div><img style="width:100px;height:50px;opacity: 0.5;" src="https://apitest.pdgenie.com/sparqtest/api/vs.jpg"/></div>';
|
||||
|
||||
|
||||
|
||||
?>
|
||||
<!-- ######################### VENDOR SECTION END ###########################-->
|
||||
|
||||
|
||||
<!-- ######################### VENDOR SECTION END ###########################-->
|
||||
<!-- GENERAL INFORMATIN -->
|
||||
|
||||
<?php
|
||||
|
||||
die();
|
||||
$general_form = json_decode($pd_processed_forms[18][0]['processed_json'],true);
|
||||
$total_no_of_business = count($general_form['companies']);
|
||||
$persons_met = "Default";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user