From 2d44b644be0091a4184b74a78dff8ed391268d98 Mon Sep 17 00:00:00 2001
From: Velz2020 General Section $vendor_gen_section_text $vendor_gen_section_text Address Section FI Initiated Address: ".$vendor_address_section['address'].", ". $address_content['initiated_address']['city_name'] .", ".$address_content['initiated_address']['state_name']." - ".$address_content['initiated_address']['pincode']." Field Visit Initiated Address: ".$vendor_address_section['address'].", ". $address_content['initiated_address']['city_name'] .", ".$address_content['initiated_address']['state_name']." - ".$address_content['initiated_address']['pincode']." 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']." Field Visit 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']." Reasaon: ".$vendor_address_section['alternative_addresses'][0]['reason_for_alternative_address']." 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']." and the estimated area of the ".$address_content['address_type']." is ".$vendor_address_section['estimated_area']." ". $address_content['uom'].". The PD location was ".$address_content['pd_location_approach'].". As Per FI Officer, the ".$address_content['address_type']." is situated in $locality Locality. The Field 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']." and the estimated area of the ".$address_content['address_type']." is ".$vendor_address_section['estimated_area']." ". $address_content['uom'].". The location was ".$address_content['pd_location_approach'].". As Per Officer, the ".$address_content['address_type']." is situated in $locality Locality. Busienss information At the time of FI visit, ".$vendor_business_info['officer_total']." employees sighted at the visited premises. At the time of FI visit, no employees sighted at the visited premises. At the time of Field Visit , ".$vendor_business_info['officer_total']." employees sighted at the visited premises. At the time of Field Visit visit, no employees sighted at the visited premises. The Business Name board was seen at the visited premises. The Business Name board was not seen at the visited premises. The Business Name board was seen at the visited premises. The Business Name board was not seen at the visited premises. $doc_names $were sighted during Field Visit visit and photographs available in zipped file enclosed with report. No Documents were sighted during FI visit. No Documents were sighted during Field Visit visit. Business Activity was seen during FI visit Business Activity was not seen during FI visit. Business Activity was seen during Field visit Business Activity was not seen during Field Visit visit. Stock was observed during FI visit and photographs available in zipped file enclosed with report. No Stock was observed during FI visit. Stock was observed during Field visit and photographs available in zipped file enclosed with report. No Stock was observed during Field Visit visit. Business Assets were sighted during FI visit and photographs available in zipped file enclosed with report. No Business Assets were sighted during FI visit. Credit Manager Special Requests: Business Assets were sighted during Field visit and photographs available in zipped file enclosed with report. No Business Assets were sighted during Field Visit visit. During Field visit, officer clicked office/Name board/Entrance photographs and same is available in
+ zipped folder attached with report. Neighbourhood Check Details
";
+ echo 'General Section
';
$vendor_gen_section_text = vendor_form::getVendorGeneralSectionContent($vendor_form_json['questions'][0]);
- echo "Address Section
';
$vendor_address_section = $vendor_form_json['questions'][1];
$address_content = vendor_form::getVendoraddressSectionContent($vendor_address_section);
- echo "Business information
';
$vendor_business_info = $vendor_form_json['questions'][2]['business_group'][0];
- echo $emp = $vendor_business_info['officer_total'] > 0 ? "Credit Manager Special Requests:
';
$vendor_credit_manager_info = $vendor_form_json['questions'][6];
if(count($vendor_credit_manager_info['docs_to_be_sighted']))
{
@@ -4822,12 +4824,12 @@ if($total_no_of_business > 0) {
{
echo 'Document Required:'.$cm_value['placeholder'].'
';
echo 'Provided (Yes / No):'.ucfirst($cm_value[ $cm_value['control_name'] ] );
- echo $cm_value['reason'] ? '
Reason:'.$cm_value['reason'] : '';
+ echo isset($cm_value['reason']) ? '
Reason:'.$cm_value['reason'] : '';
}
}
- echo 'Neighbourhood Check Details
';
$vendor_neighbour = $vendor_form_json['questions'][3];
$existNeighRefCheck=array();
@@ -4887,15 +4889,15 @@ if($total_no_of_business > 0) {
Submit:
Final Status of FI visit:'. $vendoe_final_remars['final_visit_status'] .'
'; - echo 'Comments Entered:'. $vendoe_final_remars['final_comments'] .'
'; + echo 'Final Status of Field Visit:'. $vendoe_final_remars['final_visit_status'] .'
'; + echo 'Remarks:'. $vendoe_final_remars['final_comments'] .'
'; echo 'Name of the FI Officer visited:'.$pd_master_details[0]['vendor_pdofficer_name'].'
'; - echo 'Name of the FI Agency visited:'.$pd_master_details[0]['agency_name'].'
'; - echo 'Date & Time of FI visit:'.$pd_master_details[0]['pd_visit_date'].'
'; + echo 'Name of the Officer visited:'.$pd_master_details[0]['vendor_pdofficer_name'].'
'; + echo 'Name of the Agency visited:'.$pd_master_details[0]['agency_name'].'
'; + echo 'Date & Time of visit:'.$pd_master_details[0]['pd_visit_date'].'
'; echo '
Registered / Corporate Office: SineEdge Consulting Private Limited. A-211, Pioneer Urban Square, Golf Course Extension Road, Sector 62, Gurgaon, Haryana - 122002
'; ?> - - -General Section
'; - $vendor_gen_section_text = vendor_form::getVendorGeneralSectionContent($vendor_form_json['questions'][0],2); - echo "$vendor_gen_section_text
"; - - echo 'Employer information
'; - $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 'During FI visit,'. $employer_details['name_person_met'] .' '.substr_replace($vendor_emp_master,'',-3) .'was met at the visited premises.
'; - echo 'Employer’s/Manager’s Company ID card / Visiting Card was photographed during FI visit.
'; - echo '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'].'.
'; - echo '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'] ].'.
'; - $time = $employer_details['how_long_year'].' year(s)'; $time .= ($employer_details['how_long_year'] ? ' and '.$employer_details['how_long_year'] .' month(s)': ''); - echo 'During FI visit, Employer confirmed that the applicant has served '.$time.' an employee in this firm / company.
'; - } - else - { - echo 'During FI visit, employer/manager was not met at the visited premises.
'; - echo 'Employer’s/Manager’s Company ID card / Visiting Card was not photographed during FI visit.
'; - echo 'Salary amount was not confirmed
'; - } - - if(isset($vendor_employer_info['docs_sighted'])) - { - //print_r($vendor_employer_info['docs_sighted']['sal_reg_seen'] == 'yes' ? 'Salary Register': '');die(); - echo 'Documents Sighted of applicant employment During FI:
'; - $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 "$document_name was seen during FI visit and photographs of same is available in zipped file enclosed with report.
"; - } - else - { - echo 'Applicant’s employment documents were not seen during FI visit because (reason entered).
'; - } - - } - - - $vendor_credit_manager_info = $vendor_form_json['questions'][6]; - if(count($vendor_credit_manager_info['docs_to_be_sighted'])) - { - echo 'Credit Manager Special Requests:
'; - foreach ($vendor_credit_manager_info['docs_to_be_sighted'] as $cm_key => $cm_value) - { - echo 'Document Required:'.$cm_value['placeholder'].'Address Section
'; - $vendor_address_section = $vendor_form_json['questions'][1]; - $address_content = vendor_form::getVendoraddressSectionContent($vendor_address_section); - - echo "FI Initiated Address: ".$vendor_address_section['address'].", ". $address_content['initiated_address']['city_name'] .", ".$address_content['initiated_address']['state_name']." - ".$address_content['initiated_address']['pincode']."
"; - if(!$vendor_address_section['is_pd_done_on_initiated_address']) - { - echo "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']."
"; - echo "Reasaon: ".$vendor_address_section['alternative_addresses'][0]['reason_for_alternative_address']."
"; - } - - $locality = preg_match("/^[aeiouAEIOU]/U", $address_content['comment_locality']) ? 'an '.$address_content['comment_locality'] : 'a '.$address_content['comment_locality']; - echo "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.
"; - - echo 'Submit:
'; - $vendoe_final_remars = $vendor_form_json['questions'][5]; - echo 'Final Status of FI visit:'. $vendoe_final_remars['final_visit_status'] .'
'; - echo 'Comments Entered:'. $vendoe_final_remars['final_comments'] .'
'; - echo 'Neighbourhood check:
'; - echo 'Existence of organization/office confirmed by neighbour:'. ucfirst($vendoe_final_remars['company_existence_neighbour_confirmed']) .'
'; - if($vendoe_final_remars['company_existence_neighbour_confirmed'] == 'yes') - { - $time = 'Existence of organization/office confirmed by neighbour and is in existence for '.$vendoe_final_remars['company_existence_years'].' year(s).
'; - $time .= ( $vendoe_final_remars['company_existence_months'] ? $vendoe_final_remars['company_existence_months'].' month(s)' : ''); - echo $time; - } - - - echo 'Name of the FI Officer visited:'.$pd_master_details[0]['vendor_pdofficer_name'].'
'; - echo 'Name of the FI Agency visited:'.$pd_master_details[0]['agency_name'].'
'; - echo 'Date & Time of FI visit:'.$pd_master_details[0]['pd_visit_date'].'
'; - echo '
$vendor_gen_section_text
"; + + echo 'Employer information
'; + $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 'During Field visit,'. $employer_details['name_person_met'] .' ( '.substr_replace($vendor_emp_master,'',-3) .' ) was met at the visited premises.
'; + echo 'Employer’s/Manager’s Company ID card / Visiting Card was photographed during Field Visit visit.
'; + echo 'Salary amount was confirmed by person met during Field Visit visit. Applicant gets monthly gross salary of ₹ '.$employer_details['gross_monthly_salary'].' and net monthly salary of ₹'.$employer_details['net_monthly_salary'].'.
'; + echo 'Salary paid to the applicant between '. MYUTIL::addOrdinalNumberSuffix($employer_details['from_date_the_salary_is_rcv']).' to ' . MYUTIL::addOrdinalNumberSuffix($employer_details['to_date_the_salary_is_rcv']).' of every month via '.$salary_mode_text [ $employer_details['mode_of_getting_salary'] ].'.
'; + $time = $employer_details['how_long_year'].' year(s)'; $time .= ($employer_details['how_long_year'] ? ' and '.$employer_details['how_long_year'] .' month(s)': ''); + echo 'During Field Visit, Employer confirmed that the applicant has served '.$time.' an employee in this firm / company.
'; + } + else + { + echo 'During Field visit, employer/manager was not met at the visited premises.
'; + echo 'Employer’s/Manager’s Company ID card / Visiting Card was not photographed during Field visit.
'; + echo 'Salary amount was not confirmed
'; + } + + if(isset($vendor_employer_info['docs_sighted'])) + { + //print_r($vendor_employer_info['docs_sighted']['sal_reg_seen'] == 'yes' ? 'Salary Register': '');die(); + echo 'Documents Sighted of applicant employment During Field:
'; + $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 "$document_name were seen during Field visit and photographs of same is available in zipped file enclosed with report.
"; + } + else + { + echo 'Applicant’s employment documents were not seen during Field visit because (reason entered).
'; + } + + } + + + $vendor_credit_manager_info = $vendor_form_json['questions'][6]; + if(count($vendor_credit_manager_info['docs_to_be_sighted'])) + { + echo 'Credit Manager Special Requests:
'; + foreach ($vendor_credit_manager_info['docs_to_be_sighted'] as $cm_key => $cm_value) + { + echo 'Document Required:'.$cm_value['placeholder'].'Field Visit Initiated Address: ".$vendor_address_section['address'].", ". $address_content['initiated_address']['city_name'] .", ".$address_content['initiated_address']['state_name']." - ".$address_content['initiated_address']['pincode']."
"; + if(!$vendor_address_section['is_pd_done_on_initiated_address']) + { + echo "Field Visit 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']."
"; + echo "Reasaon: ".$vendor_address_section['alternative_addresses'][0]['reason_for_alternative_address']."
"; + } + + $locality = preg_match("/^[aeiouAEIOU]/U", $address_content['comment_locality']) ? 'an '.$address_content['comment_locality'] : 'a '.$address_content['comment_locality']; + echo "The Field 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 location was ".$address_content['pd_location_approach'].". As Per Officer, the ".$address_content['address_type']." is situated in $locality Locality.
"; + + // echo 'Submit:
'; + $vendoe_final_remars = $vendor_form_json['questions'][5]; + echo 'Final Status of Field visit:'. $vendoe_final_remars['final_visit_status'] .'
'; + echo 'Remarks:'. $vendoe_final_remars['final_comments'] .'
'; + echo 'Neighbourhood check:
'; + echo 'Existence of organization/office confirmed by neighbour:'. ucfirst($vendoe_final_remars['company_existence_neighbour_confirmed']) .'
'; + if($vendoe_final_remars['company_existence_neighbour_confirmed'] == 'yes') + { + $time = 'Existence of organization/office confirmed by neighbour and is in existence for '.$vendoe_final_remars['company_existence_years'].' year(s).
'; + $time .= ( $vendoe_final_remars['company_existence_months'] ? $vendoe_final_remars['company_existence_months'].' month(s)' : ''); + echo $time; + } + + + echo 'Name of the Officer visited:'.$pd_master_details[0]['vendor_pdofficer_name'].'
'; + echo 'Name of the Agency visited:'.$pd_master_details[0]['agency_name'].'
'; + echo 'Date & Time of visit:'.$pd_master_details[0]['pd_visit_date'].'
'; + echo '