CHANGE_bds_issue-final-fix-2 - VADIVEL J 2025-10-31 10:26

This commit is contained in:
vadivelJ96 2025-10-31 10:27:10 +05:30
parent b1b1d4fa94
commit 8604aafdbe
5 changed files with 6199 additions and 6198 deletions

View File

@ -1,46 +1,46 @@
<?php <?php
namespace App\Controllers; namespace App\Controllers;
use App\Controllers\BaseController; use App\Controllers\BaseController;
use App\Controllers\GoogleDriveController; use App\Controllers\GoogleDriveController;
use App\Helpers\DepositHelper; use App\Helpers\DepositHelper;
use CodeIgniter\API\ResponseTrait; use CodeIgniter\API\ResponseTrait;
use App\Models\PolicyTransactionModel; use App\Models\PolicyTransactionModel;
use App\Models\PolicyTransactionStatusModel; use App\Models\PolicyTransactionStatusModel;
use App\Models\ClientModel; use App\Models\ClientModel;
use App\Models\ClientBranchModel; use App\Models\ClientBranchModel;
use App\Models\ClientDepositModel; use App\Models\ClientDepositModel;
use App\Models\ClientPolicyModel; use App\Models\ClientPolicyModel;
use App\Models\PolicyTypeModel; use App\Models\PolicyTypeModel;
use App\Models\InsurerBranchModel; use App\Models\InsurerBranchModel;
use App\Models\InsurerModel; use App\Models\InsurerModel;
use App\Models\KYCEntityTypeModel; use App\Models\KYCEntityTypeModel;
use App\Models\ClientKYCDocsModel; use App\Models\ClientKYCDocsModel;
use App\Models\TPABranchModel; use App\Models\TPABranchModel;
use App\Models\TPAModel; use App\Models\TPAModel;
use App\Models\PTFileModel; use App\Models\PTFileModel;
use App\Models\PTCOShareDetailsModel; use App\Models\PTCOShareDetailsModel;
use App\Models\EmployeeModel; use App\Models\EmployeeModel;
use App\Models\UserTeamsModel; use App\Models\UserTeamsModel;
use App\Models\UserModel; use App\Models\UserModel;
use App\Models\EmployeePolicyModel; use App\Models\EmployeePolicyModel;
use App\Models\InsurerStatements; use App\Models\InsurerStatements;
use App\Models\InvPaymentDetailsModel; use App\Models\InvPaymentDetailsModel;
use App\Models\BatchFileModel; use App\Models\BatchFileModel;
use App\Models\FileModel; use App\Models\FileModel;
use App\Models\COShareStmtDetailsModel; use App\Models\COShareStmtDetailsModel;
use App\Models\BdsPlacementModel; use App\Models\BdsPlacementModel;
use Kint\Kint; use Kint\Kint;
use App\Helpers\MailHelper; use App\Helpers\MailHelper;
use App\Helpers\ExcelSanitizeHelper; use App\Helpers\ExcelSanitizeHelper;
use App\Models\NhanceBranchModel; use App\Models\NhanceBranchModel;
use Exception; use Exception;
class PolicyTransactionController extends BaseController class PolicyTransactionController extends BaseController
{ {
use ResponseTrait; use ResponseTrait;
protected $myLogger; protected $myLogger;
@ -3179,8 +3179,8 @@ class PolicyTransactionController extends BaseController
} }
public function reportBDSNew() public function reportBDSNew()
{ {
// 🧭 Basic Page Info // 🧭 Basic Page Info
$data['tab_name'] = 'BDS Report'; $data['tab_name'] = 'BDS Report';
$data['page_name'] = 'BDS Report'; $data['page_name'] = 'BDS Report';
@ -3285,8 +3285,8 @@ public function reportBDSNew()
// 🧩 Load View // 🧩 Load View
$this->loadLayout('report_bds_filter', $data); $this->loadLayout('report_bds_filter', $data);
} }
} }

View File

@ -1,11 +1,11 @@
<?php <?php
namespace App\Models; namespace App\Models;
use CodeIgniter\Model; use CodeIgniter\Model;
class PolicyTransactionModel extends Model class PolicyTransactionModel extends Model
{ {
protected $table = 'policy_transaction'; protected $table = 'policy_transaction';
protected $primaryKey = 'id'; protected $primaryKey = 'id';
protected $useAutoIncrement = true; protected $useAutoIncrement = true;
@ -2297,4 +2297,4 @@ class PolicyTransactionModel extends Model
} }

View File

