Fi Issues Fixes : ps
This commit is contained in:
parent
d83aad67ca
commit
1b918102f6
@ -2731,6 +2731,14 @@ class GETPROCESSEDJSON
|
||||
$raw_json[$key]['designation_person_met_master'] = $cr[0]['name'];
|
||||
}
|
||||
}
|
||||
if(isset($value['Relationship']) && $value['Relationship'] != "")
|
||||
{
|
||||
$cr = $CI->PD_Model->selectCustomRecords(array('*'),array('relationship_id' =>$value['Relationship'] ),RELATIONSHIPS);
|
||||
if($cr)
|
||||
{
|
||||
$raw_json[$key]['relationship_master'] = $cr[0]['name'];
|
||||
}
|
||||
}
|
||||
|
||||
if(isset($value['Name_of_the_Person_met']) && $value['Name_of_the_Person_met'] != "")
|
||||
{
|
||||
|
||||
@ -310,6 +310,7 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
||||
echo '<p>' . 'Applicant <b>('.$person.')</b> was met at the visited address.' . '</p>';
|
||||
} else if (strtoupper($value['is_person_met']) == 'NO') {
|
||||
$designation = str_replace(' of', '', $value['designation_person_met_master']);
|
||||
if($value['Others_specify']){ $designation = $value['Others_specify']; }
|
||||
echo '<p>' . '(' . $value['Name_of_the_Person'] . ') (' . $designation . ') was met at the visited address during visit.' . '</p>';
|
||||
}
|
||||
if (isset($general_form['general_remark']) && $general_form['general_remark'] != "") {
|
||||
|
||||
@ -349,6 +349,7 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
||||
echo '<h3 contenteditable="true"><u>VISIT DETAILS</u>: </h3>';
|
||||
$Office_visit_data = json_decode($pd_processed_forms[29][0]['processed_json'], true);
|
||||
$ov_value = $Office_visit_data['json'];
|
||||
// print_r($ov_value);die();
|
||||
|
||||
$company_name_sighted = strtoupper($ov_value['was_the_company_name_board_sighted']) == 'YES' ? 'seen' : 'not seen';
|
||||
$business_activities = strtoupper($ov_value['Was_any_business_activities_observed_during_visit']) == 'YES' ? 'seen' : 'not seen';
|
||||
@ -377,28 +378,35 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
||||
$document_not_seen = array();
|
||||
if (strtoupper($ov_value['salary_register_was_seen']) == 'YES') {
|
||||
array_push($document_seen, 'Salary Certificate');
|
||||
} else if (strtoupper($ov_value['salary_register_was_seen']) == 'NO' && isset($ov_value['Why_documents_are_not_available'])) {
|
||||
array_push($document_not_seen, $ov_value['Why_documents_are_not_available']);
|
||||
}
|
||||
}
|
||||
// else if (strtoupper($ov_value['salary_register_was_seen']) == 'NO' && isset($ov_value['Why_documents_are_not_available'])) {
|
||||
// array_push($document_not_seen, $ov_value['Why_documents_are_not_available']);
|
||||
// }
|
||||
if (strtoupper($ov_value['cash_voucher_was_seen']) == 'YES') {
|
||||
array_push($document_seen, 'Cash Voucher');
|
||||
} else if (strtoupper($ov_value['cash_voucher_was_seen']) == 'NO' && isset($ov_value['Why_documents_are_not_available_cash_voucher'])) {
|
||||
array_push($document_not_seen, $ov_value['Why_documents_are_not_available_cash_voucher']);
|
||||
}
|
||||
}
|
||||
// else if (strtoupper($ov_value['cash_voucher_was_seen']) == 'NO' && isset($ov_value['Why_documents_are_not_available_cash_voucher'])) {
|
||||
// array_push($document_not_seen, $ov_value['Why_documents_are_not_available_cash_voucher']);
|
||||
// }
|
||||
if (strtoupper($ov_value['salary_slip_was_seen']) == 'YES') {
|
||||
array_push($document_seen, 'Salary Slip');
|
||||
} else if (strtoupper($ov_value['salary_slip_was_seen']) == 'NO' && isset($ov_value['Why_documents_are_not_available_salary_slip'])) {
|
||||
array_push($document_not_seen, $ov_value['Why_documents_are_not_available_salary_slip']);
|
||||
}
|
||||
}
|
||||
// else if (strtoupper($ov_value['salary_slip_was_seen']) == 'NO' && isset($ov_value['Why_documents_are_not_available_salary_slip'])) {
|
||||
// array_push($document_not_seen, $ov_value['Why_documents_are_not_available_salary_slip']);
|
||||
// }
|
||||
if (strtoupper($ov_value['offer_letter_was_seen']) == 'YES') {
|
||||
array_push($document_seen, 'Offer letter');
|
||||
} else if ($ov_value['offer_letter_was_seen'] == 'NO' && isset($ov_value['Why_documents_are_not_available_offer_letter'])) {
|
||||
array_push($document_not_seen, $ov_value['Why_documents_are_not_available_offer_letter']);
|
||||
}
|
||||
}
|
||||
// else if ($ov_value['offer_letter_was_seen'] == 'NO' && isset($ov_value['Why_documents_are_not_available_offer_letter'])) {
|
||||
// array_push($document_not_seen, $ov_value['Why_documents_are_not_available_offer_letter']);
|
||||
// }
|
||||
if (strtoupper($ov_value['others_Please_specifys']) == 'YES' && !empty($ov_value['Others_specify'])) {
|
||||
array_push($document_seen, $ov_value['Others_specify']);
|
||||
}
|
||||
|
||||
if(isset($ov_value['Why_documents_are_not_available_offer_letter']) && (strtoupper($ov_value['salary_register_was_seen']) == 'NO') && (strtoupper($ov_value['others_Please_specifys']) == 'NO') && (strtoupper($ov_value['offer_letter_was_seen']) == 'NO') && (strtoupper($ov_value['salary_slip_was_seen']) == 'NO') && (strtoupper($ov_value['cash_voucher_was_seen']) == 'NO')) {
|
||||
array_push($document_not_seen, $ov_value['Why_documents_are_not_available_offer_letter']);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -417,8 +425,10 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
||||
|
||||
echo '<li style="margin: 15px 0;">Applicant salary is getting paid Via <b>' . $ov_value['mode_of_getting_salary'] . '</b>.</li> ';
|
||||
echo '<li style="margin: 15px 0;">Employment Document Sighted: <b>' . implode('/', $document_seen) . '</b> were seen during Field visit and photographs of same is available in zipped file enclosed with report.</li> ';
|
||||
if (!empty($document_not_seen)) {
|
||||
echo '<li style="margin: 15px 0;">Documents were not sighted during visit because, <b>' . implode('/', $document_seen) . '</b></li> ';
|
||||
if (!empty($ov_value['Why_documents_are_not_available_offer_letter'])) {
|
||||
$y_docs = implode('/', $ov_value['Why_documents_are_not_available_offer_letter']);
|
||||
$Why_documents_are_not_available = preg_replace("/_/i", ' ', $y_docs);
|
||||
echo '<li style="margin: 15px 0;">Documents were not sighted during visit because, <b>' . $Why_documents_are_not_available . '</b></li> ';
|
||||
}
|
||||
echo '<li style="margin: 15px 0;">Officer Sighted ' . $ov_value['no_of_employees_sighted_by_PD_officer_during_visit'] . ' employees at the visited premises.';
|
||||
echo '<li style="margin: 15px 0;">The Business Name board was <b>' . $company_name_sighted . '</b> at the visited address.</li>
|
||||
|
||||
@ -310,8 +310,8 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
||||
$person = isset($value['Name_of_the_Person_met_master']) ? $value['Name_of_the_Person_met_master'] : $value['Name_of_the_Person_met'];
|
||||
echo '<p>' . 'Applicant <b>('.$person.')</b> was met at the visited address.' . '</p>';
|
||||
} else if (strtoupper($value['is_person_met']) == 'NO') {
|
||||
$designation = isset($value['designation_person_met_master']) ? str_replace(' of', '', "(".$value['designation_person_met_master'].")") : "";
|
||||
echo '<p>' . '(' . $value['Name_of_the_Person'] . ') ' . $designation . ' was met at the visited address during visit.' . '</p>';
|
||||
$relation = $value['relationship_master'];
|
||||
echo '<p>' . '(' . $value['Name_of_the_Person'] . ') (' . $relation . ') was met at the visited address during visit.' . '</p>';
|
||||
}
|
||||
if (isset($general_form['general_remark']) && $general_form['general_remark'] != "") {
|
||||
echo '<p>' . $general_form['general_remark'] . '</p>';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user