diff --git a/api/application/helpers/bankingform_helper.php b/api/application/helpers/bankingform_helper.php index c19926fb..81ad6d4c 100644 --- a/api/application/helpers/bankingform_helper.php +++ b/api/application/helpers/bankingform_helper.php @@ -66,7 +66,7 @@ public static function getIndividualBankingDetails2($values,$pdid){ 'bank_name' => $tag['bank_name_business'] ==1 ? $tag['other_bank_business'] : $tag['bank_name_business_master'], 'account_type' => $tag['account_type_business_master'], 'main_business' => $tag['salary_business'], - 'od_cc_limit' => ($tag['account_type_business']==3) ? $tag['limit'] : (($tag['account_type_business']==4) ? $tag['limit'] : ''), + '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' => "Business", ); diff --git a/api/application/views/report_templates/JSONTOREPORT_DI_AI.php b/api/application/views/report_templates/JSONTOREPORT_DI_AI.php index 635bc12c..8ba6753c 100644 --- a/api/application/views/report_templates/JSONTOREPORT_DI_AI.php +++ b/api/application/views/report_templates/JSONTOREPORT_DI_AI.php @@ -4006,6 +4006,7 @@ if($total_no_of_business > 0) { $ibRow) { $individualBankRow = json_decode($ibRow['processed_json'],true); @@ -4021,6 +4022,11 @@ if($total_no_of_business > 0) { { $is_personal_banking_available = 1; if(count($individualBankRow['banking_details'])>0){ + // $tag['same_ac_used_for'] both + $stmt_flag = array_map(function ($ar) { + return $ar['same_ac_used_for'] == "personal" ? 0 : ($stmt_flag+1); + }, $individualBankRow['banking_details']); + $getIndividualEachValues=BANKINGFORM::getIndividualBankingDetails($individualBankRow['banking_details'],$pd_master_details[0]['pd_id']); $bankingResult = array_merge($bankingResult,$getIndividualEachValues); } @@ -4029,7 +4035,7 @@ if($total_no_of_business > 0) { ?> -

Personal Banking:

+

Banking Details:

@@ -4065,9 +4071,10 @@ 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.'

'; } ?> +