SMD PD SAL CHANGES

This commit is contained in:
Velz2020 2020-10-15 10:39:11 +05:30
parent 24db2beab4
commit 8629c2726d
2 changed files with 35 additions and 26 deletions

View File

@ -7,37 +7,37 @@ class vendor_form
{
$CI =&get_instance();
$CI->load->model('PD_Model');
$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.';
}
if($vendor_gen_section['person_met_entered'])
{
$return_data = ($cus_type == 1 ? $vendor_gen_section['person_met_entered']." ( ".$vendor_gen_section['designation_entered'] ." ) met at the visited address during Field Visit." : $vendor_gen_section['person_met_entered']. " met at the visited address during Field Visit.");
}
else
{
$is_applicant_not = false;
foreach ($vendor_gen_section['individuals'] as $ind_key => $ind_value)
{
if($ind_value['is_person_met'])
{
$return_data = "Applicant ".$ind_value['applicant_name']." was met at the visited address during Field Visit.";
$return_data = "Applicant ( ".$ind_value['applicant_name']." ) was met at the visited address during Field Visit.";
$is_applicant_not = true;
break;
}
}
}
if($cus_type == 2 && !$is_applicant_not)
{
$return_data = "Applicant ( ".$vendor_gen_section['individuals'][0]['applicant_name']." ) was not met at the visited address during Field Visit.";
}
if($cus_type == 2)
{
$return_data .= 'Field Visit officer clicked Office/Name Board/Entrance photographs and same is available in zipped folder attached with report.';
}
if(!$is_applicant_not && $vendor_gen_section['is_met_during_visit'] && $vendor_gen_section['person_met_entered'])
{
$return_data = ($cus_type == 1 ? $vendor_gen_section['person_met_entered']." ( ".$vendor_gen_section['designation_entered'] ." ) met at the visited address during Field Visit." : $vendor_gen_section['person_met_entered']. " met at the visited address during Field Visit.");
}
else if(!$is_applicant_not)
{
$return_data = 'During Field Visit, No one met at the visited premises.';
if($cus_type == 2)
{
$return_data .= 'Field Visit officer clicked Office/Name Board/Entrance photographs and same is available in zipped folder attached with report.';
}
}
return $return_data;
}

View File

@ -2062,7 +2062,7 @@ font-weight: bolder;;
echo '</tbody></table>';
}
?>
<!-- ######################### VENDOR SECTION START ###########################-->
<!-- ######################### VENDOR SECTION START ###########################-->
<!-- ######################### VENDOR SECTION START ###########################-->
<?php
echo '<div id="page_break"></div>';
@ -2084,8 +2084,11 @@ font-weight: bolder;;
$employer_details = $vendor_employer_info['employer_details'];
$vendor_emp_master = vendor_form::getVendorEmpSectionContent($vendor_employer_info);
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 isset($employer_details['visiting_card']) && $employer_details['visiting_card'] == 'yes' ? '<p>Employers/Managers Company ID card / Visiting Card <span class="vsbtd">was photographed during Field Visit.</span></p>' : '<p>Employers/Managers Company ID card / Visiting Card <span class="vsbtd">was not photographed during Field Visit.</span></p>';
echo isset($employer_details['confirm_salary']) && $employer_details['confirm_salary'] == 'yes' ? '<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>' : "<p>Salary amount was not confirmed because ".$employer_details['sal_amount_was_not_confirmed']."</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 <span class="vsbtd">'.$time.'</span> an employee in this firm / company.</p>';
@ -2124,6 +2127,11 @@ font-weight: bolder;;
echo $dis;
}
if((isset($vendor_employer_info['nameboard_photographs']) && count($vendor_employer_info['nameboard_photographs'])) || (isset($vendor_employer_info['office_photographs']) && count($vendor_employer_info['office_photographs'])))
{
echo '<h2>Office/Name Board Photographs:</h2>';
echo '<p>Field Visit officer clicked Office/Name Board/Entrance photographs and same is available in zipped folder attached with report.</p>';
}
$vendor_credit_manager_info = $vendor_form_json['questions'][6];
if(count($vendor_credit_manager_info['docs_to_be_sighted']))
@ -2155,7 +2163,7 @@ font-weight: bolder;;
// echo '<p><b>Submit:</b></p>';
$vendoe_final_remars = $vendor_form_json['questions'][5];
echo '<p><span class="vsbtd">Remarks:</span>'. $vendoe_final_remars['final_comments'] .'</p>';
echo '<h2> Neighbourhood check:</h2>';
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')
@ -2168,6 +2176,7 @@ font-weight: bolder;;
{
echo '<p>Existence of organization/office was not confirmed by neighbour.</p>';
}
echo '<p><span class="vsbtd">Remarks:</span>'. $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 '<br><br><br>';