@ -1,43 +1,44 @@
<style> <style>
.table th, .table th,
.table td { .table td {
padding: 8px; padding: 8px;
} }
table.dataTable tbody td { table.dataTable tbody td {
padding: 4px 4px !important; padding: 4px 4px !important;
} }
.col-12 { .col-12 {
max-width: 98% !important; max-width: 98% !important;
} }
.dataTables_filter { .dataTables_filter {
position: absolute; position: absolute;
} }
.right-align-input { .right-align-input {
text-align: right; text-align: right;
} }
.badge-container { .badge-container {
background: #F0F0F0; background: #F0F0F0;
padding: 6px 12px; padding: 6px 12px;
border-radius: 6px; border-radius: 6px;
font-size: 14px; font-size: 14px;
display: inline-block; display: inline-block;
} }
#totals { #totals {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
gap: 8px; gap: 8px;
} }
</style> </style>
<div class="col-12" id="second_page">
<div class="col-12" id="second_page">
<div class="card"> <div class="card">
<div class="card-body"> <div class="card-body">
<div class="row" style="padding-bottom: 10px;"> <div class="row" style="padding-bottom: 10px;">
@ -262,10 +263,10 @@ table.dataTable tbody td {
</div> </div>
</div><!-- end col --> </div><!-- end col -->
</div> </div>
</div> </div>
<!-- modal content --> <!-- modal content -->
<div class="modal fade" id="centermodal" tabindex="-1" role="dialog" aria-hidden="true" aria-modal="true" data-backdrop="static"> <div class="modal fade" id="centermodal" tabindex="-1" role="dialog" aria-hidden="true" aria-modal="true" data-backdrop="static">
<div class="modal-dialog modal-lg"> <div class="modal-dialog modal-lg">
<div class="modal-content"> <div class="modal-content">
<div class="modal-header" style="background-color: gainsboro;"> <div class="modal-header" style="background-color: gainsboro;">
@ -292,13 +293,13 @@ table.dataTable tbody td {
</div> </div>
</div><!-- /.modal-content --> </div><!-- /.modal-content -->
</div><!-- /.modal-dialog --> </div><!-- /.modal-dialog -->
</div><!-- /.modal --> </div><!-- /.modal -->
<!--------------------------------------------------------------------------------------------------> <!-------------------------------------------------------------------------------------------------->
<script> <script>
// Datatable document ready // Datatable document ready
$(document).ready(function() { $(document).ready(function() {
var ticketsTable = $('#scroll-horizontal-datatable'); var ticketsTable = $('#scroll-horizontal-datatable');
@ -581,11 +582,11 @@ $(document).ready(function() {
} else { } else {
console.error("Table atet found."); console.error("Table atet found.");
} }
}); });
// ---------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------------------------------------------
function showCoShareStatementDetails(input){ function showCoShareStatementDetails(input){
let pt_id = $(input).data('id'); let pt_id = $(input).data('id');
console.log('pt_id', pt_id) console.log('pt_id', pt_id)
@ -594,10 +595,10 @@ function showCoShareStatementDetails(input){
myModal.show(); myModal.show();
getCoShareStatementDetails(pt_id) getCoShareStatementDetails(pt_id)
} }
function getCoShareStatementDetails(pt_id){ function getCoShareStatementDetails(pt_id){
let url = '<?= base_url('util/getCoShareStatementDetails/') ?>' + pt_id; let url = '<?= base_url('util/getCoShareStatementDetails/') ?>' + pt_id;
@ -616,9 +617,9 @@ function getCoShareStatementDetails(pt_id){
console.error(xhr.responseText); console.error(xhr.responseText);
}); });
} }
function appendTableData(data) { function appendTableData(data) {
// Ensure the table body selector matches your table's structure // Ensure the table body selector matches your table's structure
let tableBody = $("#table_data"); let tableBody = $("#table_data");
@ -640,7 +641,7 @@ function appendTableData(data) {
`; `;
tableBody.append(tableRow); tableBody.append(tableRow);
}); });
} }
</script> </script>

View File

@ -1,9 +1,9 @@
<style> <style>
</style> </style>
<div class="container-fluid-min"> <div class="container-fluid-min">
<div class="col-12" id="bds_filter"> <div class="col-12" id="bds_filter">
<div class="card-body"> <div class="card-body">
<div id="accordion" class="mb-3"> <div id="accordion" class="mb-3">
@ -149,11 +149,11 @@
<div id="file_list"> <div id="file_list">
<?php include('report_bds.php'); ?> <?php include('report_bds.php'); ?>
</div> </div>
</div> </div>
<script> <script>
let client_list = []; let client_list = [];
let branch_list = []; let branch_list = [];
let policy_list = []; let policy_list = [];
@ -559,4 +559,4 @@
} }
} }
</script> </script>