diff --git a/api/application/models/PD_Model.php b/api/application/models/PD_Model.php
index 8328ee67..62c2db6b 100644
--- a/api/application/models/PD_Model.php
+++ b/api/application/models/PD_Model.php
@@ -1288,7 +1288,7 @@ class PD_Model extends SPARQ_Model {
$this->db->WHERE('TEMPLATEFORMS.fk_template_id',$template_id);
$this->db->WHERE('TEMPLATEFORMS.isactive',1);
// if( !(count($docs_to_be_collected) || count($pd_additional_requirements)) )
- if(($pd_master_detials[0]['customer_segment_abbr'] == 'SAL') && (!(count($docs_to_be_collected) || count($pd_additional_requirements)))){
+ if(($pd_master_detials[0]['customer_segment_abbr'] == 'SAL') || (!(count($docs_to_be_collected) || count($pd_additional_requirements)))){
$this->db->WHERE('TEMPLATEFORMS.form_id != ',24); //credit managers specific queries form
}
diff --git a/api/application/views/report_templates/JSONTOREPORT_CLIX.php b/api/application/views/report_templates/JSONTOREPORT_CLIX.php
index e8db1392..07b2349f 100644
--- a/api/application/views/report_templates/JSONTOREPORT_CLIX.php
+++ b/api/application/views/report_templates/JSONTOREPORT_CLIX.php
@@ -4318,6 +4318,15 @@ defined('BASEPATH') OR exit('No direct script access allowed');
echo '
';
echo '
Credit Manager`s Specific Queries:
';
//echo '
';
+ if(isset($credit_officier_specific_queries['addtional_requirements']) && count($credit_officier_specific_queries['addtional_requirements']))
+ {
+ foreach ($credit_officier_specific_queries['addtional_requirements'] as $key => $value)
+ {
+ echo 'Question - '.$value['question'].'
';
+ echo 'Answer - '. $value['answer'];
+ echo '
';
+ }
+ }
if(isset($credit_officier_specific_queries['additional_requirements_processed']) && count($credit_officier_specific_queries['additional_requirements_processed']))
{
@@ -4333,7 +4342,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
{
echo 'There are no specific queries raised by Credit Manager.';
}
-
+ if($credit_officier_specific_queries['common_remarks'] != ""){ echo ''. $credit_officier_specific_queries['common_remarks'].'
';}
echo '
';
echo 'Document to be photographed/scanned:
';
//
diff --git a/api/application/views/report_templates/JSONTOREPORT_CLIX_SMARTPD.php b/api/application/views/report_templates/JSONTOREPORT_CLIX_SMARTPD.php
index c1e8a163..aff16a95 100644
--- a/api/application/views/report_templates/JSONTOREPORT_CLIX_SMARTPD.php
+++ b/api/application/views/report_templates/JSONTOREPORT_CLIX_SMARTPD.php
@@ -4324,6 +4324,15 @@ font-weight: bolder;;
echo '
';
echo 'Credit Manager`s Specific Queries:
';
//echo '
';
+ if(isset($credit_officier_specific_queries['addtional_requirements']) && count($credit_officier_specific_queries['addtional_requirements']))
+ {
+ foreach ($credit_officier_specific_queries['addtional_requirements'] as $key => $value)
+ {
+ echo 'Question - '.$value['question'].'
';
+ echo 'Answer - '. $value['answer'];
+ echo '
';
+ }
+ }
if(isset($credit_officier_specific_queries['additional_requirements_processed']) && count($credit_officier_specific_queries['additional_requirements_processed']))
{
@@ -4339,7 +4348,7 @@ font-weight: bolder;;
{
echo 'There are no specific queries raised by Credit Manager.';
}
-
+ if($credit_officier_specific_queries['common_remarks'] != ""){ echo ''. $credit_officier_specific_queries['common_remarks'].'
';}
echo '
';
echo 'Document to be photographed/scanned:
';
//
diff --git a/api/application/views/report_templates/JSONTOREPORT_CLIX_TELE_PD.php b/api/application/views/report_templates/JSONTOREPORT_CLIX_TELE_PD.php
index 9bb757ce..7e302297 100644
--- a/api/application/views/report_templates/JSONTOREPORT_CLIX_TELE_PD.php
+++ b/api/application/views/report_templates/JSONTOREPORT_CLIX_TELE_PD.php
@@ -4249,6 +4249,15 @@ defined('BASEPATH') OR exit('No direct script access allowed');
echo '
';
echo 'Credit Manager`s Specific Queries:
';
//echo '
';
+ if(isset($credit_officier_specific_queries['addtional_requirements']) && count($credit_officier_specific_queries['addtional_requirements']))
+ {
+ foreach ($credit_officier_specific_queries['addtional_requirements'] as $key => $value)
+ {
+ echo 'Question - '.$value['question'].'
';
+ echo 'Answer - '. $value['answer'];
+ echo '
';
+ }
+ }
if(isset($credit_officier_specific_queries['additional_requirements_processed']) && count($credit_officier_specific_queries['additional_requirements_processed']))
{
@@ -4264,7 +4273,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
{
echo 'There are no specific queries raised by Credit Manager.';
}
-
+ if($credit_officier_specific_queries['common_remarks'] != ""){ echo ''. $credit_officier_specific_queries['common_remarks'].'
';}
echo '
';
echo 'Document to be photographed/scanned:
';
//
diff --git a/api/application/views/report_templates/JSONTOREPORT_DI_AI.php b/api/application/views/report_templates/JSONTOREPORT_DI_AI.php
index 4c354fac..462a5d00 100644
--- a/api/application/views/report_templates/JSONTOREPORT_DI_AI.php
+++ b/api/application/views/report_templates/JSONTOREPORT_DI_AI.php
@@ -4542,6 +4542,16 @@ if($total_no_of_business > 0) {
echo '
';
echo 'Credit Manager`s Specific Queries:
';
//echo '
';
+
+ if(isset($credit_officier_specific_queries['addtional_requirements']) && count($credit_officier_specific_queries['addtional_requirements']))
+ {
+ foreach ($credit_officier_specific_queries['addtional_requirements'] as $key => $value)
+ {
+ echo 'Question - '.$value['question'].'
';
+ echo 'Answer - '. $value['answer'];
+ echo '
';
+ }
+ }
if(isset($credit_officier_specific_queries['additional_requirements_processed']) && count($credit_officier_specific_queries['additional_requirements_processed']))
{
@@ -4557,7 +4567,7 @@ if($total_no_of_business > 0) {
{
echo 'There are no specific queries raised by Credit Manager.';
}
-
+ if($credit_officier_specific_queries['common_remarks'] != ""){ echo ''. $credit_officier_specific_queries['common_remarks'].'
';}
echo '
';
echo 'Document to be photographed/scanned:
';
//
diff --git a/api/application/views/report_templates/JSONTOREPORT_DI_AI_SMARTPD.php b/api/application/views/report_templates/JSONTOREPORT_DI_AI_SMARTPD.php
index 99856c97..62f0c4a2 100644
--- a/api/application/views/report_templates/JSONTOREPORT_DI_AI_SMARTPD.php
+++ b/api/application/views/report_templates/JSONTOREPORT_DI_AI_SMARTPD.php
@@ -4526,6 +4526,17 @@ if($total_no_of_business > 0) {
echo '
';
echo 'Credit Manager`s Specific Queries:
';
//echo '
';
+ if(isset($credit_officier_specific_queries['addtional_requirements']) && count($credit_officier_specific_queries['addtional_requirements']))
+ {
+
+
+ foreach ($credit_officier_specific_queries['addtional_requirements'] as $key => $value)
+ {
+ echo 'Question - '.$value['question'].'
';
+ echo 'Answer - '. $value['answer'];
+ echo '
';
+ }
+ }
if(isset($credit_officier_specific_queries['additional_requirements_processed']) && count($credit_officier_specific_queries['additional_requirements_processed']))
{
@@ -4541,7 +4552,7 @@ if($total_no_of_business > 0) {
{
echo 'There are no specific queries raised by Credit Manager.';
}
-
+ if($credit_officier_specific_queries['common_remarks'] != ""){ echo ''. $credit_officier_specific_queries['common_remarks'].'
';}
echo '
';
echo 'Document to be photographed/scanned:
';
//
diff --git a/api/application/views/report_templates/JSONTOREPORT_DI_AI_TELE_PD.php b/api/application/views/report_templates/JSONTOREPORT_DI_AI_TELE_PD.php
index a1192112..27f1886f 100644
--- a/api/application/views/report_templates/JSONTOREPORT_DI_AI_TELE_PD.php
+++ b/api/application/views/report_templates/JSONTOREPORT_DI_AI_TELE_PD.php
@@ -4456,6 +4456,17 @@ if($total_no_of_business > 0) {
echo '
';
echo 'Credit Manager`s Specific Queries:
';
//echo '
';
+ if(isset($credit_officier_specific_queries['addtional_requirements']) && count($credit_officier_specific_queries['addtional_requirements']))
+ {
+
+
+ foreach ($credit_officier_specific_queries['addtional_requirements'] as $key => $value)
+ {
+ echo 'Question - '.$value['question'].'
';
+ echo 'Answer - '. $value['answer'];
+ echo '
';
+ }
+ }
if(isset($credit_officier_specific_queries['additional_requirements_processed']) && count($credit_officier_specific_queries['additional_requirements_processed']))
{
@@ -4471,7 +4482,7 @@ if($total_no_of_business > 0) {
{
echo 'There are no specific queries raised by Credit Manager.';
}
-
+ if($credit_officier_specific_queries['common_remarks'] != ""){ echo ''. $credit_officier_specific_queries['common_remarks'].'
';}
echo '
';
echo 'Document to be photographed/scanned:
';
//
diff --git a/api/application/views/report_templates/JSONTOREPORT_RI.php b/api/application/views/report_templates/JSONTOREPORT_RI.php
index 89491324..2806a1e9 100644
--- a/api/application/views/report_templates/JSONTOREPORT_RI.php
+++ b/api/application/views/report_templates/JSONTOREPORT_RI.php
@@ -1727,6 +1727,15 @@ defined('BASEPATH') OR exit('No direct script access allowed');
echo '
';
echo 'Credit Manager`s Specific Queries:
';
//echo '
';
+ if(isset($credit_officier_specific_queries['addtional_requirements']) && count($credit_officier_specific_queries['addtional_requirements']))
+ {
+ foreach ($credit_officier_specific_queries['addtional_requirements'] as $key => $value)
+ {
+ echo 'Question - '.$value['question'].'
';
+ echo 'Answer - '. $value['answer'];
+ echo '
';
+ }
+ }
if(isset($credit_officier_specific_queries['additional_requirements_processed']) && count($credit_officier_specific_queries['additional_requirements_processed']))
{
@@ -1742,7 +1751,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
{
echo 'There are no specific queries raised by Credit Manager.';
}
-
+ if($credit_officier_specific_queries['common_remarks'] != ""){ echo ''. $credit_officier_specific_queries['common_remarks'].'
';}
echo '
';
echo 'Document to be photographed/scanned:
';
//
diff --git a/api/application/views/report_templates/JSONTOREPORT_RI_SMARTPD.php b/api/application/views/report_templates/JSONTOREPORT_RI_SMARTPD.php
index be61b53d..4bcbee82 100644
--- a/api/application/views/report_templates/JSONTOREPORT_RI_SMARTPD.php
+++ b/api/application/views/report_templates/JSONTOREPORT_RI_SMARTPD.php
@@ -1730,6 +1730,17 @@ defined('BASEPATH') OR exit('No direct script access allowed');
echo '
';
echo 'Credit Manager`s Specific Queries:
';
//echo '
';
+ if(isset($credit_officier_specific_queries['addtional_requirements']) && count($credit_officier_specific_queries['addtional_requirements']))
+ {
+
+
+ foreach ($credit_officier_specific_queries['addtional_requirements'] as $key => $value)
+ {
+ echo 'Question - '.$value['question'].'
';
+ echo 'Answer - '. $value['answer'];
+ echo '
';
+ }
+ }
if(isset($credit_officier_specific_queries['additional_requirements_processed']) && count($credit_officier_specific_queries['additional_requirements_processed']))
{
@@ -1745,7 +1756,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
{
echo 'There are no specific queries raised by Credit Manager.';
}
-
+ if($credit_officier_specific_queries['common_remarks'] != ""){ echo ''. $credit_officier_specific_queries['common_remarks'].'
';}
echo '
';
echo 'Document to be photographed/scanned:
';
//
diff --git a/api/application/views/report_templates/JSONTOREPORT_RI_TELE_PD.php b/api/application/views/report_templates/JSONTOREPORT_RI_TELE_PD.php
index 162e7dde..03b3d28a 100644
--- a/api/application/views/report_templates/JSONTOREPORT_RI_TELE_PD.php
+++ b/api/application/views/report_templates/JSONTOREPORT_RI_TELE_PD.php
@@ -1660,6 +1660,15 @@ defined('BASEPATH') OR exit('No direct script access allowed');
echo '
';
echo 'Credit Manager`s Specific Queries:
';
//echo '
';
+ if(isset($credit_officier_specific_queries['addtional_requirements']) && count($credit_officier_specific_queries['addtional_requirements']))
+ {
+ foreach ($credit_officier_specific_queries['addtional_requirements'] as $key => $value)
+ {
+ echo 'Question - '.$value['question'].'
';
+ echo 'Answer - '. $value['answer'];
+ echo '
';
+ }
+ }
if(isset($credit_officier_specific_queries['additional_requirements_processed']) && count($credit_officier_specific_queries['additional_requirements_processed']))
{
@@ -1675,7 +1684,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
{
echo 'There are no specific queries raised by Credit Manager.';
}
-
+ if($credit_officier_specific_queries['common_remarks'] != ""){ echo ''. $credit_officier_specific_queries['common_remarks'].'
';}
echo '
';
echo 'Document to be photographed/scanned:
';
//