diff --git a/api/application/helpers/bankingform_helper.php b/api/application/helpers/bankingform_helper.php index 71bad0cd..75ce905e 100644 --- a/api/application/helpers/bankingform_helper.php +++ b/api/application/helpers/bankingform_helper.php @@ -69,7 +69,7 @@ public static function getNewBuinessBankingDetails($values,$pdid){ 'main_business' => $tag['is_main'], 'od_cc_limit' => ($tag['account_type_business']==3) ? $tag['limit_business'] : (($tag['account_type_business']==4) ? $tag['limit_business'] : ''), 'vintage' => $count_vintage, - 'same_ac_used_for' => $tag['applicant_name_business']['id']==0 ? "" : "Business", + 'same_ac_used_for' => "", 'str_flag'=>$tag['applicant_name_business']['id']==0 ? "applicant" : ($tag['applicant_name_business']['group_id'] == 2 ? "applicant" : "buiness-company"), ); }, $values); diff --git a/api/application/views/report_templates/JSONTOREPORT_DI_AI.php b/api/application/views/report_templates/JSONTOREPORT_DI_AI.php index d373a27f..c6905ef0 100644 --- a/api/application/views/report_templates/JSONTOREPORT_DI_AI.php +++ b/api/application/views/report_templates/JSONTOREPORT_DI_AI.php @@ -2649,6 +2649,7 @@ if($total_no_of_business > 0) { 0) { // // return ($var['same_ac_used_for'] == "Business"); // return (($var['account_name'] == $fetchRow['company_details']['company_name']) && ($var['same_ac_used_for'] == "Business")); // }); - $filteredBankingResult = array();$b=0; for($a = 0; $a <= count($newBankingResult); $a++){ if($newBankingResult[$a]['account_name'] == $fetchRow['company_details']['company_name'] && $newBankingResult[$a]['str_flag'] == "buiness-company"){ $filteredBankingResult[$b] = $newBankingResult[$a]; @@ -4086,20 +4086,19 @@ if($total_no_of_business > 0) { $bankingResult=array(); $is_personal_banking_available = null; $stmt_flag = 0; + $filteredPersonalBankingResult = array();$x=0; // individual banking foreach($pd_processed_forms[7] as $rowKey=> $ibRow) { $individualBankRow = json_decode($ibRow['processed_json'],true); $ind_banking_common_remarks = $individualBankRow['banking_form_remark']; if(isset($individualBankRow['bank_info_available_business']) && $individualBankRow['bank_info_available_business'] == 1){ - $is_personal_banking_available = 1; if(count($individualBankRow['business_details'])>0){ $getBuinessEachValues=BANKINGFORM::getNewBuinessBankingDetails($individualBankRow['business_details'],$pd_master_details[0]['pd_id']); $bankingResult = array_merge($bankingResult,$getBuinessEachValues); } } if(isset($individualBankRow['bank_info_available']) && $individualBankRow['bank_info_available'] == 1) - { - $is_personal_banking_available = 1; + { if(count($individualBankRow['banking_details'])>0){ $getIndividualEachValues=BANKINGFORM::getIndividualBankingDetails($individualBankRow['banking_details'],$pd_master_details[0]['pd_id']); $bankingResult = array_merge($bankingResult,$getIndividualEachValues); @@ -4107,8 +4106,9 @@ if($total_no_of_business > 0) { } } if(count($bankingResult)>0){ - $filteredPersonalBankingResult = array();$x=0; + for($y = 0; $y < count($bankingResult); $y++){ + if($bankingResult[$y]['str_flag'] !== "buiness-company" ){ $filteredPersonalBankingResult[$x] = $bankingResult[$y]; $x++; @@ -4121,7 +4121,7 @@ if($total_no_of_business > 0) { // print_r($filteredPersonalBankingResult);die(); ?>

Personal Banking Details:

- + 0){ ?>

Below bank account details were shared :

@@ -4156,7 +4156,7 @@ if($total_no_of_business > 0) { } if($stmt_flag > 0 ){ echo '

The personal banking is done through same account used for business banking

'; } if($ind_banking_common_remarks != ''){echo '

'.$ind_banking_common_remarks.'

'; } - if($is_personal_banking_available == null){ echo '

As per loan applicant, he does not have any personal account

';}?> + if(count($filteredPersonalBankingResult)==0){ echo '

As per loan applicant, he does not have any personal account

';}?> 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 ac7b384e..381f4e1f 100644 --- a/api/application/views/report_templates/JSONTOREPORT_DI_AI_SMARTPD.php +++ b/api/application/views/report_templates/JSONTOREPORT_DI_AI_SMARTPD.php @@ -4109,9 +4109,7 @@ if($total_no_of_business > 0) { ?>

Personal Banking Details:

- + 0){ ?>

Below bank account details were shared :

@@ -4148,7 +4146,7 @@ if($total_no_of_business > 0) { } if($stmt_flag > 0 ){ echo '

The personal banking is done through same account used for business banking

'; } if($ind_banking_common_remarks != ''){echo '

'.$ind_banking_common_remarks.'

'; } - if($is_personal_banking_available == null){ echo '

As per loan applicant, he does not have any personal account

';}?> + if(count($filteredPersonalBankingResult)==0){ echo '

As per loan applicant, he does not have any personal account

';}?> 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 53127f4c..d4c808b2 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 @@ -4074,7 +4074,7 @@ if($total_no_of_business > 0) { $individualBankRow = json_decode($ibRow['processed_json'],true); $ind_banking_common_remarks = $individualBankRow['banking_form_remark']; if(isset($individualBankRow['bank_info_available_business']) && $individualBankRow['bank_info_available_business'] == 1){ - $is_personal_banking_available = 1; + // $is_personal_banking_available = 1; if(count($individualBankRow['business_details'])>0){ $getBuinessEachValues=BANKINGFORM::getNewBuinessBankingDetails($individualBankRow['business_details'],$pd_master_details[0]['pd_id']); $bankingResult = array_merge($bankingResult,$getBuinessEachValues); @@ -4082,7 +4082,6 @@ if($total_no_of_business > 0) { } if(isset($individualBankRow['bank_info_available']) && $individualBankRow['bank_info_available'] == 1) { - $is_personal_banking_available = 1; if(count($individualBankRow['banking_details'])>0){ $getIndividualEachValues=BANKINGFORM::getIndividualBankingDetails($individualBankRow['banking_details'],$pd_master_details[0]['pd_id']); $bankingResult = array_merge($bankingResult,$getIndividualEachValues); @@ -4105,9 +4104,7 @@ if($total_no_of_business > 0) { ?>

Personal Banking Details:

- + 0){ ?>

Below bank account details were shared :

@@ -4144,7 +4141,7 @@ if($total_no_of_business > 0) { } if($stmt_flag > 0 ){ echo '

The personal banking is done through same account used for business banking

'; } if($ind_banking_common_remarks != ''){echo '

'.$ind_banking_common_remarks.'

'; } - if($is_personal_banking_available == null){ echo '

As per loan applicant, he does not have any personal account

';}?> + if(count($filteredPersonalBankingResult)==0){ echo '

As per loan applicant, he does not have any personal account

';}?> diff --git a/api/application/views/report_templates/JSONTOREPORT_RI.php b/api/application/views/report_templates/JSONTOREPORT_RI.php index 42c1abac..038712aa 100644 --- a/api/application/views/report_templates/JSONTOREPORT_RI.php +++ b/api/application/views/report_templates/JSONTOREPORT_RI.php @@ -1324,9 +1324,7 @@ defined('BASEPATH') OR exit('No direct script access allowed'); ?>

Personal Banking Details:

- + 0){ ?>

Below bank account details were shared :

@@ -1363,7 +1361,7 @@ defined('BASEPATH') OR exit('No direct script access allowed'); } if($stmt_flag > 0 ){ echo '

The personal banking is done through same account used for business banking

'; } if($ind_banking_common_remarks != ''){echo '

'.$ind_banking_common_remarks.'

'; } - if($is_personal_banking_available == null){ echo '

As per loan applicant, he does not have any personal account

';}?> + if(count($filteredPersonalBankingResult)==0){ echo '

As per loan applicant, he does not have any personal account

';}?> diff --git a/api/application/views/report_templates/JSONTOREPORT_RI_SMARTPD.php b/api/application/views/report_templates/JSONTOREPORT_RI_SMARTPD.php index fe744099..d3ed4903 100644 --- a/api/application/views/report_templates/JSONTOREPORT_RI_SMARTPD.php +++ b/api/application/views/report_templates/JSONTOREPORT_RI_SMARTPD.php @@ -1329,9 +1329,7 @@ defined('BASEPATH') OR exit('No direct script access allowed'); ?>

Personal Banking Details:

- + 0){ ?>

Below bank account details were shared :

@@ -1368,7 +1366,7 @@ defined('BASEPATH') OR exit('No direct script access allowed'); } if($stmt_flag > 0 ){ echo '

The personal banking is done through same account used for business banking

'; } if($ind_banking_common_remarks != ''){echo '

'.$ind_banking_common_remarks.'

'; } - if($is_personal_banking_available == null){ echo '

As per loan applicant, he does not have any personal account

';}?> + if(count($filteredPersonalBankingResult)==0){ echo '

As per loan applicant, he does not have any personal account

';}?> 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 6396c032..27304d4a 100644 --- a/api/application/views/report_templates/JSONTOREPORT_RI_TELE_PD.php +++ b/api/application/views/report_templates/JSONTOREPORT_RI_TELE_PD.php @@ -1328,9 +1328,7 @@ defined('BASEPATH') OR exit('No direct script access allowed'); ?>

Personal Banking Details:

- + 0){ ?>

Below bank account details were shared :

@@ -1367,7 +1365,7 @@ defined('BASEPATH') OR exit('No direct script access allowed'); } if($stmt_flag > 0 ){ echo '

The personal banking is done through same account used for business banking

'; } if($ind_banking_common_remarks != ''){echo '

'.$ind_banking_common_remarks.'

'; } - if($is_personal_banking_available == null){ echo '

As per loan applicant, he does not have any personal account

';}?> + if(count($filteredPersonalBankingResult)==0){ echo '

As per loan applicant, he does not have any personal account

';}?>