SMART PD REPORT MINOR CHANGES

This commit is contained in:
Velz2020 2020-09-30 14:25:42 +05:30
parent 2d44b644be
commit 57b98a2676
2 changed files with 21 additions and 16 deletions

View File

@ -4755,6 +4755,7 @@ if($total_no_of_business > 0) {
}
?>
<!-- #################END of Annexure B(RI) section start#################-->
@ -4769,23 +4770,23 @@ if($total_no_of_business > 0) {
$vendor_gen_section_text = vendor_form::getVendorGeneralSectionContent($vendor_form_json['questions'][0]);
echo "<p style='text-align:justify;'>$vendor_gen_section_text</p>";
echo '<h3>Address Section</h3>';
echo '<h2>Address Section</h2>';
$vendor_address_section = $vendor_form_json['questions'][1];
$address_content = vendor_form::getVendoraddressSectionContent($vendor_address_section);
echo "<p>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']." </p>";
if(!$vendor_address_section['is_pd_done_on_initiated_address'])
{
echo "<p>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']." </p>";
echo "<p>Reasaon: ".$vendor_address_section['alternative_addresses'][0]['reason_for_alternative_address']."</p>";
echo "<p>Reason: ".$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 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 '<h3>Business information</h3>';
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 visit, no employees sighted at the visited premises.</p>";
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 $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>";
@ -4799,21 +4800,21 @@ if($total_no_of_business > 0) {
}
$were = count($vendor_business_info['documents_info']) == 1 ? 'was' : 'were';
$doc_names = substr_replace($doc_names,' ',-2);
echo "<p style='text-align:justify;'>$doc_names $were sighted during Field Visit visit and photographs available in zipped file enclosed with report.</p>";
echo "<p style='text-align:justify;'>$doc_names $were sighted during Field Visit and photographs available in zipped file enclosed with report.</p>";
}
else
{
echo '<p>No Documents were sighted during Field Visit visit.</p>';
echo '<p>No Documents were sighted during Field Visit.</p>';
}
$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 visit.</p>';
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>';
$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 visit.</p>';
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_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 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>';
@ -4829,7 +4830,7 @@ if($total_no_of_business > 0) {
}
}
echo '<h3>Neighbourhood Check Details</h3></br>';
echo '<h2>Neighbourhood Check Details</h2></br>';
$vendor_neighbour = $vendor_form_json['questions'][3];
$existNeighRefCheck=array();

View File

@ -2021,7 +2021,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
echo "<p>$vendor_gen_section_text</p>";
echo '<p><b>Employer information</b></p>';
echo '<h2>Employer information</h2>';
$vendor_employer_info = $vendor_form_json['questions'][2];
if(array_key_exists('employer_details',$vendor_employer_info))
@ -2029,8 +2029,8 @@ 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 visit.</p>';
echo '<p>Salary amount was confirmed by person met during Field Visit 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>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>';
$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>';
@ -2049,7 +2049,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
$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']['cash_voucher'] == 'yes'? 'Cash Voucher,' : '');
$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'].', ' : '');
@ -2070,7 +2070,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
$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>';
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>';
@ -2081,7 +2081,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
}
echo '<h3>Address Section</h3>';
echo '<h2>Address Section</h2>';
$vendor_address_section = $vendor_form_json['questions'][1];
$address_content = vendor_form::getVendoraddressSectionContent($vendor_address_section,2);
echo "<p>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']." </p>";
@ -2106,6 +2106,10 @@ defined('BASEPATH') OR exit('No direct script access allowed');
$time .= ( $vendoe_final_remars['company_existence_months'] ? $vendoe_final_remars['company_existence_months'].' month(s)' : '');
echo $time;
}
else
{
echo '<p>Existence of organization/office was not confirmed by neighbour.</p>';
}
echo '<br><br><br>';