Banking details : ps
This commit is contained in:
parent
2740d36dd5
commit
52f8affa08
@ -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);
|
||||
|
||||
@ -2649,6 +2649,7 @@ if($total_no_of_business > 0) {
|
||||
<!-- #################Start new business banking section (11.12.2021)#################-->
|
||||
<?php
|
||||
// print_r($fetchRow['company_details']);die();
|
||||
$filteredBankingResult = array();$b=0;
|
||||
if(isset($pd_processed_forms[7])){
|
||||
$newBankingResult=array();
|
||||
$is_od_cc = null;
|
||||
@ -2674,7 +2675,6 @@ if($total_no_of_business > 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();
|
||||
?>
|
||||
<h3 contenteditable="true">Personal Banking Details: </h3>
|
||||
<?php if($is_personal_banking_available != null){ ?>
|
||||
<?php if(count($filteredPersonalBankingResult)>0){ ?>
|
||||
<p>Below bank account details were shared :</p>
|
||||
<table class="scorecard_table">
|
||||
<thead>
|
||||
@ -4156,7 +4156,7 @@ if($total_no_of_business > 0) {
|
||||
}
|
||||
if($stmt_flag > 0 ){ echo '<p> The personal banking is done through same account used for business banking </p>'; }
|
||||
if($ind_banking_common_remarks != ''){echo '<p>'.$ind_banking_common_remarks.'</p>'; }
|
||||
if($is_personal_banking_available == null){ echo '<p>As per loan applicant, he does not have any personal account</p>';}?>
|
||||
if(count($filteredPersonalBankingResult)==0){ echo '<p>As per loan applicant, he does not have any personal account</p>';}?>
|
||||
|
||||
|
||||
<!-- #################end business / individual banking section #################-->
|
||||
|
||||
@ -4109,9 +4109,7 @@ if($total_no_of_business > 0) {
|
||||
|
||||
?>
|
||||
<h3 contenteditable="true">Personal Banking Details: </h3>
|
||||
<?php if($is_personal_banking_available != null){
|
||||
//print_r($bankingResult);
|
||||
?>
|
||||
<?php if(count($filteredPersonalBankingResult)>0){ ?>
|
||||
<p>Below bank account details were shared :</p>
|
||||
<table class="scorecard_table">
|
||||
<thead>
|
||||
@ -4148,7 +4146,7 @@ if($total_no_of_business > 0) {
|
||||
}
|
||||
if($stmt_flag > 0 ){ echo '<p> The personal banking is done through same account used for business banking </p>'; }
|
||||
if($ind_banking_common_remarks != ''){echo '<p>'.$ind_banking_common_remarks.'</p>'; }
|
||||
if($is_personal_banking_available == null){ echo '<p>As per loan applicant, he does not have any personal account</p>';}?>
|
||||
if(count($filteredPersonalBankingResult)==0){ echo '<p>As per loan applicant, he does not have any personal account</p>';}?>
|
||||
|
||||
<!-- #################end business / individual banking section #################-->
|
||||
|
||||
|
||||
@ -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) {
|
||||
|
||||
?>
|
||||
<h3 contenteditable="true">Personal Banking Details: </h3>
|
||||
<?php if($is_personal_banking_available != null){
|
||||
//print_r($bankingResult);
|
||||
?>
|
||||
<?php if(count($filteredPersonalBankingResult)>0){ ?>
|
||||
<p>Below bank account details were shared :</p>
|
||||
<table class="scorecard_table">
|
||||
<thead>
|
||||
@ -4144,7 +4141,7 @@ if($total_no_of_business > 0) {
|
||||
}
|
||||
if($stmt_flag > 0 ){ echo '<p> The personal banking is done through same account used for business banking </p>'; }
|
||||
if($ind_banking_common_remarks != ''){echo '<p>'.$ind_banking_common_remarks.'</p>'; }
|
||||
if($is_personal_banking_available == null){ echo '<p>As per loan applicant, he does not have any personal account</p>';}?>
|
||||
if(count($filteredPersonalBankingResult)==0){ echo '<p>As per loan applicant, he does not have any personal account</p>';}?>
|
||||
|
||||
<!-- #################end business / individual banking section #################-->
|
||||
|
||||
|
||||
@ -1324,9 +1324,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
?>
|
||||
<h3 contenteditable="true">Personal Banking Details: </h3>
|
||||
<?php if($is_personal_banking_available != null){
|
||||
//print_r($bankingResult);
|
||||
?>
|
||||
<?php if(count($filteredPersonalBankingResult)>0){ ?>
|
||||
<p>Below bank account details were shared :</p>
|
||||
<table class="scorecard_table">
|
||||
<thead>
|
||||
@ -1363,7 +1361,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
}
|
||||
if($stmt_flag > 0 ){ echo '<p> The personal banking is done through same account used for business banking </p>'; }
|
||||
if($ind_banking_common_remarks != ''){echo '<p>'.$ind_banking_common_remarks.'</p>'; }
|
||||
if($is_personal_banking_available == null){ echo '<p>As per loan applicant, he does not have any personal account</p>';}?>
|
||||
if(count($filteredPersonalBankingResult)==0){ echo '<p>As per loan applicant, he does not have any personal account</p>';}?>
|
||||
|
||||
<!-- #################end business / individual banking section #################-->
|
||||
|
||||
|
||||
@ -1329,9 +1329,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
?>
|
||||
<h3 contenteditable="true">Personal Banking Details: </h3>
|
||||
<?php if($is_personal_banking_available != null){
|
||||
//print_r($bankingResult);
|
||||
?>
|
||||
<?php if(count($filteredPersonalBankingResult)>0){ ?>
|
||||
<p>Below bank account details were shared :</p>
|
||||
<table class="scorecard_table">
|
||||
<thead>
|
||||
@ -1368,7 +1366,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
}
|
||||
if($stmt_flag > 0 ){ echo '<p> The personal banking is done through same account used for business banking </p>'; }
|
||||
if($ind_banking_common_remarks != ''){echo '<p>'.$ind_banking_common_remarks.'</p>'; }
|
||||
if($is_personal_banking_available == null){ echo '<p>As per loan applicant, he does not have any personal account</p>';}?>
|
||||
if(count($filteredPersonalBankingResult)==0){ echo '<p>As per loan applicant, he does not have any personal account</p>';}?>
|
||||
|
||||
<!-- #################end business / individual banking section #################-->
|
||||
|
||||
|
||||
@ -1328,9 +1328,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
?>
|
||||
<h3 contenteditable="true">Personal Banking Details: </h3>
|
||||
<?php if($is_personal_banking_available != null){
|
||||
//print_r($bankingResult);
|
||||
?>
|
||||
<?php if(count($filteredPersonalBankingResult)>0){ ?>
|
||||
<p>Below bank account details were shared :</p>
|
||||
<table class="scorecard_table">
|
||||
<thead>
|
||||
@ -1367,7 +1365,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
}
|
||||
if($stmt_flag > 0 ){ echo '<p> The personal banking is done through same account used for business banking </p>'; }
|
||||
if($ind_banking_common_remarks != ''){echo '<p>'.$ind_banking_common_remarks.'</p>'; }
|
||||
if($is_personal_banking_available == null){ echo '<p>As per loan applicant, he does not have any personal account</p>';}?>
|
||||
if(count($filteredPersonalBankingResult)==0){ echo '<p>As per loan applicant, he does not have any personal account</p>';}?>
|
||||
|
||||
<!-- #################end business / individual banking section #################-->
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user