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 '
'. $neighbourhood_form_common_remarks.'
';} ?> + @@ -599,6 +610,7 @@ defined('BASEPATH') or exit('No direct script access allowed'); $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($credit_officier_specific_queries); } echo '