SMART PD REPORT CHANGES

This commit is contained in:
Velz2020 2020-10-03 14:36:31 +05:30
parent facf6c65db
commit bed481bceb
3 changed files with 62 additions and 43 deletions

View File

@ -10,6 +10,10 @@ class vendor_form
$return_data = 'During Field Visit, No one met at the visited premises.';
if($cus_type == 2)
{
if($vendor_gen_section['is_employer_available'] == 'yes')
{
$return_data = 'During Field Visit, Employer was met.';
}
$return_data .= 'Field Visit officer clicked Office/Name Board/Entrance photographs and same is available in zipped folder attached with report.';
}

View File

@ -469,6 +469,13 @@ defined('BASEPATH') OR exit('No direct script access allowed');
padding: 5px;
/*margin: 10px;*/
}
/*Vendor Section Bold Text Display*/
.vsbtd{
font-size: 14px;
font-weight: bolder;;
}
/* ######### TOOLTIP CSS END ######### */
@ -4781,14 +4788,14 @@ if($total_no_of_business > 0) {
}
$locality = preg_match("/^[aeiouAEIOU]/U", $address_content['comment_locality']) ? 'an '.$address_content['comment_locality'] : 'a '.$address_content['comment_locality'];
echo "<p style='text-align:justify;'>The Field Visit was done at <b>".$address_content['address_type']."</b> of the loan applicants. The ".$address_content['address_type']." is located in a <b>".$address_content['address_locality']."</b> and the estimated area of the <b>".$address_content['address_type']."</b> is <b>".$vendor_address_section['estimated_area']." ". $address_content['uom']."</b>. The location was <b>".$address_content['pd_location_approach']."</b>. As Per Officer, the ".$address_content['address_type']." is situated in <b>$locality Locality</b>.</p>";
echo "<p style='text-align:justify;'>The Field Visit was done at <span class='vsbtd'>".$address_content['address_type']."</span> of the loan applicants. The ".$address_content['address_type']." is located in a <span class='vsbtd'>".$address_content['address_locality']."</span> and the estimated area of the <span class='vsbtd'>".$address_content['address_type']."</span> is <span class='vsbtd'>".$vendor_address_section['estimated_area']." ". $address_content['uom']."</span>. The location was <span class='vsbtd'>".$address_content['pd_location_approach']."</span>. As Per Officer, the ".$address_content['address_type']." is situated in <span class='vsbtd'>$locality Locality</span>.</p>";
echo '<h2>Business information</h2>';
$vendor_business_info = $vendor_form_json['questions'][2]['business_group'][0];
echo $emp = $vendor_business_info['officer_total'] > 0 ? "<p>At the time of Field Visit , <b>".$vendor_business_info['officer_total']." </b>employees sighted at the visited premises.</p>" : "<p>At the time of Field Visit, no employees sighted at the visited premises.</p>";
echo $emp = $vendor_business_info['officer_total'] > 0 ? "<p>At the time of Field Visit , <span class='vsbtd'>".$vendor_business_info['officer_total']." </span>employees sighted at the visited premises.</p>" : "<p>At the time of Field Visit, no employees sighted at the visited premises.</p>";
echo $name_board = $vendor_business_info['was_the_company_name_board_sighted'] == 'yes' ? "<p>The Business <b>Name board was seen</b> at the visited premises.</p>" : "<p>The Business <b>Name board was not seen</b> at the visited premises.</p>";
echo $name_board = $vendor_business_info['was_the_company_name_board_sighted'] == 'yes' ? "<p>The Business <span class='vsbtd'>Name board was seen</span> at the visited premises.</p>" : "<p>The Business <span class='vsbtd'>Name board was not seen</span> at the visited premises.</p>";
if(($vendor_business_info['documents_sighted'] == 'yes'))
{
@ -4808,24 +4815,24 @@ if($total_no_of_business > 0) {
}
$vendor_business_asset_info = $vendor_form_json['questions'][2]['business_group'][1];
echo $vendor_business_asset_info['business_is_pd_visited'] == 'yes' ? '<p><b>Business Activity was seen</b> during Field visit</p>': '<p><b>Business Activity was not seen</b> during Field Visit.</p>';
echo $vendor_business_asset_info['business_is_pd_visited'] == 'yes' ? '<p><span class="vsbtd">Business Activity was seen</span> during Field visit</p>': '<p><span class="vsbtd">Business Activity was not seen</span> during Field Visit.</p>';
$vendor_stock_info = $vendor_form_json['questions'][2]['business_group'][2];
echo $vendor_stock_info['is_stock_photo'] == 'yes' ? '<p><b>Stock was observed</b> during Field visit and photographs available in zipped file enclosed with report.</p>': '<p>No Stock was observed during Field Visit.</p>';
echo $vendor_stock_info['is_stock_photo'] == 'yes' ? '<p><span class="vsbtd">Stock was observed</span> during Field visit and photographs available in zipped file enclosed with report.</p>': '<p>No Stock was observed during Field Visit.</p>';
echo $vendor_business_asset_info['business_asset_sight'] == 'yes' ? '<p>Business Assets were sighted during Field visit and photographs available in zipped file enclosed with report.</p>': '<p>No Business Assets were sighted during Field Visit.</p>';
echo "<p>During Field visit, officer clicked office/Name board/Entrance photographs and same is available in
zipped folder attached with report.</p>";
echo '<h3>Credit Manager Special Requests:</h3></br>';
echo '<h2>Credit Manager Special Requests:</h2></br>';
$vendor_credit_manager_info = $vendor_form_json['questions'][6];
if(count($vendor_credit_manager_info['docs_to_be_sighted']))
{
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 '<span class="vsbtd">Document Required:</span>'.$cm_value['placeholder'].'<br>';
echo '<span class="vsbtd">Provided (Yes / No):</span>'.ucfirst($cm_value[ $cm_value['control_name'] ] );
echo isset($cm_value['reason']) ? '<br><span class="vsbtd">Reason:</span>'.$cm_value['reason'] : '';
}
}
@ -4892,14 +4899,14 @@ if($total_no_of_business > 0) {
<?php
// echo '<h3>Submit:</h3>';
$vendoe_final_remars = $vendor_form_json['questions'][5];
echo '<p><b>Final Status of Field Visit:</b>'. $vendoe_final_remars['final_visit_status'] .'</b></p>';
echo '<p><b>Remarks:</b>'. $vendoe_final_remars['final_comments'] .'</p>';
echo '<p><span class="vsbtd">Final Status of Field Visit:'. $vendoe_final_remars['final_visit_status'] .'</span></p>';
echo '<p><span class="vsbtd">Remarks:</span>'. $vendoe_final_remars['final_comments'] .'</p>';
echo '<br><br><br>';
echo '<p><b>Name of the Officer visited:</b>'.$pd_master_details[0]['vendor_pdofficer_name'].'</p>';
echo '<p><b>Name of the Agency visited:</b>'.$pd_master_details[0]['agency_name'].'</p>';
echo '<p><b>Date & Time of 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>';
echo '<p><span class="vsbtd">Name of the Officer visited:</span>'.$pd_master_details[0]['vendor_pdofficer_name'].'</p>';
echo '<p><span class="vsbtd">Name of the Agency visited:</span>'.$pd_master_details[0]['agency_name'].'</p>';
echo '<p><span class="vsbtd">Date & Time of visit:</span>'.$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>';

View File

@ -465,6 +465,13 @@ defined('BASEPATH') OR exit('No direct script access allowed');
padding: 5px;
/*margin: 10px;*/
}
/*Vendor Section Bold Text Display*/
.vsbtd{
font-size: 14px;
font-weight: bolder;;
}
/* ######### TOOLTIP CSS END ######### */
@ -666,15 +673,15 @@ defined('BASEPATH') OR exit('No direct script access allowed');
//if($display_for_person_met != "" || $display_for_person_met != null){
echo '<br><br>';
//}
// if($person['photo'])
// {
// echo '<img src="'.$person['photo'].'" width="300" height="200" alt=""/>';
// }
// echo '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
// if($person['id_proof'])
// {
// echo '<img src="'.$person['id_proof'].'" width="300" height="200" alt=""/>';
// }
if($person['photo'])
{
echo '<img src="'.$person['photo'].'" width="300" height="200" alt=""/>';
}
echo '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
if($person['id_proof'])
{
echo '<img src="'.$person['id_proof'].'" width="300" height="200" alt=""/>';
}
//echo count($person_met_data) != ($pk+1)? '<hr>':'';
@ -2015,6 +2022,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
<?php
echo '<div id="page_break"></div>';
$vendor_form_json = json_decode($pd_processed_forms[25][0]['json'],true);
// print_r($vendor_form_json['questions'][0]);die();
echo "<h2><center>Field Visit Report of $main_applicant_name</center></h2>";
echo '<h2>General Section</h2>';
$vendor_gen_section_text = vendor_form::getVendorGeneralSectionContent($vendor_form_json['questions'][0],2);
@ -2028,12 +2036,12 @@ defined('BASEPATH') OR exit('No direct script access allowed');
{
$employer_details = $vendor_employer_info['employer_details'];
$vendor_emp_master = vendor_form::getVendorEmpSectionContent($vendor_employer_info);
echo '<p>During Field visit,'. $employer_details['name_person_met'] .' ( '.substr_replace($vendor_emp_master,'',-3) .' ) was met at the visited premises.</p>';
echo '<p>Employers/Managers Company ID card / Visiting Card was photographed during Field Visit.</p>';
echo '<p>Salary amount was confirmed by person met during Field Visit. Applicant gets monthly gross salary of <b>₹ '.$employer_details['gross_monthly_salary'].'</b> and net monthly salary of <b>₹'.$employer_details['net_monthly_salary'].'</b>.</p>';
echo '<p>Salary paid to the applicant between <b>'. MYUTIL::addOrdinalNumberSuffix($employer_details['from_date_the_salary_is_rcv']).' to ' . MYUTIL::addOrdinalNumberSuffix($employer_details['to_date_the_salary_is_rcv']).'</b> of every month via <b>'.$salary_mode_text [ $employer_details['mode_of_getting_salary'] ].'.</b></p>';
echo '<p>During Field visit,<span class="vsbtd">'. $employer_details['name_person_met'] .' ( '.substr_replace($vendor_emp_master,'',-3) .' )</span> was met at the visited premises.</p>';
echo '<p>Employers/Managers Company ID card / Visiting Card <span class="vsbtd">was photographed during Field Visit.</span></p>';
echo '<p>Salary amount <span class="vsbtd">was confirmed </span> by person met during Field Visit. Applicant gets monthly gross salary of <span class="vsbtd">'.$rupee_symbol." ".$employer_details['gross_monthly_salary'].'</span> and net monthly salary of <span class="vsbtd">'.$rupee_symbol." ".$employer_details['net_monthly_salary'].'</span>.</p>';
echo '<p>Salary paid to the applicant between <span class="vsbtd">'. MYUTIL::addOrdinalNumberSuffix($employer_details['from_date_the_salary_is_rcv']).' to ' . MYUTIL::addOrdinalNumberSuffix($employer_details['to_date_the_salary_is_rcv']).'</span> of every month via <span class="vsbtd">'.$salary_mode_text [ $employer_details['mode_of_getting_salary'] ].'.</span></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 Field Visit, Employer confirmed that the applicant has served <b>'.$time.'</b> an employee in this firm / company.</p>';
echo '<p>During Field Visit, Employer confirmed that the applicant has served <span class="vsbtd">'.$time.'</span> an employee in this firm / company.</p>';
}
else
{
@ -2073,9 +2081,9 @@ defined('BASEPATH') OR exit('No direct script access allowed');
echo '<h2>Credit Manager Special Requests:</h2></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 '<span class="vsbtd">Document Required:</span>'.$cm_value['placeholder'].'<br>';
echo '<span class="vsbtd">Provided (Yes / No):</span>'.ucfirst($cm_value[ $cm_value['control_name'] ] );
echo isset($cm_value['reason']) ? '<br><span class="vsbtd">Reason:</span>'.$cm_value['reason'] : '';
}
}
@ -2092,18 +2100,18 @@ defined('BASEPATH') OR exit('No direct script access allowed');
}
$locality = preg_match("/^[aeiouAEIOU]/U", $address_content['comment_locality']) ? 'an '.$address_content['comment_locality'] : 'a '.$address_content['comment_locality'];
echo "<p style='text-align:justify;'>The Field Visit was done at <b>".$address_content['address_type']."</b> of the loan applicants. The ".$address_content['address_type']." is located in a <b>".$address_content['address_locality']."</b>.The location was <b>".$address_content['pd_location_approach']."</b>. As Per Officer, the ".$address_content['address_type']." is situated in <b>$locality Locality</b>.</p>";
echo "<p style='text-align:justify;'>The Field Visit was done at <span class='vsbtd'>".$address_content['address_type']."</span> of the loan applicants. The ".$address_content['address_type']." is located in a <span class='vsbtd'>".$address_content['address_locality']."</span>.The location was <span class='vsbtd'>".$address_content['pd_location_approach']."</span>. As Per Officer, the ".$address_content['address_type']." is situated in <span class='vsbtd'>$locality Locality</span>.</p>";
// echo '<p><b>Submit:</b></p>';
$vendoe_final_remars = $vendor_form_json['questions'][5];
echo '<p><b>Final Status of Field visit:'. $vendoe_final_remars['final_visit_status'] .'</b></p>';
echo '<p><b>Remarks:</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>';
echo '<p><span class="vsbtd">Final Status of Field visit:'. $vendoe_final_remars['final_visit_status'] .'</span></p>';
echo '<p><span class="vsbtd">Remarks:</span>'. $vendoe_final_remars['final_comments'] .'</p>';
echo '<h3> Neighbourhood check:</h3>';
echo '<p><span class="vsbtd">Existence of organization/office confirmed by neighbour:</span>'. 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)' : '');
$time = '<p>Existence of organization/office confirmed by neighbour and is in existence for <span class="vsbtd">'.$vendoe_final_remars['company_existence_years'].' year(s)</span>';
$time .= ( $vendoe_final_remars['company_existence_months'] ? '<span class="vsbtd">' . $vendoe_final_remars['company_existence_months'].' month(s).</span>' : '.</p>');
echo $time;
}
else
@ -2113,10 +2121,10 @@ defined('BASEPATH') OR exit('No direct script access allowed');
echo '<br><br><br>';
echo '<p><b>Name of the Officer visited:</b>'.$pd_master_details[0]['vendor_pdofficer_name'].'</p>';
echo '<p><b>Name of the Agency visited:</b>'.$pd_master_details[0]['agency_name'].'</p>';
echo '<p><b>Date & Time of 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>';
echo '<p><span class="vsbtd">Name of the Officer visited:</span>'.$pd_master_details[0]['vendor_pdofficer_name'].'</p>';
echo '<p><b span class="vsbtd">Name of the Agency visited:</span>'.$pd_master_details[0]['agency_name'].'</p>';
echo '<p><b span class="vsbtd">Date & Time of visit:</span>'.$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>';