FIX_BDS_RENEWAL_REPORT_LOADING_ISSUE

This commit is contained in:
VENKATESHWARAN 2025-12-11 12:43:45 +05:30
parent 7cfa40d7c8
commit 97a970b3fa
3 changed files with 80 additions and 69 deletions

View File

@ -928,7 +928,8 @@ class BDSReportController extends AdminController
$default_start = new \DateTime();
$data['default_end'] = $default_start->format('d-m-Y');
$data['default_start'] = $default_start->modify('-60 days')->format('d-m-Y');
$data['issuer_branch'] = $this->nhanceBranchModel->where('is_active', 1)->findAll();;
$data['issuer_branch'] = $this->nhanceBranchModel->where('is_active', 1)->findAll();
$data['client_list'] = $this->clientModel->where('is_active', 1)->findAll();
$data['tab_name'] = "Renewal Reports";
$data['page_name'] = "Renewal Report";
return $this->loadLayout('renewal_search', $data);

View File

@ -20,12 +20,12 @@ table.dataTable tbody td {
<div class="col-12" id="inception_list">
<div class="card">
<div class="card-body">
<div class="row" style="margin-bottom:1rem;">
<div class="card-body" style="background-color: #F5FFFF !important; border-radius: 10px; box-shadow: 4px 4px 4px 4px #00000040;">
<!-- <div class="row" style="margin-bottom:1rem;">
<div class="col-6" style="align-self: center;">
<h4 style="position: relative;">Renewal Policy List</h4>
</div>
</div>
</div> -->
<div>
<div class="table-responsive">
<table data-custom-table-css="table" id="scroll-horizontal-datatable" class="table w-100 nowrap">

View File

@ -1,9 +1,8 @@
<div class="container-fluid-min">
<div class="container-fluid-min" style="margin-left: 30px;">
<div class="col-xl-12">
<div class="card-body">
<div id="accordion" class="mb-3">
<div class="card mb-1">
<h4 class="m-1">
<div class="card mb-1" style="background-color: #F5FFFF !important; border-radius: 10px; box-shadow: 4px 4px 4px 4px #00000040;">
<h4 class="m-1" style="display: flex;justify-content: space-between;padding: 12px;">
<span>Filter</span>
<a id="toggleIcon" class="text-dark float-right" data-toggle="collapse" href="#collapseOne"
aria-expanded="true">
@ -11,7 +10,7 @@
</a>
</h4>
<div id="collapseOne" class="collapse show" aria-labelledby="headingOne" data-parent="#accordion">
<div class="card-body">
<div class="card-body" style="margin-top: -30px;">
<!-- <div class="text-center"> -->
<div class="form-row">
<div class="form-group col-md-3" id="date_div">
@ -57,6 +56,13 @@
<label for="client_branch">Client<span class="text-danger"></span></label>
<select class="form-control" id="client_id" name="client_id">
<option value="">Select Client</option>
<?php
if (isset($client_list) && count($client_list)) {
foreach ($client_list as $key => $value) {
echo "<option value=" . $value['id'] . ">" . $value['client_name'] . "</option>";
}
}
?>
</select>
</div>
@ -74,7 +80,6 @@
</div>
</div>
</div>
</div>
<div id="report"></div>
@ -85,8 +90,9 @@
let client_list = [];
$(document).ready(function() {
getClientAndBranchAndPolicy();
// getClientAndBranchAndPolicy();
$('#client_id').select2();
$('#issuer_branch').select2();
})
$(function() {
@ -173,9 +179,13 @@
//get client , branch, policy data
function getClientAndBranchAndPolicy() {
return_type = 'client';
$.ajax({
url: '<?= base_url("/util/getClientAndBranchAndPolicy") ?>',
type: "GET",
data:{ return_type : return_type},
dataType: 'json',
success: function(res) {