From 97a970b3fae1ec54b6c8734c138a08a750944c73 Mon Sep 17 00:00:00 2001 From: "venkatesh.r" Date: Thu, 11 Dec 2025 12:43:45 +0530 Subject: [PATCH] FIX_BDS_RENEWAL_REPORT_LOADING_ISSUE --- app/Controllers/BDSReportController.php | 3 +- app/Views/bds_renewal_report_list.php | 6 +- app/Views/renewal_search.php | 140 +++++++++++++----------- 3 files changed, 80 insertions(+), 69 deletions(-) diff --git a/app/Controllers/BDSReportController.php b/app/Controllers/BDSReportController.php index 6a9d90f1..abc1ac14 100644 --- a/app/Controllers/BDSReportController.php +++ b/app/Controllers/BDSReportController.php @@ -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); diff --git a/app/Views/bds_renewal_report_list.php b/app/Views/bds_renewal_report_list.php index c4873dda..16bb337a 100644 --- a/app/Views/bds_renewal_report_list.php +++ b/app/Views/bds_renewal_report_list.php @@ -20,12 +20,12 @@ table.dataTable tbody td {
-
-
+
+
diff --git a/app/Views/renewal_search.php b/app/Views/renewal_search.php index 6cdca11d..f6b8c348 100644 --- a/app/Views/renewal_search.php +++ b/app/Views/renewal_search.php @@ -1,75 +1,80 @@ -
+
-
-
-
-

- Filter - - - -

-
-
- -
-
- - -
- - -
- > - > +
+
+

+ Filter + + + +

+
+
+ +
+
+ + +
+ +
+ > + > +
-
- - + + $value) { + echo ""; } - ?> - -
- - -
- - -
- -
- - -
- + } + ?> +
-
-
- Submit -
+ +
+ +
- + +
+ + +
+
+
+ +
+ Submit +
+
+
@@ -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: '', type: "GET", + data:{ return_type : return_type}, dataType: 'json', success: function(res) {