From 5882f4ece11dfd9634cb8b01457685f4ec41a2bf Mon Sep 17 00:00:00 2001 From: VE10-Sanjeev Date: Mon, 17 Oct 2022 09:59:30 +0530 Subject: [PATCH] FI Report Sal and RV :; ps --- api/application/controllers/PD_Controller.php | 8 +- .../JSONTOREPORT_FI_OV_DI.php | 49 ++-- .../JSONTOREPORT_FI_OV_SAL.php | 271 +++++++----------- .../report_templates/JSONTOREPORT_FI_RV.php | 244 ++++++++++------ 4 files changed, 298 insertions(+), 274 deletions(-) diff --git a/api/application/controllers/PD_Controller.php b/api/application/controllers/PD_Controller.php index 5c8f614e..2766fe38 100644 --- a/api/application/controllers/PD_Controller.php +++ b/api/application/controllers/PD_Controller.php @@ -2744,14 +2744,16 @@ class PD_Controller extends REST_Controller $processed_json = $records; break; case 31: - $processed_json = $records; + $processed_json = GETPROCESSEDJSON::convertCreditManagerQueriesForm($records, $formid); + $records['docs_to_be_sighted'] = isset($processed_json['docs_to_be_sighted']) ? $processed_json['docs_to_be_sighted'] : null; + unset($processed_json['docs_to_be_sighted']); break; case 32: $processed_json = $records; break; case 33: - $processed_json = $records; - break; + $processed_json = GETPROCESSEDJSON::convertFinalRemarksForm($records, $formid); + break; case 34: $processed_json = $records['photograph_details']; break; diff --git a/api/application/views/report_templates/JSONTOREPORT_FI_OV_DI.php b/api/application/views/report_templates/JSONTOREPORT_FI_OV_DI.php index 39dfca55..f865dc43 100644 --- a/api/application/views/report_templates/JSONTOREPORT_FI_OV_DI.php +++ b/api/application/views/report_templates/JSONTOREPORT_FI_OV_DI.php @@ -461,27 +461,28 @@ defined('BASEPATH') or exit('No direct script access allowed'); $business_activities_during_visit = implode(', ', $ov_value['Was_any_business_activities_observed_during_visit']); $business_activities_during_visit = preg_replace("/_/i", ' ', $business_activities_during_visit ); + $business_activities_during_visit = ucwords($business_activities_during_visit); $company_name_sighted = $ov_value['was_the_company_name_board_sighted'] == 'Yes' ? 'seen' : 'not seen'; - echo '