From f0285773d2120372a1f7bf7e1bb8e63e07961137 Mon Sep 17 00:00:00 2001 From: VE10-Sanjeev Date: Tue, 1 Nov 2022 20:29:08 +0530 Subject: [PATCH] FI report Code Reverted : ps --- api/application/controllers/PD_Controller.php | 2 +- .../views/report_templates/JSONTOREPORT_FI_OV_DI.php | 4 ++-- .../views/report_templates/JSONTOREPORT_FI_OV_SAL.php | 4 ++-- api/application/views/report_templates/JSONTOREPORT_FI_RV.php | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/api/application/controllers/PD_Controller.php b/api/application/controllers/PD_Controller.php index c55e0b9d..093672de 100644 --- a/api/application/controllers/PD_Controller.php +++ b/api/application/controllers/PD_Controller.php @@ -4631,7 +4631,7 @@ class PD_Controller extends REST_Controller //$data['dsc_cards'] = $this->getDetailedScoreCardChart( $data['pd_score'] ); $data['assessed_income_details'] = $this->getAssessedIncomeForPDReport($pdid); - if ($data['pd_master_details'][0]['is_score_card_enabled'] != 0 && ($data['pd_master_details'][0]['customer_segment_abbr'] != "SAL" && $data['pd_master_details'][0]['customer_segment_abbr'] != "SE-RI" && $data['pd_master_details'][0]['fk_pd_type'] != 4)) { + if ($data['pd_master_details'][0]['is_score_card_enabled'] != 0 && ($data['pd_master_details'][0]['customer_segment_abbr'] != "SAL" && $data['pd_master_details'][0]['customer_segment_abbr'] != "SE-RI")) { $data['pd_score'] = $this->calculateScore($pdid); $score_for_chart = $data['pd_score']['score_summary']['overall_score']['final_score'] ? round($data['pd_score']['score_summary']['overall_score']['final_score'], 1) : 0; //echo $score_for_chart; 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 b0f46e94..befd827e 100644 --- a/api/application/views/report_templates/JSONTOREPORT_FI_OV_DI.php +++ b/api/application/views/report_templates/JSONTOREPORT_FI_OV_DI.php @@ -655,7 +655,7 @@ defined('BASEPATH') or exit('No direct script access allowed'); // }); if (count($pd_images['34'])) { $pd_images['common_images'] = array_values($pd_images['34']); - $tot_rows = ceil(count($pd_images['common_images']) / 2); + $tot_rows = ceil(count($pd_images['common_images']) / 3); echo '
'; echo '

VISIT PICTURES

'; echo '
Photograph`s

'; @@ -672,7 +672,7 @@ defined('BASEPATH') or exit('No direct script access allowed'); if (isset($pd_images['common_images'][$i]) && ($pd_images['common_images'][$i]['pd_document_title'] != 'satellite')) { $doc_title = $pd_images['common_images'][$i]['pd_document_title']; echo ''; - } + }else{ echo '';} //unset($p_key); } diff --git a/api/application/views/report_templates/JSONTOREPORT_FI_OV_SAL.php b/api/application/views/report_templates/JSONTOREPORT_FI_OV_SAL.php index fa09135c..e11845a2 100644 --- a/api/application/views/report_templates/JSONTOREPORT_FI_OV_SAL.php +++ b/api/application/views/report_templates/JSONTOREPORT_FI_OV_SAL.php @@ -605,7 +605,7 @@ defined('BASEPATH') or exit('No direct script access allowed'); // }); if (count($pd_images['34'])) { $pd_images['common_images'] = array_values($pd_images['34']); - $tot_rows = ceil(count($pd_images['common_images']) / 2); + $tot_rows = ceil(count($pd_images['common_images']) / 3); echo '
'; echo '

VISIT PICTURES

'; echo '
' . $pd_images['common_images'][$i]['pd_document_title'] . '
' . $doc_title . '
Photograph`s

'; @@ -622,7 +622,7 @@ defined('BASEPATH') or exit('No direct script access allowed'); if (isset($pd_images['common_images'][$i]) && ($pd_images['common_images'][$i]['pd_document_title'] != 'satellite')) { $doc_title = $pd_images['common_images'][$i]['pd_document_title']; echo ''; - } + }else{ echo '';} //unset($p_key); } diff --git a/api/application/views/report_templates/JSONTOREPORT_FI_RV.php b/api/application/views/report_templates/JSONTOREPORT_FI_RV.php index 1ede5552..28141ab0 100644 --- a/api/application/views/report_templates/JSONTOREPORT_FI_RV.php +++ b/api/application/views/report_templates/JSONTOREPORT_FI_RV.php @@ -656,7 +656,7 @@ defined('BASEPATH') or exit('No direct script access allowed'); // }); if (count($pd_images['34'])) { $pd_images['common_images'] = array_values($pd_images['34']); - $tot_rows = ceil(count($pd_images['common_images']) / 2); + $tot_rows = ceil(count($pd_images['common_images']) / 3); echo '
'; echo '

VISIT PICTURES

'; echo '
' . $pd_images['common_images'][$i]['pd_document_title'] . '
' . $doc_title . '
Photograph`s

'; @@ -673,7 +673,7 @@ defined('BASEPATH') or exit('No direct script access allowed'); if (isset($pd_images['common_images'][$i]) && ($pd_images['common_images'][$i]['pd_document_title'] != 'satellite')) { $doc_title = $pd_images['common_images'][$i]['pd_document_title']; echo ''; - } + }else{ echo '';} //unset($p_key); }
' . $pd_images['common_images'][$i]['pd_document_title'] . '
' . $doc_title . '