FI report Fixes 1 : ps
This commit is contained in:
parent
875c63165c
commit
bb813588e2
@ -874,7 +874,7 @@ class PD_Controller extends REST_Controller
|
||||
}
|
||||
if (isset($pd_details['pd_status']) && $pd_details['pd_status'] == STARTED) {
|
||||
// echo 'STARTED';
|
||||
if ($exist_pd_details[0]['fk_pd_type'] == 1) {
|
||||
if ($exist_pd_details[0]['fk_pd_type'] == 1 || $exist_pd_details[0]['fk_pd_type'] == 4) {
|
||||
$pd_details['start_location'] = $pd_details['link'];
|
||||
}
|
||||
|
||||
@ -2633,7 +2633,7 @@ class PD_Controller extends REST_Controller
|
||||
$where_condition_array['rental_count_id'] = $rental_count_id;
|
||||
}
|
||||
|
||||
$id = $this->PD_Model->updateRecords($fields, PDFORMDETAILSJSON, $where_condition_array);
|
||||
// $id = $this->PD_Model->updateRecords($fields, PDFORMDETAILSJSON, $where_condition_array);
|
||||
$custom_log_info = '###OLD Entries Deactivated PDID - (' . $pdid . ' - ' . $formid . ') - ' . date('Y-m-d H:i:s A');
|
||||
log_message('ERROR', $custom_log_info);
|
||||
|
||||
@ -2753,6 +2753,7 @@ class PD_Controller extends REST_Controller
|
||||
break;
|
||||
case 33:
|
||||
$processed_json = GETPROCESSEDJSON::convertFinalRemarksForm($records, $formid);
|
||||
print_r($processed_json);
|
||||
break;
|
||||
case 34:
|
||||
$processed_json = $records['photograph_details'];
|
||||
@ -2760,7 +2761,7 @@ class PD_Controller extends REST_Controller
|
||||
//default:
|
||||
//echo "Something Wrong! Form ID did not match, Contact System Administrator";
|
||||
}
|
||||
}
|
||||
}die;
|
||||
$custom_log_info = '###Processed JSON Function Executed PDID - (' . $pdid . ' - ' . $formid . ') - ' . date('Y-m-d H:i:s A');
|
||||
log_message('ERROR', $custom_log_info);
|
||||
|
||||
@ -2779,10 +2780,10 @@ class PD_Controller extends REST_Controller
|
||||
}
|
||||
|
||||
|
||||
$temp_array = array('fk_form_id' => $formid, 'company_id' => $company_id, 'fk_pd_id' => $pdid, 'fk_createdby' => $createdby, 'json' => $records, 'processed_json' => $processed_json, 'rental_count_id' => $rental_count_id, 'template_id' => $templateid);
|
||||
// $temp_array = array('fk_form_id'=>$formid,'company_id' => $company_id,'fk_pd_id'=>$pdid,'fk_createdby'=>$createdby,'json'=>$records,'processed_json' => $processed_json,'rental_count_id' => $rental_count_id);
|
||||
// $temp_array = array('fk_form_id' => $formid, 'company_id' => $company_id, 'fk_pd_id' => $pdid, 'fk_createdby' => $createdby, 'json' => $records, 'processed_json' => $processed_json, 'rental_count_id' => $rental_count_id, 'template_id' => $templateid);
|
||||
// // $temp_array = array('fk_form_id'=>$formid,'company_id' => $company_id,'fk_pd_id'=>$pdid,'fk_createdby'=>$createdby,'json'=>$records,'processed_json' => $processed_json,'rental_count_id' => $rental_count_id);
|
||||
|
||||
$id = $this->PD_Model->saveRecords($temp_array, PDFORMDETAILSJSON);
|
||||
// $id = $this->PD_Model->saveRecords($temp_array, PDFORMDETAILSJSON);
|
||||
|
||||
$logger->info("SAVE FORM JSON FUNCTION RESPONSE - ENV (" . ENVIRONMENT . ")", $log_info_array);
|
||||
if ($id != "" || $id != null) {
|
||||
|
||||
@ -2501,7 +2501,8 @@ class GETPROCESSEDJSON
|
||||
public static function convertFinalRemarksForm($raw_json,$formid)
|
||||
{
|
||||
|
||||
//echo "FEPJ called";
|
||||
echo "FEPJ called";
|
||||
// print_r($raw_json);die;
|
||||
$CI =& get_instance();
|
||||
$master_tables_field_names = $CI->config->item('master_tables_field_names');
|
||||
$master_tables_pkid = $CI->config->item('master_tables_pkid');
|
||||
@ -2716,7 +2717,7 @@ class GETPROCESSEDJSON
|
||||
|
||||
public static function convertFIAddressForm($raw_json,$formid)
|
||||
{
|
||||
//echo "ADDRESS FORM CALLED";
|
||||
// echo "ADDRESS FORM CALLED";
|
||||
$CI =& get_instance();
|
||||
$master_tables_field_names = $CI->config->item('master_tables_field_names');
|
||||
$master_tables_pkid = $CI->config->item('master_tables_pkid');
|
||||
@ -2726,11 +2727,10 @@ class GETPROCESSEDJSON
|
||||
$master_keys = $CI->PD_Model->selectCustomRecords($fields,$where_condition_array,QUESTIONKEYMAPPING);
|
||||
|
||||
|
||||
//print_r($raw_json);
|
||||
foreach($raw_json['json'] as $raw_json_key => $address)
|
||||
foreach($raw_json as $raw_json_key => $address)
|
||||
{
|
||||
|
||||
if(array_key_exists('Address_Type',$address))
|
||||
if(isset($address['Address_Type']))
|
||||
{
|
||||
$CI->db->SELECT( $master_tables_field_names['ADDRESSTYPE'] );
|
||||
$CI->db->FROM(ADDRESSTYPE);
|
||||
@ -2740,12 +2740,13 @@ class GETPROCESSEDJSON
|
||||
//print_r($CI->db->last_query());
|
||||
if(count($adress_type_name))
|
||||
{
|
||||
$raw_json['json'][$raw_json_key]['address_type_master'] = $adress_type_name[0][$master_tables_field_names['ADDRESSTYPE']];
|
||||
$raw_json[$raw_json_key]['address_type_master'] = $adress_type_name[0][$master_tables_field_names['ADDRESSTYPE']];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if(array_key_exists('Locality',$address))
|
||||
// if(array_key_exists('Locality',$address))
|
||||
if(isset($address['Locality']))
|
||||
{
|
||||
$CI->db->SELECT( $master_tables_field_names['LOCALITY'] );
|
||||
$CI->db->FROM(LOCALITY);
|
||||
@ -2755,12 +2756,13 @@ class GETPROCESSEDJSON
|
||||
//print_r($CI->db->last_query());
|
||||
if(count($locality_name))
|
||||
{
|
||||
$raw_json['json'][$raw_json_key]['locality_master'] = $locality_name[0][$master_tables_field_names['LOCALITY']];
|
||||
$raw_json[$raw_json_key]['locality_master'] = $locality_name[0][$master_tables_field_names['LOCALITY']];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if(array_key_exists('Approach_to_PD_location',$address))
|
||||
// if(array_key_exists('Approach_to_PD_location',$address))
|
||||
if(isset($address['Approach_to_PD_location']))
|
||||
{
|
||||
$CI->db->SELECT( $master_tables_field_names['PDLOCATIONAPPROACH'] );
|
||||
$CI->db->FROM(PDLOCATIONAPPROACH);
|
||||
@ -2770,12 +2772,13 @@ class GETPROCESSEDJSON
|
||||
//print_r($CI->db->last_query());
|
||||
if(count($pd_location_approach))
|
||||
{
|
||||
$raw_json['json'][$raw_json_key]['pd_location_master'] = $pd_location_approach[0][$master_tables_field_names['PDLOCATIONAPPROACH']];
|
||||
$raw_json[$raw_json_key]['pd_location_master'] = $pd_location_approach[0][$master_tables_field_names['PDLOCATIONAPPROACH']];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if(array_key_exists('Comment_on_Locality',$address))
|
||||
// if(array_key_exists('Comment_on_Locality',$address))
|
||||
if(isset($address['Comment_on_Locality']))
|
||||
{
|
||||
$CI->db->SELECT( $master_tables_field_names['COMMENTSONLOCALITY'] );
|
||||
$CI->db->FROM(COMMENTSONLOCALITY);
|
||||
@ -2785,13 +2788,14 @@ class GETPROCESSEDJSON
|
||||
//print_r($CI->db->last_query());
|
||||
if(count($comments_on_locality))
|
||||
{
|
||||
$raw_json['json'][$raw_json_key]['comment_locality_master'] = $comments_on_locality[0][$master_tables_field_names['COMMENTSONLOCALITY']];
|
||||
$raw_json[$raw_json_key]['comment_locality_master'] = $comments_on_locality[0][$master_tables_field_names['COMMENTSONLOCALITY']];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
if(array_key_exists('state',$address))
|
||||
// if(array_key_exists('state',$address))
|
||||
if(isset($address['state']))
|
||||
{
|
||||
//print_r($address);
|
||||
$CI->db->SELECT( $master_tables_field_names['STATE'] );
|
||||
@ -2802,11 +2806,12 @@ class GETPROCESSEDJSON
|
||||
//print_r($CI->db->last_query());
|
||||
if(count($adress_type_name))
|
||||
{
|
||||
$raw_json['json'][$raw_json_key]['state_master'] = $adress_type_name[0][$master_tables_field_names['STATE']];
|
||||
$raw_json[$raw_json_key]['state_master'] = $adress_type_name[0][$master_tables_field_names['STATE']];
|
||||
}
|
||||
}
|
||||
|
||||
if(array_key_exists('city',$address))
|
||||
// if(array_key_exists('city',$address))
|
||||
if(isset($address['city']))
|
||||
{
|
||||
//print_r($address);
|
||||
$CI->db->SELECT( $master_tables_field_names['CITY'] );
|
||||
@ -2817,11 +2822,12 @@ class GETPROCESSEDJSON
|
||||
//print_r($CI->db->last_query());
|
||||
if(count($city))
|
||||
{
|
||||
$raw_json['json'][$raw_json_key]['city_master'] = $city[0][$master_tables_field_names['CITY']];
|
||||
$raw_json[$raw_json_key]['city_master'] = $city[0][$master_tables_field_names['CITY']];
|
||||
}
|
||||
}
|
||||
|
||||
if(array_key_exists('pincode',$address))
|
||||
// if(array_key_exists('pincode',$address))
|
||||
if(isset($address['pincode']))
|
||||
{
|
||||
//print_r($address);
|
||||
$CI->db->SELECT( $master_tables_field_names['PINCODE'] );
|
||||
@ -2832,11 +2838,12 @@ class GETPROCESSEDJSON
|
||||
//print_r($CI->db->last_query());
|
||||
if(count($pincode))
|
||||
{
|
||||
$raw_json['json'][$raw_json_key]['pincode_master'] = $pincode[0][$master_tables_field_names['PINCODE']];
|
||||
$raw_json[$raw_json_key]['pincode_master'] = $pincode[0][$master_tables_field_names['PINCODE']];
|
||||
}
|
||||
}
|
||||
|
||||
if(array_key_exists('Unit_of_Measurement',$address))
|
||||
// if(array_key_exists('Unit_of_Measurement',$address))
|
||||
if(isset($address['Unit_of_Measurement']))
|
||||
{
|
||||
//print_r($address);
|
||||
$CI->db->SELECT( $master_tables_field_names['UOM'] );
|
||||
@ -2847,13 +2854,14 @@ class GETPROCESSEDJSON
|
||||
//print_r($CI->db->last_query());
|
||||
if(count($uom))
|
||||
{
|
||||
$raw_json['json'][$raw_json_key]['uom_master'] = $uom[0][$master_tables_field_names['UOM']];
|
||||
$raw_json[$raw_json_key]['uom_master'] = $uom[0][$master_tables_field_names['UOM']];
|
||||
}
|
||||
}
|
||||
}
|
||||
if(isset($raw_json['json']['is_pd_done_on_initiated_address']) && ($raw_json['json']['is_pd_done_on_initiated_address'] == "no") )
|
||||
if(isset($raw_json['is_pd_done_on_initiated_address']) && ($raw_json['is_pd_done_on_initiated_address'] == "no") )
|
||||
{
|
||||
if(array_key_exists('State_list',$address))
|
||||
// if(array_key_exists('State_list',$address))
|
||||
if(isset($address['State_list']))
|
||||
{
|
||||
//print_r($address);
|
||||
$CI->db->SELECT( $master_tables_field_names['STATE'] );
|
||||
@ -2864,11 +2872,12 @@ class GETPROCESSEDJSON
|
||||
//print_r($CI->db->last_query());
|
||||
if(count($adress_type_name))
|
||||
{
|
||||
$raw_json['json'][$raw_json_key]['state2_master'] = $adress_type_name[0][$master_tables_field_names['STATE']];
|
||||
$raw_json[$raw_json_key]['state2_master'] = $adress_type_name[0][$master_tables_field_names['STATE']];
|
||||
}
|
||||
}
|
||||
|
||||
if(array_key_exists('city2',$address))
|
||||
// if(array_key_exists('city2',$address))
|
||||
if(isset($address['city2']))
|
||||
{
|
||||
//print_r($address);
|
||||
$CI->db->SELECT( $master_tables_field_names['CITY'] );
|
||||
@ -2879,11 +2888,12 @@ class GETPROCESSEDJSON
|
||||
//print_r($CI->db->last_query());
|
||||
if(count($city))
|
||||
{
|
||||
$raw_json['json'][$raw_json_key]['city2_master'] = $city[0][$master_tables_field_names['CITY']];
|
||||
$raw_json[$raw_json_key]['city2_master'] = $city[0][$master_tables_field_names['CITY']];
|
||||
}
|
||||
}
|
||||
|
||||
if(array_key_exists('pincode2',$address))
|
||||
// if(array_key_exists('pincode2',$address))
|
||||
if(isset($address['pincode2']))
|
||||
{
|
||||
//print_r($address);
|
||||
$CI->db->SELECT( $master_tables_field_names['PINCODE'] );
|
||||
@ -2894,7 +2904,7 @@ class GETPROCESSEDJSON
|
||||
//print_r($CI->db->last_query());
|
||||
if(count($pincode))
|
||||
{
|
||||
$raw_json['json'][$raw_json_key]['pincode2_master'] = $pincode[0][$master_tables_field_names['PINCODE']];
|
||||
$raw_json[$raw_json_key]['pincode2_master'] = $pincode[0][$master_tables_field_names['PINCODE']];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -421,7 +421,7 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
||||
if ($value['is_person_met'] == 'yes') {
|
||||
echo '<p>' . 'Applicant <b>('.$value['Name_of_the_Person_met'].')</b> was met at the visited address.' . '</p>';
|
||||
}else if ($value['is_person_met'] == 'no') {
|
||||
echo '<p>' . '('.$value['Name_of_the_Person_met'].') ('.$value['designation_person_met_master'].') was met at the visited address during visit..' . '</p>';
|
||||
echo '<p>' . '('.$value['Name_of_the_Person'].') ('.$value['designation_person_met_master'].') 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>';
|
||||
@ -434,6 +434,7 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
||||
echo '<br>';
|
||||
$address_form = json_decode($pd_processed_forms[28][0]['processed_json'], true);
|
||||
$address_value = $address_form['json'];
|
||||
// print_r($address_value);
|
||||
if(!empty($address_value)){
|
||||
echo '<h3 contenteditable="true"><u>ADDRESS DETAILS</u>: </h3>';
|
||||
if ($address_value['is_pd_done_on_initiated_address'] == 'yes') {
|
||||
@ -495,13 +496,13 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
||||
$pd_offiecer_status_about_neighbor = "";
|
||||
$neighbour_details = json_decode($pd_processed_forms[32][0]['processed_json'], true);
|
||||
$neighbour_value = $neighbour_details['json'];
|
||||
$neighbourhood_form_common_remarks = $neighbour_value['neighbour_reference_remark'];
|
||||
if(strcasecmp($neighbour_value['neighbourhood_status'],'could not verify')){
|
||||
$pd_offiecer_status_about_neighbor = $neighbour_value['neighbourhood_status'];
|
||||
if(isset($neighbour_value['neighbourhood_list']) && count($neighbour_value['neighbourhood_list'])>0){
|
||||
$company_name = MYUTIL::findCompanyName($all_company_details,1,1);
|
||||
}
|
||||
}
|
||||
// print_r($neighbour_value);
|
||||
$neighbourhood_form_common_remarks = $neighbour_value['neighbourhood_remarks'];
|
||||
// if(strcasecmp($neighbour_value['neighbourhood_status'],'Could Not Verify')){
|
||||
$pd_offiecer_status_about_neighbor = $neighbour_value['neighbourhood_status'];
|
||||
// }
|
||||
$neighbourhood_form_common_remarks = isset($neighbour_value['neighbourhood_remarks']) ? $neighbour_value['neighbourhood_remarks'] : null;
|
||||
|
||||
?>
|
||||
<h3 contenteditable="true"><u>NEIGHBOURHOOD / REFERENCE CHECK</u></h3>
|
||||
<?php
|
||||
@ -533,7 +534,8 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
||||
$neighbourhood_business_running_yr = $neighbour_value['neighbourhood_name']." was not aware of how long the business is in operation.";
|
||||
}
|
||||
$ownwers_list = '';
|
||||
if($neighbour_value['organisation_owner']){
|
||||
if(isset($neighbour_value['know_organisation_owner']) && $neighbour_value['know_organisation_owner'] == 'yes'){
|
||||
if(isset($neighbour_value['organisation_owner'])){
|
||||
// echo "type" . gettype($neighbour_value['organisation_owner']);
|
||||
for($i = 0; $i < count($neighbour_value['organisation_owner']); $i++)
|
||||
{
|
||||
@ -564,7 +566,7 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
||||
$grammer2 = count($neighbour_value['organisation_owner']) > 1 ? 'owners': 'owner';
|
||||
$ownership = 'As per '.$neighbour_value['neighbourhood_name'].' the '.$grammer2 .' of '.$company_name.$grammer1.$ownwers_list.'.';
|
||||
|
||||
}else
|
||||
}}else
|
||||
{
|
||||
$ownership = $neighbour_value['neighbourhood_name']." was not aware of the business ownership.";
|
||||
}
|
||||
@ -608,8 +610,10 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
||||
<?php
|
||||
|
||||
$credit_officier_specific_queries = array();
|
||||
if (isset($pd_processed_forms[31])) {
|
||||
$credit_officier_specific_queries = json_decode($pd_processed_forms[31][0]['processed_json'], true);
|
||||
// print_r($pd_processed_forms);
|
||||
if (isset($pd_processed_forms[31]) && !empty($pd_processed_forms[31])) {
|
||||
$credit_officier_specific_querie = json_decode($pd_processed_forms[31][0]['processed_json'], true);
|
||||
$credit_officier_specific_queries = $credit_officier_specific_querie['json'];
|
||||
// print_r($credit_officier_specific_queries);
|
||||
}
|
||||
|
||||
@ -676,8 +680,8 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
||||
<br>
|
||||
<h3 contenteditable="true"><u>VISITING OFFICER`S REMARKS</u></h3>
|
||||
<?php
|
||||
$final_remark_data = json_decode($pd_processed_forms[33][0]['processed_json'],true) ;
|
||||
//print_r($final_remark_data);
|
||||
$final_remark = json_decode($pd_processed_forms[33][0]['processed_json'],true) ;
|
||||
$final_remark_data = $final_remark['json'];
|
||||
$polite = null;
|
||||
$rude = null;
|
||||
$other_behaviour = null;
|
||||
@ -688,6 +692,7 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
||||
|
||||
$positive = null;
|
||||
$negative = null;
|
||||
$Could_not_verfiy = null;
|
||||
$refer_to_credit = null;
|
||||
$fo_diplay = null;
|
||||
$other_pd_officer_command = null;
|
||||
@ -695,54 +700,50 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
||||
|
||||
$other_pd_officer_recommandation = null;
|
||||
$other_pd_officer_recommandation_remark = null;
|
||||
if ($final_remark_data['final_custormer_remark_type'] == 3) {
|
||||
$polite = 1;
|
||||
} else if ($final_remark_data['final_custormer_remark_type'] == 2) {
|
||||
$rude = 1;
|
||||
} else if ($final_remark_data['final_custormer_remark_type'] == 1) {
|
||||
$other_behaviour = 1;
|
||||
$other_behaviour_remarks = $final_remark_data['final_other_customer_behaviour'];
|
||||
if(isset($final_remark_data['final_custormer_remark_type'])){
|
||||
if ($final_remark_data['final_custormer_remark_type'] == 3) {
|
||||
$polite = 1;
|
||||
} else if ($final_remark_data['final_custormer_remark_type'] == 2) {
|
||||
$rude = 1;
|
||||
} else if ($final_remark_data['final_custormer_remark_type'] == 1) {
|
||||
$other_behaviour = 1;
|
||||
$other_behaviour_remarks = $final_remark_data['final_other_customer_behaviour'];
|
||||
}
|
||||
}
|
||||
|
||||
if(isset($final_remark_data['is_service_provided'])){
|
||||
if (!strcasecmp($final_remark_data['is_service_provided'], 'fairly_suited')) {
|
||||
$fair = 1;
|
||||
} else if (!strcasecmp($final_remark_data['is_service_provided'], 'well_suited')) {
|
||||
$well = 1;
|
||||
} else if (!strcasecmp($final_remark_data['is_service_provided'], 'not_suited')) {
|
||||
$not = 1;
|
||||
}
|
||||
}}
|
||||
|
||||
|
||||
if ($final_remark_data['pd_officers_recommendation'] == 2) {
|
||||
if(isset($final_remark_data['final_status_of_visit'])){
|
||||
if ($final_remark_data['final_status_of_visit'] == 'Couldnotverfiy') {
|
||||
$Could_not_verfiy = 1;
|
||||
$fo_diplay = "Could not verfiy";
|
||||
} else if ($final_remark_data['final_status_of_visit'] == 'Positive') {
|
||||
$positive = 1;
|
||||
$fo_diplay = "Positive";
|
||||
} else if ($final_remark_data['pd_officers_recommendation'] == 3) {
|
||||
} else if ($final_remark_data['final_status_of_visit'] == 'Negative') {
|
||||
$negative = 1;
|
||||
$fo_diplay = "Negative";
|
||||
} else if ($final_remark_data['pd_officers_recommendation'] == 4) {
|
||||
$refer_to_credit = 1;
|
||||
$fo_diplay = "Refer to credit";
|
||||
} else if ($final_remark_data['pd_officers_recommendation'] == 1) {
|
||||
$other_pd_officer_command = 1;
|
||||
$other_command_remark = $final_remark_data['others_pd_officers_recommendation'];
|
||||
}
|
||||
$pd_officer_final_remark = isset($final_remark_data['final_form_remarks']) ? $final_remark_data['final_form_remarks'] : '';
|
||||
|
||||
//if(is_null($other_behaviour)){ echo 'null'; }
|
||||
//if(is_null($other_behaviour)){ echo 'null'; }
|
||||
//if(is_null($other_behaviour)){ echo 'null'; }
|
||||
|
||||
}}
|
||||
$pd_officer_final_remark = isset($final_remark_data['common_remarks']) ? $final_remark_data['common_remarks'] : '';
|
||||
|
||||
?>
|
||||
<div>
|
||||
|
||||
<?php
|
||||
if (isset($final_remark_data['market_intelligence']) && $final_remark_data['market_intelligence'] != '') {
|
||||
echo '<div class="intelligence">';
|
||||
echo '<h3>Personal feedback or market intelligence on the case (if any):</h3>';
|
||||
echo '<p>' . $final_remark_data['market_intelligence'] . '</p>';
|
||||
echo '</div>';
|
||||
//echo '<br>';
|
||||
}
|
||||
// if (isset($final_remark_data['market_intelligence']) && $final_remark_data['market_intelligence'] != '') {
|
||||
// echo '<div class="intelligence">';
|
||||
// echo '<h3>Personal feedback or market intelligence on the case (if any):</h3>';
|
||||
// echo '<p>' . $final_remark_data['market_intelligence'] . '</p>';
|
||||
// echo '</div>';
|
||||
// //echo '<br>';
|
||||
// }
|
||||
?>
|
||||
<ul>
|
||||
<li>Customer Behaviour: </li>
|
||||
@ -790,80 +791,30 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
||||
echo '<br><br>';
|
||||
} ?>
|
||||
|
||||
|
||||
<!-- <li>Suitability of Business Location: </li>
|
||||
<br><br>
|
||||
|
||||
<table>
|
||||
|
||||
<tr>
|
||||
<td >
|
||||
<div id="first_div" style="border-color:green;color:black;">Well Suited</div> <div id="tick_div" style="border-color:green;color:black;"><?php if ($well) {
|
||||
echo $tick_mark;
|
||||
} ?></div>
|
||||
</td>
|
||||
<td style="padding-left:50px;">
|
||||
<div id="first_div" style="border-color:#ffff00;color:black;">Fairly Suited</div> <div id="tick_div" style="border-color:#ffff00;color:black;"><?php if ($fair) {
|
||||
echo $tick_mark;
|
||||
} ?></div>
|
||||
</td>
|
||||
|
||||
<td style="padding-left:50px;">
|
||||
<div id="first_div" style="border-color:red;color:black;">Not Suited</div> <div id="tick_div" style="border-color:red;color:black;"><?php if ($not) {
|
||||
echo $tick_mark;
|
||||
} ?></div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
</table> -->
|
||||
<br>
|
||||
<li>PD Officer’s overall assessment: </li>
|
||||
<br><br>
|
||||
|
||||
<table>
|
||||
<!-- <tr>
|
||||
<td><div id="boxstyle3">Positive <?php if ($positive) { ?><span style='font-family: DejaVu Sans; sans-serif;font-size:12px'>✔</span><?php } ?></div></td>
|
||||
|
||||
<td><div id="boxstyle3">Refer to Credit <?php if ($refer_to_credit) { ?><span style='font-family: DejaVu Sans; sans-serif;font-size:12px'>✔</span><?php } ?></div></td>
|
||||
|
||||
<td><div id="boxstyle3">Negative <?php if ($negative) { ?><span style='font-family: DejaVu Sans; sans-serif;font-size:12px'>✔</span><?php } ?></div></td>
|
||||
</tr>
|
||||
|
||||
<?php if ($other_pd_officer_command) { ?>
|
||||
<td><div id="boxstyle3">Others <?php if ($other_pd_officer_command) { ?><span style='font-family: DejaVu Sans; sans-serif;font-size:12px'>✔</span><?php } ?></div></td>
|
||||
<?php } ?>
|
||||
</tr> -->
|
||||
<tr>
|
||||
<?php if ($other_pd_officer_command == null) { ?>
|
||||
<td>
|
||||
<div id="first_div" style="border-color:green;color:black;">Positive</div>
|
||||
<div id="tick_div" style="border-color:green;color:black;"><?php if ($positive) {
|
||||
echo $tick_mark;
|
||||
} ?></div>
|
||||
</td>
|
||||
<td style="padding-left:50px;">
|
||||
<div id="first_div" style="border-color:#ffff00;color:black;">Refer to Credit</div>
|
||||
<div id="tick_div" style="border-color:#ffff00;color:black;"><?php if ($refer_to_credit) {
|
||||
echo $tick_mark;
|
||||
} ?></div>
|
||||
</td>
|
||||
|
||||
<td style="padding-left:50px;">
|
||||
<div id="first_div" style="border-color:red;color:black;">Negative</div>
|
||||
<div id="tick_div" style="border-color:red;color:black;"><?php if ($negative) {
|
||||
echo $tick_mark;
|
||||
} ?></div>
|
||||
</td>
|
||||
<?php } ?>
|
||||
<?php if ($other_pd_officer_command) { ?>
|
||||
<td>
|
||||
<div id="first_div" style="border-color:red;color:black;">Others*</div>
|
||||
<div id="tick_div" style="border-color:red;color:black;"><?php if ($other_pd_officer_command) {
|
||||
echo $tick_mark;
|
||||
} ?></div>
|
||||
<td style="padding-left:50px;">
|
||||
<div id="first_div" style="border-color:#ffff00;color:black;">Could not verfiy</div>
|
||||
<div id="tick_div" style="border-color:#ffff00;color:black;"><?php if ($Could_not_verfiy) {
|
||||
echo $tick_mark;
|
||||
} ?></div>
|
||||
</td>
|
||||
<?php } ?>
|
||||
</tr>
|
||||
|
||||
|
||||
@ -883,10 +834,11 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
||||
} else {
|
||||
$color_for_pd_offcier_recom = 'black';
|
||||
}
|
||||
echo '<strong><span style="font-size:20px;color:' . $color_for_pd_offcier_recom . ';">' . $fo_diplay . '</span>.</strong></p>'; ?>
|
||||
echo '<strong><span style="font-size:20px;color:' . $color_for_pd_offcier_recom . ';">' . $fo_diplay . '</span>.</strong></p>';
|
||||
if(isset($final_remark_data['recommendation_positive'])){?>
|
||||
|
||||
<p style="text-align:justify;">The following key points were considered while arriving at the aforementioned status.</p>
|
||||
<?php
|
||||
|
||||
if ($positive) {
|
||||
echo "<ul>";
|
||||
foreach ($final_remark_data['recommendation_positive'] as $pos) {
|
||||
@ -904,6 +856,7 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
||||
}
|
||||
}
|
||||
echo "</ul>";
|
||||
}
|
||||
?>
|
||||
<?php } else {
|
||||
echo "<p>" . $other_command_remark . "</p>";
|
||||
@ -942,24 +895,16 @@ if (isset($pd_images['common_images']) && count($pd_images['common_images'])) {
|
||||
<!-- ################# common images #################-->
|
||||
|
||||
<?php
|
||||
if (count($pd_images['common_images'])) {
|
||||
//echo count($pd_images['common_images']);
|
||||
//print_r($pd_images['common_images']);
|
||||
// foreach ($pd_images['common_images'] as $key => $value)
|
||||
// {
|
||||
// if($value['img_type'] == 1 || $value['img_type'] == 2 || $value['pd_document_title'] == 'satellite')
|
||||
// {
|
||||
// unset($pd_images['common_images'][$key]);
|
||||
// }
|
||||
// }
|
||||
//echo count($pd_images['common_images']);
|
||||
// print_r($pd_images['common_images']);
|
||||
$pd_images['common_images'] = array_values($pd_images['common_images']);
|
||||
// $filtered_arr = array_filter($pd_images['34'], function ($var) {
|
||||
// return ($var['isactive'] != 0);
|
||||
// });
|
||||
if (count($pd_images['34'])) {
|
||||
$pd_images['common_images'] = array_values($pd_images['34']);
|
||||
$tot_rows = ceil(count($pd_images['common_images']) / 2);
|
||||
echo '<div id="page_break"></div>';
|
||||
echo '<h3 contenteditable="true"><u>VISIT PICTURES</u></h3>';
|
||||
echo '<table class="scorecard_table"><tr><th class="thlargefont" colspan="10">Photograph`s</th></tr></table><br><table ><tbody>';
|
||||
$employment_img_names = array('attendance_seen_pic' => 'Attendance Register Image', 'sal_reg_seen_pic' => 'Salary Register Image', 'id_card_image' => 'Employee ID card', 'name_board_img' => 'Name Board Image');
|
||||
|
||||
$add_factor = 0;
|
||||
for ($row = 0; $row < $tot_rows; $row++) {
|
||||
echo '<tr>';
|
||||
@ -970,7 +915,7 @@ if (count($pd_images['common_images'])) {
|
||||
for ($i = $from; $i <= $to; $i++) {
|
||||
|
||||
if (isset($pd_images['common_images'][$i]) && ($pd_images['common_images'][$i]['pd_document_title'] != 'satellite')) {
|
||||
$doc_title = isset($employment_img_names[$pd_images['common_images'][$i]['pd_document_title']]) ? $employment_img_names[$pd_images['common_images'][$i]['pd_document_title']] : $pd_images['common_images'][$i]['pd_document_title'];
|
||||
$doc_title = $pd_images['common_images'][$i]['pd_document_title'];
|
||||
echo '<td style="text-align:center;border:1px solid;"> <img src="' . $pd_images['common_images'][$i]['doc_url'] . '" height = "200" width="200" alt="' . $pd_images['common_images'][$i]['pd_document_title'] . '"/><br>' . $doc_title . '</td>';
|
||||
}
|
||||
|
||||
|
||||
@ -421,7 +421,7 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
||||
if ($value['is_person_met'] == 'yes') {
|
||||
echo '<p>' . 'Applicant <b>('.$value['Name_of_the_Person_met'].')</b> was met at the visited address.' . '</p>';
|
||||
}else if ($value['is_person_met'] == 'no') {
|
||||
echo '<p>' . '('.$value['Name_of_the_Person_met'].') ('.$value['designation_person_met_master'].') was met at the visited address during visit..' . '</p>';
|
||||
echo '<p>' . 'During PD ('.$value['Name_of_the_Person'].') ('.$value['designation_person_met_master'].') 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>';
|
||||
@ -541,9 +541,10 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
||||
<!-- ################# credit manager specific query #################-->
|
||||
<?php
|
||||
|
||||
$credit_officier_specific_queries = array();
|
||||
if (isset($pd_processed_forms[31])) {
|
||||
$credit_officier_specific_queries = json_decode($pd_processed_forms[31][0]['processed_json'], true);
|
||||
if (isset($pd_processed_forms[31]) && !empty($pd_processed_forms[31])) {
|
||||
$credit_officier_specific_querie = json_decode($pd_processed_forms[31][0]['processed_json'], true);
|
||||
$credit_officier_specific_queries = $credit_officier_specific_querie['json'];
|
||||
// print_r($credit_officier_specific_queries);
|
||||
}
|
||||
|
||||
echo '<br>';
|
||||
@ -603,14 +604,14 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
||||
|
||||
?>
|
||||
<!-- ################# credit manager specific query ends#################-->
|
||||
|
||||
|
||||
<!-- ################# final remarks #################-->
|
||||
<div class="page_break"></div>
|
||||
<br>
|
||||
<h3 contenteditable="true">VISITING OFFICER`S REMARKS</h3>
|
||||
<?php
|
||||
$final_remark_data = json_decode($pd_processed_forms[33][0]['processed_json'],true) ;
|
||||
//print_r($final_remark_data);
|
||||
$final_remark = json_decode($pd_processed_forms[33][0]['processed_json'],true) ;
|
||||
$final_remark_data = $final_remark['json'];
|
||||
$polite = null;
|
||||
$rude = null;
|
||||
$other_behaviour = null;
|
||||
@ -621,6 +622,7 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
||||
|
||||
$positive = null;
|
||||
$negative = null;
|
||||
$Could_not_verfiy = null;
|
||||
$refer_to_credit = null;
|
||||
$fo_diplay = null;
|
||||
$other_pd_officer_command = null;
|
||||
@ -628,54 +630,50 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
||||
|
||||
$other_pd_officer_recommandation = null;
|
||||
$other_pd_officer_recommandation_remark = null;
|
||||
if ($final_remark_data['final_custormer_remark_type'] == 3) {
|
||||
$polite = 1;
|
||||
} else if ($final_remark_data['final_custormer_remark_type'] == 2) {
|
||||
$rude = 1;
|
||||
} else if ($final_remark_data['final_custormer_remark_type'] == 1) {
|
||||
$other_behaviour = 1;
|
||||
$other_behaviour_remarks = $final_remark_data['final_other_customer_behaviour'];
|
||||
if(isset($final_remark_data['final_custormer_remark_type'])){
|
||||
if ($final_remark_data['final_custormer_remark_type'] == 3) {
|
||||
$polite = 1;
|
||||
} else if ($final_remark_data['final_custormer_remark_type'] == 2) {
|
||||
$rude = 1;
|
||||
} else if ($final_remark_data['final_custormer_remark_type'] == 1) {
|
||||
$other_behaviour = 1;
|
||||
$other_behaviour_remarks = $final_remark_data['final_other_customer_behaviour'];
|
||||
}
|
||||
}
|
||||
|
||||
if(isset($final_remark_data['is_service_provided'])){
|
||||
if (!strcasecmp($final_remark_data['is_service_provided'], 'fairly_suited')) {
|
||||
$fair = 1;
|
||||
} else if (!strcasecmp($final_remark_data['is_service_provided'], 'well_suited')) {
|
||||
$well = 1;
|
||||
} else if (!strcasecmp($final_remark_data['is_service_provided'], 'not_suited')) {
|
||||
$not = 1;
|
||||
}
|
||||
}}
|
||||
|
||||
|
||||
if ($final_remark_data['pd_officers_recommendation'] == 2) {
|
||||
if(isset($final_remark_data['final_status_of_visit'])){
|
||||
if ($final_remark_data['final_status_of_visit'] == 'Couldnotverfiy') {
|
||||
$Could_not_verfiy = 1;
|
||||
$fo_diplay = "Could not verfiy";
|
||||
} else if ($final_remark_data['final_status_of_visit'] == 'Positive') {
|
||||
$positive = 1;
|
||||
$fo_diplay = "Positive";
|
||||
} else if ($final_remark_data['pd_officers_recommendation'] == 3) {
|
||||
} else if ($final_remark_data['final_status_of_visit'] == 'Negative') {
|
||||
$negative = 1;
|
||||
$fo_diplay = "Negative";
|
||||
} else if ($final_remark_data['pd_officers_recommendation'] == 4) {
|
||||
$refer_to_credit = 1;
|
||||
$fo_diplay = "Refer to credit";
|
||||
} else if ($final_remark_data['pd_officers_recommendation'] == 1) {
|
||||
$other_pd_officer_command = 1;
|
||||
$other_command_remark = $final_remark_data['others_pd_officers_recommendation'];
|
||||
}
|
||||
$pd_officer_final_remark = isset($final_remark_data['final_form_remarks']) ? $final_remark_data['final_form_remarks'] : '';
|
||||
|
||||
//if(is_null($other_behaviour)){ echo 'null'; }
|
||||
//if(is_null($other_behaviour)){ echo 'null'; }
|
||||
//if(is_null($other_behaviour)){ echo 'null'; }
|
||||
|
||||
}}
|
||||
$pd_officer_final_remark = isset($final_remark_data['common_remarks']) ? $final_remark_data['common_remarks'] : '';
|
||||
|
||||
?>
|
||||
<div>
|
||||
|
||||
<?php
|
||||
if (isset($final_remark_data['market_intelligence']) && $final_remark_data['market_intelligence'] != '') {
|
||||
echo '<div class="intelligence">';
|
||||
echo '<h3>Personal feedback or market intelligence on the case (if any):</h3>';
|
||||
echo '<p>' . $final_remark_data['market_intelligence'] . '</p>';
|
||||
echo '</div>';
|
||||
//echo '<br>';
|
||||
}
|
||||
// if (isset($final_remark_data['market_intelligence']) && $final_remark_data['market_intelligence'] != '') {
|
||||
// echo '<div class="intelligence">';
|
||||
// echo '<h3>Personal feedback or market intelligence on the case (if any):</h3>';
|
||||
// echo '<p>' . $final_remark_data['market_intelligence'] . '</p>';
|
||||
// echo '</div>';
|
||||
// //echo '<br>';
|
||||
// }
|
||||
?>
|
||||
<ul>
|
||||
<li>Customer Behaviour: </li>
|
||||
@ -723,80 +721,30 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
||||
echo '<br><br>';
|
||||
} ?>
|
||||
|
||||
|
||||
<!-- <li>Suitability of Business Location: </li>
|
||||
<br><br>
|
||||
|
||||
<table>
|
||||
|
||||
<tr>
|
||||
<td >
|
||||
<div id="first_div" style="border-color:green;color:black;">Well Suited</div> <div id="tick_div" style="border-color:green;color:black;"><?php if ($well) {
|
||||
echo $tick_mark;
|
||||
} ?></div>
|
||||
</td>
|
||||
<td style="padding-left:50px;">
|
||||
<div id="first_div" style="border-color:#ffff00;color:black;">Fairly Suited</div> <div id="tick_div" style="border-color:#ffff00;color:black;"><?php if ($fair) {
|
||||
echo $tick_mark;
|
||||
} ?></div>
|
||||
</td>
|
||||
|
||||
<td style="padding-left:50px;">
|
||||
<div id="first_div" style="border-color:red;color:black;">Not Suited</div> <div id="tick_div" style="border-color:red;color:black;"><?php if ($not) {
|
||||
echo $tick_mark;
|
||||
} ?></div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
</table> -->
|
||||
<br>
|
||||
<li>PD Officer’s overall assessment: </li>
|
||||
<br><br>
|
||||
|
||||
<table>
|
||||
<!-- <tr>
|
||||
<td><div id="boxstyle3">Positive <?php if ($positive) { ?><span style='font-family: DejaVu Sans; sans-serif;font-size:12px'>✔</span><?php } ?></div></td>
|
||||
|
||||
<td><div id="boxstyle3">Refer to Credit <?php if ($refer_to_credit) { ?><span style='font-family: DejaVu Sans; sans-serif;font-size:12px'>✔</span><?php } ?></div></td>
|
||||
|
||||
<td><div id="boxstyle3">Negative <?php if ($negative) { ?><span style='font-family: DejaVu Sans; sans-serif;font-size:12px'>✔</span><?php } ?></div></td>
|
||||
</tr>
|
||||
|
||||
<?php if ($other_pd_officer_command) { ?>
|
||||
<td><div id="boxstyle3">Others <?php if ($other_pd_officer_command) { ?><span style='font-family: DejaVu Sans; sans-serif;font-size:12px'>✔</span><?php } ?></div></td>
|
||||
<?php } ?>
|
||||
</tr> -->
|
||||
<tr>
|
||||
<?php if ($other_pd_officer_command == null) { ?>
|
||||
<td>
|
||||
<div id="first_div" style="border-color:green;color:black;">Positive</div>
|
||||
<div id="tick_div" style="border-color:green;color:black;"><?php if ($positive) {
|
||||
echo $tick_mark;
|
||||
} ?></div>
|
||||
</td>
|
||||
<td style="padding-left:50px;">
|
||||
<div id="first_div" style="border-color:#ffff00;color:black;">Refer to Credit</div>
|
||||
<div id="tick_div" style="border-color:#ffff00;color:black;"><?php if ($refer_to_credit) {
|
||||
echo $tick_mark;
|
||||
} ?></div>
|
||||
</td>
|
||||
|
||||
<td style="padding-left:50px;">
|
||||
<div id="first_div" style="border-color:red;color:black;">Negative</div>
|
||||
<div id="tick_div" style="border-color:red;color:black;"><?php if ($negative) {
|
||||
echo $tick_mark;
|
||||
} ?></div>
|
||||
</td>
|
||||
<?php } ?>
|
||||
<?php if ($other_pd_officer_command) { ?>
|
||||
<td>
|
||||
<div id="first_div" style="border-color:red;color:black;">Others*</div>
|
||||
<div id="tick_div" style="border-color:red;color:black;"><?php if ($other_pd_officer_command) {
|
||||
echo $tick_mark;
|
||||
} ?></div>
|
||||
<td style="padding-left:50px;">
|
||||
<div id="first_div" style="border-color:#ffff00;color:black;">Could not verfiy</div>
|
||||
<div id="tick_div" style="border-color:#ffff00;color:black;"><?php if ($Could_not_verfiy) {
|
||||
echo $tick_mark;
|
||||
} ?></div>
|
||||
</td>
|
||||
<?php } ?>
|
||||
</tr>
|
||||
|
||||
|
||||
@ -816,10 +764,11 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
||||
} else {
|
||||
$color_for_pd_offcier_recom = 'black';
|
||||
}
|
||||
echo '<strong><span style="font-size:20px;color:' . $color_for_pd_offcier_recom . ';">' . $fo_diplay . '</span>.</strong></p>'; ?>
|
||||
echo '<strong><span style="font-size:20px;color:' . $color_for_pd_offcier_recom . ';">' . $fo_diplay . '</span>.</strong></p>';
|
||||
if(isset($final_remark_data['recommendation_positive'])){?>
|
||||
|
||||
<p style="text-align:justify;">The following key points were considered while arriving at the aforementioned status.</p>
|
||||
<?php
|
||||
|
||||
if ($positive) {
|
||||
echo "<ul>";
|
||||
foreach ($final_remark_data['recommendation_positive'] as $pos) {
|
||||
@ -837,6 +786,7 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
||||
}
|
||||
}
|
||||
echo "</ul>";
|
||||
}
|
||||
?>
|
||||
<?php } else {
|
||||
echo "<p>" . $other_command_remark . "</p>";
|
||||
@ -875,24 +825,16 @@ if (isset($pd_images['common_images']) && count($pd_images['common_images'])) {
|
||||
<!-- ################# common images #################-->
|
||||
|
||||
<?php
|
||||
if (count($pd_images['common_images'])) {
|
||||
//echo count($pd_images['common_images']);
|
||||
//print_r($pd_images['common_images']);
|
||||
// foreach ($pd_images['common_images'] as $key => $value)
|
||||
// {
|
||||
// if($value['img_type'] == 1 || $value['img_type'] == 2 || $value['pd_document_title'] == 'satellite')
|
||||
// {
|
||||
// unset($pd_images['common_images'][$key]);
|
||||
// }
|
||||
// }
|
||||
//echo count($pd_images['common_images']);
|
||||
// print_r($pd_images['common_images']);
|
||||
$pd_images['common_images'] = array_values($pd_images['common_images']);
|
||||
// $filtered_arr = array_filter($pd_images['34'], function ($var) {
|
||||
// return ($var['isactive'] != 0);
|
||||
// });
|
||||
if (count($pd_images['34'])) {
|
||||
$pd_images['common_images'] = array_values($pd_images['34']);
|
||||
$tot_rows = ceil(count($pd_images['common_images']) / 2);
|
||||
echo '<div id="page_break"></div>';
|
||||
echo '<h3 contenteditable="true"><u>VISIT PICTURES</u></h3>';
|
||||
echo '<table class="scorecard_table"><tr><th class="thlargefont" colspan="10">Photograph`s</th></tr></table><br><table ><tbody>';
|
||||
$employment_img_names = array('attendance_seen_pic' => 'Attendance Register Image', 'sal_reg_seen_pic' => 'Salary Register Image', 'id_card_image' => 'Employee ID card', 'name_board_img' => 'Name Board Image');
|
||||
|
||||
$add_factor = 0;
|
||||
for ($row = 0; $row < $tot_rows; $row++) {
|
||||
echo '<tr>';
|
||||
@ -903,7 +845,7 @@ if (count($pd_images['common_images'])) {
|
||||
for ($i = $from; $i <= $to; $i++) {
|
||||
|
||||
if (isset($pd_images['common_images'][$i]) && ($pd_images['common_images'][$i]['pd_document_title'] != 'satellite')) {
|
||||
$doc_title = isset($employment_img_names[$pd_images['common_images'][$i]['pd_document_title']]) ? $employment_img_names[$pd_images['common_images'][$i]['pd_document_title']] : $pd_images['common_images'][$i]['pd_document_title'];
|
||||
$doc_title = $pd_images['common_images'][$i]['pd_document_title'];
|
||||
echo '<td style="text-align:center;border:1px solid;"> <img src="' . $pd_images['common_images'][$i]['doc_url'] . '" height = "200" width="200" alt="' . $pd_images['common_images'][$i]['pd_document_title'] . '"/><br>' . $doc_title . '</td>';
|
||||
}
|
||||
|
||||
|
||||
@ -456,7 +456,7 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
||||
if ($value['is_person_met'] == 'yes') {
|
||||
echo '<p>' . 'Applicant <b>('.$value['Name_of_the_Person_met'].')</b> was met at the visited address.' . '</p>';
|
||||
}else if ($value['is_person_met'] == 'no') {
|
||||
echo '<p>' . '('.$value['Name_of_the_Person_met'].') ('.$value['designation_person_met_master'].') was met at the visited address during visit..' . '</p>';
|
||||
echo '<p>' . '('.$value['Name_of_the_Person'].') ('.$value['designation_person_met_master'].') 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>';
|
||||
@ -528,13 +528,12 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
||||
$pd_offiecer_status_about_neighbor = "";
|
||||
$neighbour_details = json_decode($pd_processed_forms[32][0]['processed_json'], true);
|
||||
$neighbour_value = $neighbour_details['json'];
|
||||
$neighbourhood_form_common_remarks = $neighbour_value['neighbour_reference_remark'];
|
||||
if(strcasecmp($neighbour_value['neighbourhood_status'],'could not verify')){
|
||||
$pd_offiecer_status_about_neighbor = $neighbour_value['neighbourhood_status'];
|
||||
if(isset($neighbour_value['neighbourhood_list']) && count($neighbour_value['neighbourhood_list'])>0){
|
||||
$company_name = MYUTIL::findCompanyName($all_company_details,1,1);
|
||||
}
|
||||
}
|
||||
// print_r($neighbour_value);
|
||||
$neighbourhood_form_common_remarks = $neighbour_value['neighbourhood_remarks'];
|
||||
// if(strcasecmp($neighbour_value['neighbourhood_status'],'Could Not Verify')){
|
||||
$pd_offiecer_status_about_neighbor = $neighbour_value['neighbourhood_status'];
|
||||
// }
|
||||
$neighbourhood_form_common_remarks = isset($neighbour_value['neighbourhood_remarks']) ? $neighbour_value['neighbourhood_remarks'] : null;
|
||||
?>
|
||||
<h3 contenteditable="true"><u>NEIGHBOURHOOD / REFERENCE CHECK</u></h3>
|
||||
<?php
|
||||
@ -566,7 +565,8 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
||||
$neighbourhood_business_running_yr = $neighbour_value['neighbourhood_name']." was not aware of how long the business is in operation.";
|
||||
}
|
||||
$ownwers_list = '';
|
||||
if($neighbour_value['organisation_owner']){
|
||||
if(isset($neighbour_value['know_organisation_owner']) && $neighbour_value['know_organisation_owner'] == 'yes'){
|
||||
if(isset($neighbour_value['organisation_owner'])){
|
||||
// echo "type" . gettype($neighbour_value['organisation_owner']);
|
||||
for($i = 0; $i < count($neighbour_value['organisation_owner']); $i++)
|
||||
{
|
||||
@ -597,7 +597,7 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
||||
$grammer2 = count($neighbour_value['organisation_owner']) > 1 ? 'owners': 'owner';
|
||||
$ownership = 'As per '.$neighbour_value['neighbourhood_name'].' the '.$grammer2 .' of '.$company_name.$grammer1.$ownwers_list.'.';
|
||||
|
||||
}else
|
||||
}}else
|
||||
{
|
||||
$ownership = $neighbour_value['neighbourhood_name']." was not aware of the business ownership.";
|
||||
}
|
||||
@ -641,8 +641,9 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
||||
<?php
|
||||
|
||||
$credit_officier_specific_queries = array();
|
||||
if (isset($pd_processed_forms[31])) {
|
||||
$credit_officier_specific_queries = json_decode($pd_processed_forms[31][0]['processed_json'], true);
|
||||
if (isset($pd_processed_forms[31]) && !empty($pd_processed_forms[31])) {
|
||||
$credit_officier_specific_querie = json_decode($pd_processed_forms[31][0]['processed_json'], true);
|
||||
$credit_officier_specific_queries = $credit_officier_specific_querie['json'];
|
||||
// print_r($credit_officier_specific_queries);
|
||||
}
|
||||
|
||||
@ -709,7 +710,8 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
||||
<br>
|
||||
<h3 contenteditable="true"><u>VISITING OFFICER`S REMARKS</u></h3>
|
||||
<?php
|
||||
$final_remark_data = json_decode($pd_processed_forms[33][0]['processed_json'],true) ;
|
||||
$final_remark = json_decode($pd_processed_forms[33][0]['processed_json'],true) ;
|
||||
$final_remark_data = $final_remark['json'];
|
||||
//print_r($final_remark_data);
|
||||
$polite = null;
|
||||
$rude = null;
|
||||
@ -722,60 +724,62 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
||||
$positive = null;
|
||||
$negative = null;
|
||||
$refer_to_credit = null;
|
||||
$Could_not_verfiy = null;
|
||||
$fo_diplay = null;
|
||||
$other_pd_officer_command = null;
|
||||
$other_command_remark = null;
|
||||
|
||||
$other_pd_officer_recommandation = null;
|
||||
$other_pd_officer_recommandation_remark = null;
|
||||
if ($final_remark_data['final_custormer_remark_type'] == 3) {
|
||||
$polite = 1;
|
||||
} else if ($final_remark_data['final_custormer_remark_type'] == 2) {
|
||||
$rude = 1;
|
||||
} else if ($final_remark_data['final_custormer_remark_type'] == 1) {
|
||||
$other_behaviour = 1;
|
||||
$other_behaviour_remarks = $final_remark_data['final_other_customer_behaviour'];
|
||||
if(isset($final_remark_data['final_custormer_remark_type'])){
|
||||
if ($final_remark_data['final_custormer_remark_type'] == 3) {
|
||||
$polite = 1;
|
||||
} else if ($final_remark_data['final_custormer_remark_type'] == 2) {
|
||||
$rude = 1;
|
||||
} else if ($final_remark_data['final_custormer_remark_type'] == 1) {
|
||||
$other_behaviour = 1;
|
||||
$other_behaviour_remarks = $final_remark_data['final_other_customer_behaviour'];
|
||||
}
|
||||
}
|
||||
|
||||
if(isset($final_remark_data['is_service_provided'])){
|
||||
if (!strcasecmp($final_remark_data['is_service_provided'], 'fairly_suited')) {
|
||||
$fair = 1;
|
||||
} else if (!strcasecmp($final_remark_data['is_service_provided'], 'well_suited')) {
|
||||
$well = 1;
|
||||
} else if (!strcasecmp($final_remark_data['is_service_provided'], 'not_suited')) {
|
||||
$not = 1;
|
||||
}
|
||||
}}
|
||||
|
||||
|
||||
if ($final_remark_data['pd_officers_recommendation'] == 2) {
|
||||
if(isset($final_remark_data['final_status_of_visit'])){
|
||||
if ($final_remark_data['final_status_of_visit'] == 'Couldnotverfiy') {
|
||||
$Could_not_verfiy = 1;
|
||||
$fo_diplay = "Could not verfiy";
|
||||
} else if ($final_remark_data['final_status_of_visit'] == 'Positive') {
|
||||
$positive = 1;
|
||||
$fo_diplay = "Positive";
|
||||
} else if ($final_remark_data['pd_officers_recommendation'] == 3) {
|
||||
} else if ($final_remark_data['final_status_of_visit'] == 'Negative') {
|
||||
$negative = 1;
|
||||
$fo_diplay = "Negative";
|
||||
} else if ($final_remark_data['pd_officers_recommendation'] == 4) {
|
||||
$refer_to_credit = 1;
|
||||
$fo_diplay = "Refer to credit";
|
||||
} else if ($final_remark_data['pd_officers_recommendation'] == 1) {
|
||||
$other_pd_officer_command = 1;
|
||||
$other_command_remark = $final_remark_data['others_pd_officers_recommendation'];
|
||||
}
|
||||
$pd_officer_final_remark = isset($final_remark_data['final_form_remarks']) ? $final_remark_data['final_form_remarks'] : '';
|
||||
}}
|
||||
$pd_officer_final_remark = isset($final_remark_data['common_remarks']) ? $final_remark_data['common_remarks'] : '';
|
||||
|
||||
//if(is_null($other_behaviour)){ echo 'null'; }
|
||||
//if(is_null($other_behaviour)){ echo 'null'; }
|
||||
//if(is_null($other_behaviour)){ echo 'null'; }
|
||||
|
||||
//if(is_null($other_behaviour)){ echo 'null'; }
|
||||
//if(is_null($other_behaviour)){ echo 'null'; }
|
||||
//if(is_null($other_behaviour)){ echo 'null'; }
|
||||
|
||||
?>
|
||||
<div>
|
||||
|
||||
<?php
|
||||
if (isset($final_remark_data['market_intelligence']) && $final_remark_data['market_intelligence'] != '') {
|
||||
echo '<div class="intelligence">';
|
||||
echo '<h3>Personal feedback or market intelligence on the case (if any):</h3>';
|
||||
echo '<p>' . $final_remark_data['market_intelligence'] . '</p>';
|
||||
echo '</div>';
|
||||
//echo '<br>';
|
||||
}
|
||||
// if (isset($final_remark_data['market_intelligence']) && $final_remark_data['market_intelligence'] != '') {
|
||||
// echo '<div class="intelligence">';
|
||||
// echo '<h3>Personal feedback or market intelligence on the case (if any):</h3>';
|
||||
// echo '<p>' . $final_remark_data['market_intelligence'] . '</p>';
|
||||
// echo '</div>';
|
||||
// //echo '<br>';
|
||||
// }
|
||||
?>
|
||||
<ul>
|
||||
<li>Customer Behaviour: </li>
|
||||
@ -823,80 +827,30 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
||||
echo '<br><br>';
|
||||
} ?>
|
||||
|
||||
|
||||
<!-- <li>Suitability of Business Location: </li>
|
||||
<br><br>
|
||||
|
||||
<table>
|
||||
|
||||
<tr>
|
||||
<td >
|
||||
<div id="first_div" style="border-color:green;color:black;">Well Suited</div> <div id="tick_div" style="border-color:green;color:black;"><?php if ($well) {
|
||||
echo $tick_mark;
|
||||
} ?></div>
|
||||
</td>
|
||||
<td style="padding-left:50px;">
|
||||
<div id="first_div" style="border-color:#ffff00;color:black;">Fairly Suited</div> <div id="tick_div" style="border-color:#ffff00;color:black;"><?php if ($fair) {
|
||||
echo $tick_mark;
|
||||
} ?></div>
|
||||
</td>
|
||||
|
||||
<td style="padding-left:50px;">
|
||||
<div id="first_div" style="border-color:red;color:black;">Not Suited</div> <div id="tick_div" style="border-color:red;color:black;"><?php if ($not) {
|
||||
echo $tick_mark;
|
||||
} ?></div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
</table> -->
|
||||
<br>
|
||||
<li>PD Officer’s overall assessment: </li>
|
||||
<br><br>
|
||||
|
||||
<table>
|
||||
<!-- <tr>
|
||||
<td><div id="boxstyle3">Positive <?php if ($positive) { ?><span style='font-family: DejaVu Sans; sans-serif;font-size:12px'>✔</span><?php } ?></div></td>
|
||||
|
||||
<td><div id="boxstyle3">Refer to Credit <?php if ($refer_to_credit) { ?><span style='font-family: DejaVu Sans; sans-serif;font-size:12px'>✔</span><?php } ?></div></td>
|
||||
|
||||
<td><div id="boxstyle3">Negative <?php if ($negative) { ?><span style='font-family: DejaVu Sans; sans-serif;font-size:12px'>✔</span><?php } ?></div></td>
|
||||
</tr>
|
||||
|
||||
<?php if ($other_pd_officer_command) { ?>
|
||||
<td><div id="boxstyle3">Others <?php if ($other_pd_officer_command) { ?><span style='font-family: DejaVu Sans; sans-serif;font-size:12px'>✔</span><?php } ?></div></td>
|
||||
<?php } ?>
|
||||
</tr> -->
|
||||
<tr>
|
||||
<?php if ($other_pd_officer_command == null) { ?>
|
||||
<td>
|
||||
<div id="first_div" style="border-color:green;color:black;">Positive</div>
|
||||
<div id="tick_div" style="border-color:green;color:black;"><?php if ($positive) {
|
||||
echo $tick_mark;
|
||||
} ?></div>
|
||||
</td>
|
||||
<td style="padding-left:50px;">
|
||||
<div id="first_div" style="border-color:#ffff00;color:black;">Refer to Credit</div>
|
||||
<div id="tick_div" style="border-color:#ffff00;color:black;"><?php if ($refer_to_credit) {
|
||||
echo $tick_mark;
|
||||
} ?></div>
|
||||
</td>
|
||||
|
||||
<td style="padding-left:50px;">
|
||||
<div id="first_div" style="border-color:red;color:black;">Negative</div>
|
||||
<div id="tick_div" style="border-color:red;color:black;"><?php if ($negative) {
|
||||
echo $tick_mark;
|
||||
} ?></div>
|
||||
</td>
|
||||
<?php } ?>
|
||||
<?php if ($other_pd_officer_command) { ?>
|
||||
<td>
|
||||
<div id="first_div" style="border-color:red;color:black;">Others*</div>
|
||||
<div id="tick_div" style="border-color:red;color:black;"><?php if ($other_pd_officer_command) {
|
||||
echo $tick_mark;
|
||||
} ?></div>
|
||||
<td style="padding-left:50px;">
|
||||
<div id="first_div" style="border-color:#ffff00;color:black;">Could not verfiy</div>
|
||||
<div id="tick_div" style="border-color:#ffff00;color:black;"><?php if ($Could_not_verfiy) {
|
||||
echo $tick_mark;
|
||||
} ?></div>
|
||||
</td>
|
||||
<?php } ?>
|
||||
</tr>
|
||||
|
||||
|
||||
@ -916,10 +870,11 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
||||
} else {
|
||||
$color_for_pd_offcier_recom = 'black';
|
||||
}
|
||||
echo '<strong><span style="font-size:20px;color:' . $color_for_pd_offcier_recom . ';">' . $fo_diplay . '</span>.</strong></p>'; ?>
|
||||
echo '<strong><span style="font-size:20px;color:' . $color_for_pd_offcier_recom . ';">' . $fo_diplay . '</span>.</strong></p>';
|
||||
if(isset($final_remark_data['recommendation_positive'])){?>
|
||||
|
||||
<p style="text-align:justify;">The following key points were considered while arriving at the aforementioned status.</p>
|
||||
<?php
|
||||
|
||||
if ($positive) {
|
||||
echo "<ul>";
|
||||
foreach ($final_remark_data['recommendation_positive'] as $pos) {
|
||||
@ -937,6 +892,7 @@ defined('BASEPATH') or exit('No direct script access allowed');
|
||||
}
|
||||
}
|
||||
echo "</ul>";
|
||||
}
|
||||
?>
|
||||
<?php } else {
|
||||
echo "<p>" . $other_command_remark . "</p>";
|
||||
@ -972,27 +928,17 @@ if (isset($pd_images['common_images']) && count($pd_images['common_images'])) {
|
||||
|
||||
<img border="3" src="<?php echo $satellite_url; ?>" alt=" Satellite Image of location of Where PD was Done" style="width:100%;height:300px;border-color:#0191ed" /><br><br><br>
|
||||
<!-- ################# satellite ends #################-->
|
||||
<!-- ################# common images #################-->
|
||||
|
||||
<?php
|
||||
if (count($pd_images['common_images'])) {
|
||||
//echo count($pd_images['common_images']);
|
||||
//print_r($pd_images['common_images']);
|
||||
// foreach ($pd_images['common_images'] as $key => $value)
|
||||
// {
|
||||
// if($value['img_type'] == 1 || $value['img_type'] == 2 || $value['pd_document_title'] == 'satellite')
|
||||
// {
|
||||
// unset($pd_images['common_images'][$key]);
|
||||
// }
|
||||
// }
|
||||
//echo count($pd_images['common_images']);
|
||||
// print_r($pd_images['common_images']);
|
||||
$pd_images['common_images'] = array_values($pd_images['common_images']);
|
||||
// $filtered_arr = array_filter($pd_images['34'], function ($var) {
|
||||
// return ($var['isactive'] != 0);
|
||||
// });
|
||||
if (count($pd_images['34'])) {
|
||||
$pd_images['common_images'] = array_values($pd_images['34']);
|
||||
$tot_rows = ceil(count($pd_images['common_images']) / 2);
|
||||
echo '<div id="page_break"></div>';
|
||||
echo '<h3 contenteditable="true"><u>VISIT PICTURES</u></h3>';
|
||||
echo '<table class="scorecard_table"><tr><th class="thlargefont" colspan="10">Photograph`s</th></tr></table><br><table ><tbody>';
|
||||
$employment_img_names = array('attendance_seen_pic' => 'Attendance Register Image', 'sal_reg_seen_pic' => 'Salary Register Image', 'id_card_image' => 'Employee ID card', 'name_board_img' => 'Name Board Image');
|
||||
|
||||
$add_factor = 0;
|
||||
for ($row = 0; $row < $tot_rows; $row++) {
|
||||
echo '<tr>';
|
||||
@ -1003,7 +949,7 @@ if (count($pd_images['common_images'])) {
|
||||
for ($i = $from; $i <= $to; $i++) {
|
||||
|
||||
if (isset($pd_images['common_images'][$i]) && ($pd_images['common_images'][$i]['pd_document_title'] != 'satellite')) {
|
||||
$doc_title = isset($employment_img_names[$pd_images['common_images'][$i]['pd_document_title']]) ? $employment_img_names[$pd_images['common_images'][$i]['pd_document_title']] : $pd_images['common_images'][$i]['pd_document_title'];
|
||||
$doc_title = $pd_images['common_images'][$i]['pd_document_title'];
|
||||
echo '<td style="text-align:center;border:1px solid;"> <img src="' . $pd_images['common_images'][$i]['doc_url'] . '" height = "200" width="200" alt="' . $pd_images['common_images'][$i]['pd_document_title'] . '"/><br>' . $doc_title . '</td>';
|
||||
}
|
||||
|
||||
@ -1014,7 +960,7 @@ if (count($pd_images['common_images'])) {
|
||||
echo '</tbody></table>';
|
||||
}
|
||||
?>
|
||||
<!-- ################# common images #################-->s
|
||||
<!-- ################# common images #################-->
|
||||
<!-- ########################### End-disclaimer start ######################################### -->
|
||||
<?php
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user