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'],
|
'main_business' => $tag['is_main'],
|
||||||
'od_cc_limit' => ($tag['account_type_business']==3) ? $tag['limit_business'] : (($tag['account_type_business']==4) ? $tag['limit_business'] : ''),
|
'od_cc_limit' => ($tag['account_type_business']==3) ? $tag['limit_business'] : (($tag['account_type_business']==4) ? $tag['limit_business'] : ''),
|
||||||
'vintage' => $count_vintage,
|
'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"),
|
'str_flag'=>$tag['applicant_name_business']['id']==0 ? "applicant" : ($tag['applicant_name_business']['group_id'] == 2 ? "applicant" : "buiness-company"),
|
||||||
);
|
);
|
||||||
}, $values);
|
}, $values);
|
||||||
|
|||||||
@ -2649,6 +2649,7 @@ if($total_no_of_business > 0) {
|
|||||||
<!-- #################Start new business banking section (11.12.2021)#################-->
|
<!-- #################Start new business banking section (11.12.2021)#################-->
|
||||||
<?php
|
<?php
|
||||||
// print_r($fetchRow['company_details']);die();
|
// print_r($fetchRow['company_details']);die();
|
||||||
|
$filteredBankingResult = array();$b=0;
|
||||||
if(isset($pd_processed_forms[7])){
|
if(isset($pd_processed_forms[7])){
|
||||||
$newBankingResult=array();
|
$newBankingResult=array();
|
||||||
$is_od_cc = null;
|
$is_od_cc = null;
|
||||||
@ -2674,7 +2675,6 @@ if($total_no_of_business > 0) {
|
|||||||
// // return ($var['same_ac_used_for'] == "Business");
|
// // return ($var['same_ac_used_for'] == "Business");
|
||||||
// return (($var['account_name'] == $fetchRow['company_details']['company_name']) && ($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++){
|
for($a = 0; $a <= count($newBankingResult); $a++){
|
||||||
if($newBankingResult[$a]['account_name'] == $fetchRow['company_details']['company_name'] && $newBankingResult[$a]['str_flag'] == "buiness-company"){
|
if($newBankingResult[$a]['account_name'] == $fetchRow['company_details']['company_name'] && $newBankingResult[$a]['str_flag'] == "buiness-company"){
|
||||||
$filteredBankingResult[$b] = $newBankingResult[$a];
|
$filteredBankingResult[$b] = $newBankingResult[$a];
|
||||||
@ -4086,20 +4086,19 @@ if($total_no_of_business > 0) {
|
|||||||
$bankingResult=array();
|
$bankingResult=array();
|
||||||
$is_personal_banking_available = null;
|
$is_personal_banking_available = null;
|
||||||
$stmt_flag = 0;
|
$stmt_flag = 0;
|
||||||
|
$filteredPersonalBankingResult = array();$x=0;
|
||||||
// individual banking
|
// individual banking
|
||||||
foreach($pd_processed_forms[7] as $rowKey=> $ibRow) {
|
foreach($pd_processed_forms[7] as $rowKey=> $ibRow) {
|
||||||
$individualBankRow = json_decode($ibRow['processed_json'],true);
|
$individualBankRow = json_decode($ibRow['processed_json'],true);
|
||||||
$ind_banking_common_remarks = $individualBankRow['banking_form_remark'];
|
$ind_banking_common_remarks = $individualBankRow['banking_form_remark'];
|
||||||
if(isset($individualBankRow['bank_info_available_business']) && $individualBankRow['bank_info_available_business'] == 1){
|
if(isset($individualBankRow['bank_info_available_business']) && $individualBankRow['bank_info_available_business'] == 1){
|
||||||
$is_personal_banking_available = 1;
|
|
||||||
if(count($individualBankRow['business_details'])>0){
|
if(count($individualBankRow['business_details'])>0){
|
||||||
$getBuinessEachValues=BANKINGFORM::getNewBuinessBankingDetails($individualBankRow['business_details'],$pd_master_details[0]['pd_id']);
|
$getBuinessEachValues=BANKINGFORM::getNewBuinessBankingDetails($individualBankRow['business_details'],$pd_master_details[0]['pd_id']);
|
||||||
$bankingResult = array_merge($bankingResult,$getBuinessEachValues);
|
$bankingResult = array_merge($bankingResult,$getBuinessEachValues);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(isset($individualBankRow['bank_info_available']) && $individualBankRow['bank_info_available'] == 1)
|
if(isset($individualBankRow['bank_info_available']) && $individualBankRow['bank_info_available'] == 1)
|
||||||
{
|
{
|
||||||
$is_personal_banking_available = 1;
|
|
||||||
if(count($individualBankRow['banking_details'])>0){
|
if(count($individualBankRow['banking_details'])>0){
|
||||||
$getIndividualEachValues=BANKINGFORM::getIndividualBankingDetails($individualBankRow['banking_details'],$pd_master_details[0]['pd_id']);
|
$getIndividualEachValues=BANKINGFORM::getIndividualBankingDetails($individualBankRow['banking_details'],$pd_master_details[0]['pd_id']);
|
||||||
$bankingResult = array_merge($bankingResult,$getIndividualEachValues);
|
$bankingResult = array_merge($bankingResult,$getIndividualEachValues);
|
||||||
@ -4107,8 +4106,9 @@ if($total_no_of_business > 0) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(count($bankingResult)>0){
|
if(count($bankingResult)>0){
|
||||||
$filteredPersonalBankingResult = array();$x=0;
|
|
||||||
for($y = 0; $y < count($bankingResult); $y++){
|
for($y = 0; $y < count($bankingResult); $y++){
|
||||||
|
|
||||||
if($bankingResult[$y]['str_flag'] !== "buiness-company" ){
|
if($bankingResult[$y]['str_flag'] !== "buiness-company" ){
|
||||||
$filteredPersonalBankingResult[$x] = $bankingResult[$y];
|
$filteredPersonalBankingResult[$x] = $bankingResult[$y];
|
||||||
$x++;
|
$x++;
|
||||||
@ -4121,7 +4121,7 @@ if($total_no_of_business > 0) {
|
|||||||
// print_r($filteredPersonalBankingResult);die();
|
// print_r($filteredPersonalBankingResult);die();
|
||||||
?>
|
?>
|
||||||
<h3 contenteditable="true">Personal Banking Details: </h3>
|
<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>
|
<p>Below bank account details were shared :</p>
|
||||||
<table class="scorecard_table">
|
<table class="scorecard_table">
|
||||||
<thead>
|
<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($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($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 #################-->
|
<!-- #################end business / individual banking section #################-->
|
||||||
|
|||||||
@ -4109,9 +4109,7 @@ if($total_no_of_business > 0) {
|
|||||||
|
|
||||||
?>
|
?>
|
||||||
<h3 contenteditable="true">Personal Banking Details: </h3>
|
<h3 contenteditable="true">Personal Banking Details: </h3>
|
||||||
<?php if($is_personal_banking_available != null){
|
<?php if(count($filteredPersonalBankingResult)>0){ ?>
|
||||||
//print_r($bankingResult);
|
|
||||||
?>
|
|
||||||
<p>Below bank account details were shared :</p>
|
<p>Below bank account details were shared :</p>
|
||||||
<table class="scorecard_table">
|
<table class="scorecard_table">
|
||||||
<thead>
|
<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($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($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 #################-->
|
<!-- #################end business / individual banking section #################-->
|
||||||
|
|
||||||
|
|||||||
@ -4074,7 +4074,7 @@ if($total_no_of_business > 0) {
|
|||||||
$individualBankRow = json_decode($ibRow['processed_json'],true);
|
$individualBankRow = json_decode($ibRow['processed_json'],true);
|
||||||
$ind_banking_common_remarks = $individualBankRow['banking_form_remark'];
|
$ind_banking_common_remarks = $individualBankRow['banking_form_remark'];
|
||||||
if(isset($individualBankRow['bank_info_available_business']) && $individualBankRow['bank_info_available_business'] == 1){
|
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){
|
if(count($individualBankRow['business_details'])>0){
|
||||||
$getBuinessEachValues=BANKINGFORM::getNewBuinessBankingDetails($individualBankRow['business_details'],$pd_master_details[0]['pd_id']);
|
$getBuinessEachValues=BANKINGFORM::getNewBuinessBankingDetails($individualBankRow['business_details'],$pd_master_details[0]['pd_id']);
|
||||||
$bankingResult = array_merge($bankingResult,$getBuinessEachValues);
|
$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)
|
if(isset($individualBankRow['bank_info_available']) && $individualBankRow['bank_info_available'] == 1)
|
||||||
{
|
{
|
||||||
$is_personal_banking_available = 1;
|
|
||||||
if(count($individualBankRow['banking_details'])>0){
|
if(count($individualBankRow['banking_details'])>0){
|
||||||
$getIndividualEachValues=BANKINGFORM::getIndividualBankingDetails($individualBankRow['banking_details'],$pd_master_details[0]['pd_id']);
|
$getIndividualEachValues=BANKINGFORM::getIndividualBankingDetails($individualBankRow['banking_details'],$pd_master_details[0]['pd_id']);
|
||||||
$bankingResult = array_merge($bankingResult,$getIndividualEachValues);
|
$bankingResult = array_merge($bankingResult,$getIndividualEachValues);
|
||||||
@ -4105,9 +4104,7 @@ if($total_no_of_business > 0) {
|
|||||||
|
|
||||||
?>
|
?>
|
||||||
<h3 contenteditable="true">Personal Banking Details: </h3>
|
<h3 contenteditable="true">Personal Banking Details: </h3>
|
||||||
<?php if($is_personal_banking_available != null){
|
<?php if(count($filteredPersonalBankingResult)>0){ ?>
|
||||||
//print_r($bankingResult);
|
|
||||||
?>
|
|
||||||
<p>Below bank account details were shared :</p>
|
<p>Below bank account details were shared :</p>
|
||||||
<table class="scorecard_table">
|
<table class="scorecard_table">
|
||||||
<thead>
|
<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($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($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 #################-->
|
<!-- #################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>
|
<h3 contenteditable="true">Personal Banking Details: </h3>
|
||||||
<?php if($is_personal_banking_available != null){
|
<?php if(count($filteredPersonalBankingResult)>0){ ?>
|
||||||
//print_r($bankingResult);
|
|
||||||
?>
|
|
||||||
<p>Below bank account details were shared :</p>
|
<p>Below bank account details were shared :</p>
|
||||||
<table class="scorecard_table">
|
<table class="scorecard_table">
|
||||||
<thead>
|
<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($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($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 #################-->
|
<!-- #################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>
|
<h3 contenteditable="true">Personal Banking Details: </h3>
|
||||||
<?php if($is_personal_banking_available != null){
|
<?php if(count($filteredPersonalBankingResult)>0){ ?>
|
||||||
//print_r($bankingResult);
|
|
||||||
?>
|
|
||||||
<p>Below bank account details were shared :</p>
|
<p>Below bank account details were shared :</p>
|
||||||
<table class="scorecard_table">
|
<table class="scorecard_table">
|
||||||
<thead>
|
<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($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($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 #################-->
|
<!-- #################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>
|
<h3 contenteditable="true">Personal Banking Details: </h3>
|
||||||
<?php if($is_personal_banking_available != null){
|
<?php if(count($filteredPersonalBankingResult)>0){ ?>
|
||||||
//print_r($bankingResult);
|
|
||||||
?>
|
|
||||||
<p>Below bank account details were shared :</p>
|
<p>Below bank account details were shared :</p>
|
||||||
<table class="scorecard_table">
|
<table class="scorecard_table">
|
||||||
<thead>
|
<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($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($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 #################-->
|
<!-- #################end business / individual banking section #################-->
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user