SAL REPORT REMODIFIED
This commit is contained in:
parent
991d39e0f5
commit
3ed21d4356
@ -4897,7 +4897,7 @@ public function getPDFormDetailsJSON_post()
|
||||
{
|
||||
//$result_array[0]['content']
|
||||
$where_condition_array = array("pd_id" => $pdid);
|
||||
$temp_array['is_zip_created'] = 1;
|
||||
$temp_array['is_img_pdf_created'] = 1;
|
||||
$id = $this->PD_Model->updateRecords($temp_array,PDTRIGGER,$where_condition_array);
|
||||
unlink($output_file2);
|
||||
}
|
||||
@ -4905,7 +4905,6 @@ public function getPDFormDetailsJSON_post()
|
||||
|
||||
|
||||
$singed_uri = $this->aws_s3->getSingleObjectInaBucketAsSignedURI($bucketname,$key,'+30 minutes');
|
||||
|
||||
$response_data['dataStatus'] = true;
|
||||
$response_data['status'] = REST_Controller::HTTP_OK;
|
||||
$response_data['records'] = $singed_uri;
|
||||
@ -5791,6 +5790,7 @@ public function getPDFormDetailsJSON_post()
|
||||
|
||||
public function codeigniterViewTest_post()
|
||||
{
|
||||
//print_r($this->aws_s3->createNewBucket('len3'));die();
|
||||
//satellite_image::getSatelliteImage(886);die();
|
||||
//echo $this->assignPDTempalate(1325);die();
|
||||
//$this->getSatelliteImage(342);die();//velmurugan.s@venbainfotech.com
|
||||
|
||||
@ -75,7 +75,7 @@ class AWS_S3
|
||||
} catch (AwsException $e)
|
||||
{
|
||||
$result = false;
|
||||
log_message('ERRROR',$e);
|
||||
log_message('ERROR',$e);
|
||||
}
|
||||
|
||||
return $result;
|
||||
|
||||
@ -1132,61 +1132,62 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
<?php
|
||||
|
||||
$employeement_data = array();
|
||||
$salary_mode_text = array('both_bank_transfer_cash' => 'both bank transfer and cash','bank_transfer' => 'bank transfer');
|
||||
$salary_mode_text = array('both_bank_transfer_cash' => 'both bank and cash','bank_transfer' => 'bank transfer');
|
||||
if(isset($pd_processed_forms[12]))
|
||||
{
|
||||
$employeement_data = json_decode($pd_processed_forms[12][0]['processed_json'],true);
|
||||
}
|
||||
//print_r($employeement_data);
|
||||
//print_r($employeement_data); die();
|
||||
if(count($employeement_data))
|
||||
{
|
||||
echo "<h3>Employement Information</h3>" ;
|
||||
echo "<p><b>Employer Name : </b>". $employeement_data['employer_name'] ."</p>" ;
|
||||
echo "<h3>Employment Information</h3>" ;
|
||||
echo "<p><b>Employer Name : </b>". explode('-', $employeement_data['employer_name'])[1] ."</p>" ;
|
||||
echo "<p style='text-align:justify'><b>Company Profile : </b>". $employeement_data['employer_in_brief'] ."</p>" ;
|
||||
echo !($employeement_data['total_business_experience'] == $employeement_data['how_long_year'])? ("<p>Out of ".$employeement_data['total_business_experience']." Yr(s) of total experience, t") :"<p>T";
|
||||
echo "he applicant has served ". $employeement_data['how_long_year'] ." Years ".($employeement_data['how_long_month'] ? ' and '.$employeement_data['how_long_month'].' months' : '' )." as employee in this firm." ;
|
||||
echo $employeement_data['total_business_previous_experience'] ? ("<br>Previous Work Experience : ".$employeement_data['total_business_previous_experience']) : '';echo "</p>";
|
||||
echo "<p>During PD visit, ". ($employeement_data['was_met'] == 'no'? 'the employer was not met.' : $employeement_data['name_person_met'].' '.$employeement_data['designation_person_met_master'] .' the firm has been met');
|
||||
echo ($employeement_data['confirm_salary'] == 'no'? ' and salary amount was not confirmed because '.$employeement_data['sal_amount_was_not_confirmed'] : ' and '.$rupee_symbol.' '.MYUTIL::customIndianNumberFormat($employeement_data['confirm_salary_amount']).' ('.(MYUTIL::numtowords($employeement_data['confirm_salary_amount'])).') was confirmed as salary.');
|
||||
if($employeement_data['attendance_seen'] == $employeement_data['sal_reg_seen'] )
|
||||
{
|
||||
if($employeement_data['attendance_seen'] == 'no')
|
||||
{
|
||||
echo " During PD visit, both Attendance Register and Salary register were not seen.</p>";
|
||||
}
|
||||
else
|
||||
{
|
||||
echo " During PD visit, both Attendance Register and Salary register were seen.</p>";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
echo " During PD visit, Attendance Register ".($employeement_data['attendance_seen'] == 'no'? ' was not seen ' : 'was seen ').' and '.($employeement_data['sal_reg_seen'] == 'no' ? 'Salary register was not seen. ': 'Salary register was seen .') ."</p>";
|
||||
}
|
||||
|
||||
echo "<p>The applicant has served ". $employeement_data['how_long_year'] ." Years ".($employeement_data['how_long_month'] ? ' and '.$employeement_data['how_long_month'].' months' : '' )." as employee in this firm." ;
|
||||
|
||||
echo "Applicant has total work experience of ". $employeement_data['how_long_month']." years.</p>";
|
||||
|
||||
echo $employeement_data['total_business_previous_experience'] ? ("<p>Previously, applicant : ".$employeement_data['total_business_previous_experience']) : '';
|
||||
|
||||
echo $employeement_data['was_met'] == 'no'? "<p>No one was met at the visited premises who could confirm the employment details of loan applicant. </p>":"<p>During PD visit, ".$employeement_data['name_person_met'].' ( '. ($employeement_data['others_person_met'] ? $employeement_data['others_person_met'] : $employeement_data['designation_person_met_master']) .' ) was met at the visited premises.';
|
||||
|
||||
echo ($employeement_data['confirm_salary'] == 'no'? '<p>Salary amount was not confirmed because '.$employeement_data['sal_amount_was_not_confirmed'].' </p>' : '<p>Salary amount confirmed by person met is '.$rupee_symbol.' '.MYUTIL::customIndianNumberFormat($employeement_data['confirm_salary_amount']).'.</p>');
|
||||
|
||||
|
||||
echo $employeement_data['attendance_seen'] == 'no' ? "<p>Attendance Register was not seen during visit.</p>": "<p>Attendance register was seen during visit. </p>";
|
||||
|
||||
echo $employeement_data['sal_reg_seen'] == 'no' ? "<p>Salary register was not seen during visit.</p>": "<p>Salary register was seen during visit.</p>";
|
||||
|
||||
|
||||
|
||||
|
||||
echo "<p style='text-align:justify'>Salary is paid to the applicant between ".MYUTIL::addOrdinalNumberSuffix($employeement_data['from_date_the_salary_is_rcv']) ." and ".MYUTIL::addOrdinalNumberSuffix($employeement_data['to_date_the_salary_is_rcv']). " of every month as ".$salary_mode_text [ $employeement_data['mode_of_getting_salary'] ]." and ";
|
||||
echo "<p style='text-align:justify'>Salary paid to the applicant between ".MYUTIL::addOrdinalNumberSuffix($employeement_data['from_date_the_salary_is_rcv']) ." and ".MYUTIL::addOrdinalNumberSuffix($employeement_data['to_date_the_salary_is_rcv']). " of every month via ".$salary_mode_text [ $employeement_data['mode_of_getting_salary'] ]."</p>";
|
||||
|
||||
if((isset($employeement_data['amount_paid_in_cash']) && $employeement_data['amount_paid_in_cash']) && (isset($employeement_data['amount_paid_through_bank']) && $employeement_data['amount_paid_through_bank']))
|
||||
{
|
||||
echo $rupee_symbol.' '.$employeement_data['amount_paid_in_cash']."(".MYUTIL::numtowords($employeement_data['amount_paid_in_cash']).") entire salary is paid as and ".$rupee_symbol.' '.$employeement_data['amount_paid_through_bank']."(".MYUTIL::numtowords($employeement_data['amount_paid_through_bank']).") as bank transfer";
|
||||
}
|
||||
else if(isset($employeement_data['amount_paid_in_cash']) && $employeement_data['amount_paid_in_cash'])
|
||||
{
|
||||
echo "entire salary is paid as cash.";
|
||||
}
|
||||
else if(isset($employeement_data['amount_paid_through_bank']) && $employeement_data['amount_paid_through_bank'])
|
||||
{
|
||||
echo "entire salary is paid as bank transfer.";
|
||||
echo $rupee_symbol.' '.$employeement_data['amount_paid_in_cash']." paid as cash and ".$rupee_symbol.' '.$employeement_data['amount_paid_through_bank']." as bank transfer";
|
||||
}
|
||||
// else if(isset($employeement_data['amount_paid_in_cash']) && $employeement_data['amount_paid_in_cash'])
|
||||
// {
|
||||
// echo "entire salary is paid as cash.";
|
||||
// }
|
||||
// else if(isset($employeement_data['amount_paid_through_bank']) && $employeement_data['amount_paid_through_bank'])
|
||||
// {
|
||||
// echo "entire salary is paid as bank transfer.";
|
||||
// }
|
||||
|
||||
echo "applicant gets ". $rupee_symbol."". MYUTIL::customIndianNumberFormat($employeement_data['gross_monthly_salary'])." (".MYUTIL::numtowords($employeement_data['gross_monthly_salary']).") monthly gross salary and ".$rupee_symbol."". MYUTIL::customIndianNumberFormat($employeement_data['net_monthly_salary'])." (".MYUTIL::numtowords($employeement_data['net_monthly_salary']).") monthly net salary.";
|
||||
echo $employeement_data['net_monthly_salary'] == 'Yes' ? 'there is a delay in salary payment.' : 'Generally there is no delay in salary payment.';
|
||||
echo "</p><p>";
|
||||
echo "<p>Applicant gets monthly gross salary of". $rupee_symbol." ". MYUTIL::customIndianNumberFormat($employeement_data['gross_monthly_salary'])." and net monthly salary of ".$rupee_symbol."". MYUTIL::customIndianNumberFormat($employeement_data['net_monthly_salary'])."</p>";
|
||||
|
||||
|
||||
echo $employeement_data['bonus_incentive'] ? "The applicant receives a bonus ( ".($employeement_data['bonus_type'] == 'others' ? $employeement_data['bonus_type_other']: $employeement_data['bonus_type']).") of ".$rupee_symbol." ".MYUTIL::customIndianNumberFormat($employeement_data['bonus_incentive'])." ( " .MYUTIL::numtowords($employeement_data['bonus_incentive']).") "." ".$employeement_data['bonus_frequency_master'].'.': '';
|
||||
echo "</p>";
|
||||
echo "<p>".$employeement_data['id_card_issued_company'] == 'yes' ? 'ID card issued by employer was seen by PD officer.(image attatched end of the report)': 'ID card issued by employer was not seen by PD officer.'."</p>";
|
||||
echo $employeement_data['check_validated'] == "not validated" ? "<p>The salary amount was not validated during visit because ".$employeement_data['why_was_it_not_validated']."</p>": "<p>The salary amount was validated during visit ".$employeement_data['how_was_it_validated']."</p>";
|
||||
|
||||
echo $employeement_data['any_delays'] == 'Yes' ? '<p>As per person met, sometimes there is delay in salary payment.</p>' : '<p>Generally there is no delay in salary payment.</p>';
|
||||
|
||||
|
||||
echo $employeement_data['bonus_incentive'] ? "<p>The applicant receives a bonus ( ".($employeement_data['bonus_type'] == 'others' ? $employeement_data['bonus_type_other']: $employeement_data['bonus_type']).") of ".$rupee_symbol." ".MYUTIL::customIndianNumberFormat($employeement_data['bonus_incentive'])." ".$employeement_data['bonus_frequency_master'].'.</p>': '<p>Applicant does not get any Bonus amount or Incentives.</p>';
|
||||
|
||||
echo "<p>".$employeement_data['id_card_issued_company'] == 'yes' ? '<p>ID card issued by employer was seen by PD officer and same is available in zipped file enclosed with report.<p>': '<p>ID card issued by employer was not seen because,'.$employeement_data['why_company_id_proof_not_available'].'</p>';
|
||||
//echo "<br>***********************************";
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user