From 2fa1fd446dd877dd6aa065bf36f0622e00b5457b Mon Sep 17 00:00:00 2001 From: Velz2020 Date: Fri, 21 Feb 2020 17:31:04 +0530 Subject: [PATCH] TINY PROD ISSUES --- api/application/controllers/PD_Controller.php | 7 ++++--- api/application/controllers/Sales_PD_Controller.php | 5 +++-- .../views/report_templates/JSONTOREPORT_CLIX.php | 2 +- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/api/application/controllers/PD_Controller.php b/api/application/controllers/PD_Controller.php index af7929be..b716ec47 100644 --- a/api/application/controllers/PD_Controller.php +++ b/api/application/controllers/PD_Controller.php @@ -8205,10 +8205,11 @@ public function getCompaniesListsFromGeneralFormRawJSON_post() if($person['is_person_met'] == true ) { - + //print_r($person);die(); if(!$person['is_person_met_pic']) { $person_met_selfie_count++; + } if(!$person['is_person_met_id_proof']) @@ -8232,8 +8233,8 @@ public function getCompaniesListsFromGeneralFormRawJSON_post() } //if(!$person_met_is_applicant_count && $sal_check == null){ $incomplete_details[] = 'General Section - Person met is not an applicant'; } - if(!$person_met_selfie_count && $sal_check == null){ $incomplete_details[] = 'General Section - Person met selfie image with PD officer not captured'; } - if(!$person_met_id_proof_count && $sal_check == null ){ $incomplete_details[] = 'General Section - Person met ID proof image not captured'; } + if($person_met_selfie_count && $sal_check == null){ $incomplete_details[] = 'General Section - Person met selfie image with PD officer not captured'; } + if($person_met_id_proof_count && $sal_check == null ){ $incomplete_details[] = 'General Section - Person met ID proof image not captured'; } #####End of General Form Questions######## diff --git a/api/application/controllers/Sales_PD_Controller.php b/api/application/controllers/Sales_PD_Controller.php index 570f7766..4a620de8 100644 --- a/api/application/controllers/Sales_PD_Controller.php +++ b/api/application/controllers/Sales_PD_Controller.php @@ -657,7 +657,7 @@ class Sales_PD_Controller extends REST_Controller { { case 1: //General section //update Applicant ID and applicant Name to sales pD master Table - $applicant_id = ''; + $applicant_id = null; $applicant_name = ''; if($records['questions']) { @@ -668,7 +668,7 @@ class Sales_PD_Controller extends REST_Controller { $applicant_id = $g_value['answer_value'] ? $g_value['answer_value'] : 'Not Provided'; } - if($g_value['question_key'] == 'main_loan_applicant') + if($g_value['question_key'] == 'company_name') { $applicant_name = $g_value['answer_value']; } @@ -690,6 +690,7 @@ class Sales_PD_Controller extends REST_Controller { break; case 4: //brief of business + break; case 5: //Financial break; diff --git a/api/application/views/report_templates/JSONTOREPORT_CLIX.php b/api/application/views/report_templates/JSONTOREPORT_CLIX.php index 7f2829c2..c947a563 100644 --- a/api/application/views/report_templates/JSONTOREPORT_CLIX.php +++ b/api/application/views/report_templates/JSONTOREPORT_CLIX.php @@ -1871,7 +1871,7 @@ defined('BASEPATH') OR exit('No direct script access allowed'); echo ' Name of the Financial Insitution TID Number of POS machine '; foreach($fetchRow['pos_machines_details'] as $pos) { - echo ' '.($pos['pos_machines_financial_institution_name'] ? $pos['pos_machines_financial_institution_name'] : 'Not Provided').' '.(is_numeric($pos['tid_no_of_pos_machine']) ? $pos['tid_no_of_pos_machine'] : 'Not Provided').' '; + echo ' '.($pos['pos_machines_financial_institution_name'] ? $pos['pos_machines_financial_institution_name'] : 'Not Provided').' '.(($pos['tid_no_of_pos_machine']) ? $pos['tid_no_of_pos_machine'] : 'Not Provided').' '; } echo ''; }