CHANGE_bds_issue-final-fix-2 - VADIVEL J 2025-10-31 10:26
This commit is contained in:
parent
b1b1d4fa94
commit
8604aafdbe
@ -1,46 +1,46 @@
|
||||
<?php
|
||||
|
||||
namespace App\Controllers;
|
||||
namespace App\Controllers;
|
||||
|
||||
use App\Controllers\BaseController;
|
||||
use App\Controllers\GoogleDriveController;
|
||||
use App\Controllers\BaseController;
|
||||
use App\Controllers\GoogleDriveController;
|
||||
|
||||
use App\Helpers\DepositHelper;
|
||||
use CodeIgniter\API\ResponseTrait;
|
||||
use App\Helpers\DepositHelper;
|
||||
use CodeIgniter\API\ResponseTrait;
|
||||
|
||||
use App\Models\PolicyTransactionModel;
|
||||
use App\Models\PolicyTransactionStatusModel;
|
||||
use App\Models\ClientModel;
|
||||
use App\Models\ClientBranchModel;
|
||||
use App\Models\ClientDepositModel;
|
||||
use App\Models\ClientPolicyModel;
|
||||
use App\Models\PolicyTypeModel;
|
||||
use App\Models\InsurerBranchModel;
|
||||
use App\Models\InsurerModel;
|
||||
use App\Models\KYCEntityTypeModel;
|
||||
use App\Models\ClientKYCDocsModel;
|
||||
use App\Models\TPABranchModel;
|
||||
use App\Models\TPAModel;
|
||||
use App\Models\PTFileModel;
|
||||
use App\Models\PTCOShareDetailsModel;
|
||||
use App\Models\EmployeeModel;
|
||||
use App\Models\UserTeamsModel;
|
||||
use App\Models\UserModel;
|
||||
use App\Models\EmployeePolicyModel;
|
||||
use App\Models\InsurerStatements;
|
||||
use App\Models\InvPaymentDetailsModel;
|
||||
use App\Models\BatchFileModel;
|
||||
use App\Models\FileModel;
|
||||
use App\Models\COShareStmtDetailsModel;
|
||||
use App\Models\BdsPlacementModel;
|
||||
use Kint\Kint;
|
||||
use App\Helpers\MailHelper;
|
||||
use App\Helpers\ExcelSanitizeHelper;
|
||||
use App\Models\NhanceBranchModel;
|
||||
use Exception;
|
||||
use App\Models\PolicyTransactionModel;
|
||||
use App\Models\PolicyTransactionStatusModel;
|
||||
use App\Models\ClientModel;
|
||||
use App\Models\ClientBranchModel;
|
||||
use App\Models\ClientDepositModel;
|
||||
use App\Models\ClientPolicyModel;
|
||||
use App\Models\PolicyTypeModel;
|
||||
use App\Models\InsurerBranchModel;
|
||||
use App\Models\InsurerModel;
|
||||
use App\Models\KYCEntityTypeModel;
|
||||
use App\Models\ClientKYCDocsModel;
|
||||
use App\Models\TPABranchModel;
|
||||
use App\Models\TPAModel;
|
||||
use App\Models\PTFileModel;
|
||||
use App\Models\PTCOShareDetailsModel;
|
||||
use App\Models\EmployeeModel;
|
||||
use App\Models\UserTeamsModel;
|
||||
use App\Models\UserModel;
|
||||
use App\Models\EmployeePolicyModel;
|
||||
use App\Models\InsurerStatements;
|
||||
use App\Models\InvPaymentDetailsModel;
|
||||
use App\Models\BatchFileModel;
|
||||
use App\Models\FileModel;
|
||||
use App\Models\COShareStmtDetailsModel;
|
||||
use App\Models\BdsPlacementModel;
|
||||
use Kint\Kint;
|
||||
use App\Helpers\MailHelper;
|
||||
use App\Helpers\ExcelSanitizeHelper;
|
||||
use App\Models\NhanceBranchModel;
|
||||
use Exception;
|
||||
|
||||
class PolicyTransactionController extends BaseController
|
||||
{
|
||||
class PolicyTransactionController extends BaseController
|
||||
{
|
||||
use ResponseTrait;
|
||||
|
||||
protected $myLogger;
|
||||
@ -3179,8 +3179,8 @@ class PolicyTransactionController extends BaseController
|
||||
}
|
||||
|
||||
|
||||
public function reportBDSNew()
|
||||
{
|
||||
public function reportBDSNew()
|
||||
{
|
||||
// 🧭 Basic Page Info
|
||||
$data['tab_name'] = 'BDS Report';
|
||||
$data['page_name'] = 'BDS Report';
|
||||
@ -3285,8 +3285,8 @@ public function reportBDSNew()
|
||||
|
||||
// 🧩 Load View
|
||||
$this->loadLayout('report_bds_filter', $data);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,11 +1,11 @@
|
||||
<?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 $primaryKey = 'id';
|
||||
protected $useAutoIncrement = true;
|
||||
@ -2297,4 +2297,4 @@ class PolicyTransactionModel extends Model
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,43 +1,44 @@
|
||||
<style>
|
||||
.table th,
|
||||
.table td {
|
||||
<style>
|
||||
.table th,
|
||||
.table td {
|
||||
padding: 8px;
|
||||
}
|
||||
}
|
||||
|
||||
table.dataTable tbody td {
|
||||
table.dataTable tbody td {
|
||||
padding: 4px 4px !important;
|
||||
}
|
||||
}
|
||||
|
||||
.col-12 {
|
||||
.col-12 {
|
||||
|
||||
max-width: 98% !important;
|
||||
}
|
||||
}
|
||||
|
||||
.dataTables_filter {
|
||||
.dataTables_filter {
|
||||
position: absolute;
|
||||
}
|
||||
}
|
||||
|
||||
.right-align-input {
|
||||
.right-align-input {
|
||||
text-align: right;
|
||||
}
|
||||
}
|
||||
|
||||
.badge-container {
|
||||
.badge-container {
|
||||
background: #F0F0F0;
|
||||
padding: 6px 12px;
|
||||
border-radius: 6px;
|
||||
font-size: 14px;
|
||||
display: inline-block;
|
||||
}
|
||||
#totals {
|
||||
}
|
||||
#totals {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 8px;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
</style>
|
||||
</style>
|
||||
|
||||
<div class="col-12" id="second_page">
|
||||
|
||||
<div class="col-12" id="second_page">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<div class="row" style="padding-bottom: 10px;">
|
||||
@ -262,10 +263,10 @@ table.dataTable tbody td {
|
||||
</div>
|
||||
</div><!-- end col -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- modal content -->
|
||||
<div class="modal fade" id="centermodal" tabindex="-1" role="dialog" aria-hidden="true" aria-modal="true" data-backdrop="static">
|
||||
<!-- modal content -->
|
||||
<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-content">
|
||||
<div class="modal-header" style="background-color: gainsboro;">
|
||||
@ -292,13 +293,13 @@ table.dataTable tbody td {
|
||||
</div>
|
||||
</div><!-- /.modal-content -->
|
||||
</div><!-- /.modal-dialog -->
|
||||
</div><!-- /.modal -->
|
||||
</div><!-- /.modal -->
|
||||
|
||||
<!-------------------------------------------------------------------------------------------------->
|
||||
<!-------------------------------------------------------------------------------------------------->
|
||||
|
||||
<script>
|
||||
// Datatable document ready
|
||||
$(document).ready(function() {
|
||||
<script>
|
||||
// Datatable document ready
|
||||
$(document).ready(function() {
|
||||
|
||||
var ticketsTable = $('#scroll-horizontal-datatable');
|
||||
|
||||
@ -581,11 +582,11 @@ $(document).ready(function() {
|
||||
} else {
|
||||
console.error("Table atet found.");
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
// ----------------------------------------------------------------------------------------------------
|
||||
// ----------------------------------------------------------------------------------------------------
|
||||
|
||||
function showCoShareStatementDetails(input){
|
||||
function showCoShareStatementDetails(input){
|
||||
|
||||
let pt_id = $(input).data('id');
|
||||
console.log('pt_id', pt_id)
|
||||
@ -594,10 +595,10 @@ function showCoShareStatementDetails(input){
|
||||
myModal.show();
|
||||
|
||||
getCoShareStatementDetails(pt_id)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function getCoShareStatementDetails(pt_id){
|
||||
function getCoShareStatementDetails(pt_id){
|
||||
|
||||
let url = '<?= base_url('util/getCoShareStatementDetails/') ?>' + pt_id;
|
||||
|
||||
@ -616,9 +617,9 @@ function getCoShareStatementDetails(pt_id){
|
||||
console.error(xhr.responseText);
|
||||
});
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
function appendTableData(data) {
|
||||
function appendTableData(data) {
|
||||
|
||||
// Ensure the table body selector matches your table's structure
|
||||
let tableBody = $("#table_data");
|
||||
@ -640,7 +641,7 @@ function appendTableData(data) {
|
||||
`;
|
||||
tableBody.append(tableRow);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
</script>
|
||||
@ -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="card-body">
|
||||
<div id="accordion" class="mb-3">
|
||||
@ -149,11 +149,11 @@
|
||||
<div id="file_list">
|
||||
<?php include('report_bds.php'); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<script>
|
||||
<script>
|
||||
let client_list = [];
|
||||
let branch_list = [];
|
||||
let policy_list = [];
|
||||
@ -559,4 +559,4 @@
|
||||
}
|
||||
|
||||
}
|
||||
</script>
|
||||
</script>
|
||||
Loading…
Reference in New Issue
Block a user