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 '
';
@@ -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 ' ![' . $pd_images['common_images'][$i]['pd_document_title'] . '](' . $pd_images['common_images'][$i]['doc_url'] . ') ' . $doc_title . ' | ';
- }
+ }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 '
';
@@ -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 ' ![' . $pd_images['common_images'][$i]['pd_document_title'] . '](' . $pd_images['common_images'][$i]['doc_url'] . ') ' . $doc_title . ' | ';
- }
+ }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 '
';
@@ -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 ' ![' . $pd_images['common_images'][$i]['pd_document_title'] . '](' . $pd_images['common_images'][$i]['doc_url'] . ') ' . $doc_title . ' | ';
- }
+ }else{ echo ' | ';}
//unset($p_key);
}