diff --git a/app/Config/Routes.php b/app/Config/Routes.php
index 2e8d6fb3..96252c3f 100755
--- a/app/Config/Routes.php
+++ b/app/Config/Routes.php
@@ -3,6 +3,13 @@
use CodeIgniter\Router\RouteCollection;
+
+// Allow OPTIONS for all routes
+$routes->options('(:any)', function() {
+ // This will never be called because the CORS filter returns early
+ // But having this route ensures OPTIONS isn't rejected as 404
+});
+
/**
* @var RouteCollection $routes
*/
diff --git a/app/Controllers/RuleImportController.php b/app/Controllers/RuleImportController.php
index 1fc562b9..d1647bae 100644
--- a/app/Controllers/RuleImportController.php
+++ b/app/Controllers/RuleImportController.php
@@ -37,6 +37,7 @@ class RuleImportController extends AdminController
'motor' => [
'department',
'vehicle_type',
+ 'vehicle_sub_type',
'policy_type',
'vehicle_age',
'is_new_vehicle',
diff --git a/app/Controllers/ThzController.php b/app/Controllers/ThzController.php
index 29f89df4..d0151013 100644
--- a/app/Controllers/ThzController.php
+++ b/app/Controllers/ThzController.php
@@ -108,7 +108,7 @@ class ThzController extends BaseController
$data = $this->request->getGet();
- if ($returnType === 'web' && in_array(get_role_id(), [3, 4])) {
+ if ($returnType === 'web' && in_array(get_role_id(), [4])) {
$data['assign_to'] = $data['assign_to'] ?? get_session_userid();
}
diff --git a/app/Libraries/RuleImportService.php b/app/Libraries/RuleImportService.php
index cebc2e9f..33fdab3d 100644
--- a/app/Libraries/RuleImportService.php
+++ b/app/Libraries/RuleImportService.php
@@ -1111,31 +1111,31 @@ class RuleImportService
if ($weightMin !== '' && $weightMax !== '') {
if ($weightMin === $weightMax) {
$conditions[] = [
- 'field' => 'vehicle_weight',
+ 'field' => 'weight',
'operator' => '==',
'value' => (float)$weightMin
];
} else {
$conditions[] = [
- 'field' => 'vehicle_weight',
+ 'field' => 'weight',
'operator' => '>=',
'value' => (float)$weightMin
];
$conditions[] = [
- 'field' => 'vehicle_weight',
+ 'field' => 'weight',
'operator' => '<=',
'value' => (float)$weightMax
];
}
} elseif ($weightMin !== '') {
$conditions[] = [
- 'field' => 'vehicle_weight',
+ 'field' => 'weight',
'operator' => '>=',
'value' => (float)$weightMin
];
} elseif ($weightMax !== '') {
$conditions[] = [
- 'field' => 'vehicle_weight',
+ 'field' => 'weight',
'operator' => '<=',
'value' => (float)$weightMax
];
@@ -1147,13 +1147,13 @@ class RuleImportService
if (count($states) > 1) {
$conditions[] = [
- 'field' => 'rto_state',
+ 'field' => 'geo_rto_state',
'operator' => 'in',
'value' => $states
];
} else {
$conditions[] = [
- 'field' => 'rto_state',
+ 'field' => 'geo_rto_state',
'operator' => '==',
'value' => $states[0]
];
@@ -1166,13 +1166,13 @@ class RuleImportService
if (count($cities) > 1) {
$conditions[] = [
- 'field' => 'rto_city',
+ 'field' => 'geo_rto_city',
'operator' => 'in',
'value' => $cities
];
} else {
$conditions[] = [
- 'field' => 'rto_city',
+ 'field' => 'geo_rto_city',
'operator' => '==',
'value' => $cities[0]
];
@@ -1191,7 +1191,7 @@ class RuleImportService
// Policy Name
if (!empty($rowData[self::COL_POLICY_NAME])) {
$conditions[] = [
- 'field' => 'policy_name',
+ 'field' => 'product',
'operator' => '==',
'value' => $this->sanitize($rowData[self::COL_POLICY_NAME])
];
diff --git a/app/Views/UserList.php b/app/Views/UserList.php
index a991670d..01db38eb 100755
--- a/app/Views/UserList.php
+++ b/app/Views/UserList.php
@@ -339,6 +339,7 @@ table.dataTable tbody td {
border: 1px solid #ddd; /* matches border-width:1px */
padding: 3px;
}
+ .dataTables_length label {height: 21px !important;}
@@ -440,7 +441,7 @@ table.dataTable tbody td {
" . $ct . "";
endif;
?>
@@ -448,7 +449,7 @@ table.dataTable tbody td {
|
" . $ut . "";
endif;
?>
@@ -863,7 +864,7 @@ table.dataTable tbody td {
// "<'row'<'col-sm-5'i><'col-sm-7'p>>",
dom: "<'row'<'col-sm-3'f><'col-sm-9'B>>" +
"<'row'<'col-sm-12'tr>>" +
- "<'row'<'col-sm-5'i><'col-sm-3 text-center'l><'col-sm-4 text-end'p>>",
+ "<'row align-items-center'<'col-5 text-start'i><'col-7 d-flex justify-content-end align-items-center'<'me-2'l>p>>",
lengthMenu: [[10, 20, 50, 100], [10, 20, 50, 100]],
buttons: [
// {
diff --git a/app/Views/add_image_list.php b/app/Views/add_image_list.php
index 034923f6..ff3770a1 100755
--- a/app/Views/add_image_list.php
+++ b/app/Views/add_image_list.php
@@ -16,6 +16,9 @@ table.dataTable thead th {
max-width: 98% !important;
}
+
+.dataTables_length label {height: 21px !important;}
+
@@ -227,7 +230,7 @@ $(document).ready(function() {
// "<'row'<'col-sm-5'i><'col-sm-7'p>>",
dom: "<'row'<'col-12 d-flex justify-content-between align-items-center'<'datatable-search dataTables_filter'f><'datatable-buttons dt-buttons'B>>>" +
"<'row'<'col-sm-12'tr>>" +
- "<'row'<'col-sm-5'i><'col-sm-3 text-center'l><'col-sm-4 text-end'p>>",
+ "<'row align-items-center'<'col-5 text-start'i><'col-7 d-flex justify-content-end align-items-center'<'me-2'l>p>>",
lengthMenu: [[10, 20, 50, 100], [10, 20, 50, 100]],
buttons: [
{
diff --git a/app/Views/batch_list.php b/app/Views/batch_list.php
index 7e66110d..123950fb 100755
--- a/app/Views/batch_list.php
+++ b/app/Views/batch_list.php
@@ -13,6 +13,7 @@
overflow: hidden;
text-overflow: ellipsis;
}
+.dataTables_length label {height: 21px !important;}
@@ -241,7 +242,7 @@
// },
dom: "<'row'<'col-12 d-flex justify-content-between align-items-center'<'datatable-search dataTables_filter'f><'datatable-buttons dt-buttons'B>>>" +
"<'row'<'col-sm-12'tr>>" +
- "<'row'<'col-sm-5'i><'col-sm-3 text-center'l><'col-sm-4 text-end'p>>",
+ "<'row align-items-center'<'col-5 text-start'i><'col-7 d-flex justify-content-end align-items-center'<'me-2'l>p>>",
lengthMenu: [[10, 20, 50, 100], [10, 20, 50, 100]],
buttons: [{
extend: 'collection',
diff --git a/app/Views/bds_multi_report.php b/app/Views/bds_multi_report.php
index 69d3b787..dab4e951 100644
--- a/app/Views/bds_multi_report.php
+++ b/app/Views/bds_multi_report.php
@@ -19,6 +19,7 @@
.right-align-input {
text-align: right;
}
+ .dataTables_length label {height: 21px !important;}
@@ -94,7 +95,7 @@
// "<'row'<'col-sm-5'i><'col-sm-7'p>>",
dom: "<'row'<'col-sm-6'f><'col-sm-6 text-right'B>>" +
"<'row'<'col-sm-12'tr>>" +
- "<'row'<'col-sm-5'i><'col-sm-3 text-center'l><'col-sm-4 text-end'p>>",
+ "<'row align-items-center'<'col-5 text-start'i><'col-7 d-flex justify-content-end align-items-center'<'me-2'l>p>>",
lengthMenu: [[10, 20, 50, 100], [10, 20, 50, 100]],
buttons: [
{
diff --git a/app/Views/bds_renewal_report_list.php b/app/Views/bds_renewal_report_list.php
index d1dd8c17..c4873dda 100644
--- a/app/Views/bds_renewal_report_list.php
+++ b/app/Views/bds_renewal_report_list.php
@@ -14,6 +14,8 @@ table.dataTable tbody td {
table[data-custom-table-css="table"].dataTable thead th {
padding-right: 20px !important;
}
+ .dataTables_length label {height: 21px !important;}
+
@@ -122,7 +124,7 @@ $(document).ready(function() {
// "<'row'<'col-sm-5'i><'col-sm-7'p>>", // Pagination at the bottom, without page length selector
dom: "<'row'<'col-sm-2'f><'col-sm-10 text-right'B>>" + // Filter left, buttons right
"<'row'<'col-sm-12'tr>>" +
- "<'row'<'col-sm-5'i><'col-sm-3 text-center'l><'col-sm-4 text-end'p>>",
+ "<'row align-items-center'<'col-5 text-start'i><'col-7 d-flex justify-content-end align-items-center'<'me-2'l>p>>",
lengthMenu: [[10, 20, 50, 100], [10, 20, 50, 100]],
buttons: [
{
diff --git a/app/Views/bds_report_Insurer_wise_Data.php b/app/Views/bds_report_Insurer_wise_Data.php
index a6e6e2a9..b122a7e1 100644
--- a/app/Views/bds_report_Insurer_wise_Data.php
+++ b/app/Views/bds_report_Insurer_wise_Data.php
@@ -23,6 +23,7 @@ table.dataTable tbody td {
#scroll-horizontal-datatable tfoot .right-align-input {
text-align: right !important;
}
+.dataTables_length label {height: 21px !important;}
@@ -79,7 +80,7 @@ table.dataTable tbody td {
// "<'row'<'col-sm-5'i><'col-sm-7'p>>", // Pagination at the bottom, without page length selector
dom: "<'row'<'col-sm-6'f><'col-sm-6 text-right'B>>" + // Filter left, buttons right
"<'row'<'col-sm-12'tr>>" +
- "<'row'<'col-sm-5'i><'col-sm-3 text-center'l><'col-sm-4 text-end'p>>",
+ "<'row align-items-center'<'col-5 text-start'i><'col-7 d-flex justify-content-end align-items-center'<'me-2'l>p>>",
lengthMenu: [[10, 20, 50, 100], [10, 20, 50, 100]],
buttons: [
{
diff --git a/app/Views/bds_report_bap_wise_data.php b/app/Views/bds_report_bap_wise_data.php
index 8a5b467a..812f0abf 100644
--- a/app/Views/bds_report_bap_wise_data.php
+++ b/app/Views/bds_report_bap_wise_data.php
@@ -23,6 +23,7 @@ table.dataTable tbody td {
#scroll-horizontal-datatable tfoot .right-align-input {
text-align: right !important;
}
+.dataTables_length label {height: 21px !important;}
@@ -81,7 +82,7 @@ table.dataTable tbody td {
// "<'row'<'col-sm-5'i><'col-sm-7'p>>", // Pagination at the bottom, without page length selector
dom: "<'row'<'col-sm-6'f><'col-sm-6 text-right'B>>" + // Filter left, buttons right
"<'row'<'col-sm-12'tr>>" +
- "<'row'<'col-sm-5'i><'col-sm-3 text-center'l><'col-sm-4 text-end'p>>",
+ "<'row align-items-center'<'col-5 text-start'i><'col-7 d-flex justify-content-end align-items-center'<'me-2'l>p>>",
lengthMenu: [[10, 20, 50, 100], [10, 20, 50, 100]],
buttons: [
{
diff --git a/app/Views/bds_tat_wise_report.php b/app/Views/bds_tat_wise_report.php
index 41f85f71..6d904cec 100644
--- a/app/Views/bds_tat_wise_report.php
+++ b/app/Views/bds_tat_wise_report.php
@@ -19,6 +19,7 @@
.right-align-input {
text-align: right;
}
+ .dataTables_length label {height: 21px !important;}
@@ -109,7 +110,7 @@
// ],
dom: "<'row'<'col-sm-6'f><'col-sm-6 text-right'B>>" +
"<'row'<'col-sm-12'tr>>" +
- "<'row'<'col-sm-5'i><'col-sm-3 text-center'l><'col-sm-4 text-end'p>>",
+ "<'row align-items-center'<'col-5 text-start'i><'col-7 d-flex justify-content-end align-items-center'<'me-2'l>p>>",
lengthMenu: [[10, 20, 50, 100], [10, 20, 50, 100]],
buttons: [
{
diff --git a/app/Views/business_team_list.php b/app/Views/business_team_list.php
index c00fcd6e..3a91bf1e 100644
--- a/app/Views/business_team_list.php
+++ b/app/Views/business_team_list.php
@@ -43,6 +43,7 @@
color: #16181b !important;
cursor: pointer !important;
}
+ .dataTables_length label {height: 21px !important;}
@@ -343,7 +344,7 @@
// "<'row'<'col-sm-5'i><'col-sm-7'p>>", // Pagination at the bottom, without page length selector
dom: "<'row'<'col-sm-6'f><'col-sm-6 text-right'B>>" + // Filter left, buttons right
"<'row'<'col-sm-12'tr>>" +
- "<'row'<'col-sm-5'i><'col-sm-3 text-center'l><'col-sm-4 text-end'p>>",
+ "<'row align-items-center'<'col-5 text-start'i><'col-7 d-flex justify-content-end align-items-center'<'me-2'l>p>>",
lengthMenu: [[10, 20, 50, 100], [10, 20, 50, 100]],
buttons: [
{
diff --git a/app/Views/cd_master_list.php b/app/Views/cd_master_list.php
index 30c20b60..139a0c75 100755
--- a/app/Views/cd_master_list.php
+++ b/app/Views/cd_master_list.php
@@ -51,6 +51,8 @@ table.dataTable thead th {
.dataTables_filter {
position: absolute;
}
+.dataTables_length label {height: 21px !important;}
+
@@ -222,7 +224,7 @@ table.dataTable thead th {
// "<'row'<'col-sm-5'i><'col-sm-7'p>>",
dom: "<'row'<'col-sm-6'f><'col-sm-6 text-right'B>>" +
"<'row'<'col-sm-12'tr>>" +
- "<'row'<'col-sm-5'i><'col-sm-3 text-center'l><'col-sm-4 text-end'p>>",
+ "<'row align-items-center'<'col-5 text-start'i><'col-7 d-flex justify-content-end align-items-center'<'me-2'l>p>>",
lengthMenu: [[10, 20, 50, 100], [10, 20, 50, 100]],
buttons: [
{
diff --git a/app/Views/claim_dump_file_list.php b/app/Views/claim_dump_file_list.php
index a2f27a80..696d97ce 100644
--- a/app/Views/claim_dump_file_list.php
+++ b/app/Views/claim_dump_file_list.php
@@ -21,6 +21,7 @@
position: absolute;
}
+ .dataTables_length label {height: 21px !important;}
@@ -223,7 +225,7 @@ table.dataTable tbody td { padding: 4px 4px !important; }
dom:
"<'row'<'col-sm-6'f><'col-sm-6 text-right'B>>" +
"<'row'<'col-sm-12'tr>>" +
- "<'row'<'col-sm-5'i><'col-sm-3 text-center'l><'col-sm-4 text-end'p>>",
+ "<'row align-items-center'<'col-5 text-start'i><'col-7 d-flex justify-content-end align-items-center'<'me-2'l>p>>",
lengthMenu: [[10, 20, 50, 100], [10, 20, 50, 100]],
buttons: [
{
@@ -349,7 +351,7 @@ table.dataTable tbody td { padding: 4px 4px !important; }
dom:
"<'row'<'col-sm-6'f><'col-sm-6 text-right'B>>" +
"<'row'<'col-sm-12'tr>>" +
- "<'row'<'col-sm-5'i><'col-sm-3 text-center'l><'col-sm-4 text-end'p>>",
+ "<'row align-items-center'<'col-5 text-start'i><'col-7 d-flex justify-content-end align-items-center'<'me-2'l>p>>",
lengthMenu: [[10, 20, 50, 100], [10, 20, 50, 100]],
buttons: [
{
diff --git a/app/Views/irda_bap_client_report_list.php b/app/Views/irda_bap_client_report_list.php
index 213423bf..d260a3ab 100644
--- a/app/Views/irda_bap_client_report_list.php
+++ b/app/Views/irda_bap_client_report_list.php
@@ -34,6 +34,7 @@ table.dataTable tbody td {
#scroll-horizontal-datatable tfoot .right-align-input {
text-align: right !important;
}
+.dataTables_length label {height: 21px !important;}
@@ -211,7 +212,7 @@ $(document).ready(function() {
// "<'row'<'col-sm-5'i><'col-sm-7'p>>", // Pagination at the bottom, without page length selector
dom: "<'row'<'col-sm-6'f><'col-sm-6 text-right'B>>" + // Filter left, buttons right
"<'row'<'col-sm-12'tr>>" +
- "<'row'<'col-sm-5'i><'col-sm-3 text-center'l><'col-sm-4 text-end'p>>",
+ "<'row align-items-center'<'col-5 text-start'i><'col-7 d-flex justify-content-end align-items-center'<'me-2'l>p>>",
lengthMenu: [[10, 20, 50, 100], [10, 20, 50, 100]],
buttons: [
{
diff --git a/app/Views/irda_bap_insurer_report_list.php b/app/Views/irda_bap_insurer_report_list.php
index 5b2f2ad9..d02891af 100644
--- a/app/Views/irda_bap_insurer_report_list.php
+++ b/app/Views/irda_bap_insurer_report_list.php
@@ -24,6 +24,7 @@ table.dataTable tbody td {
#scroll-horizontal-datatable tfoot .right-align-input {
text-align: right !important;
}
+.dataTables_length label {height: 21px !important;}
@@ -297,7 +298,7 @@ $(document).ready(function() {
// ],
dom: "<'row'<'col-sm-6'f><'col-sm-6 text-right'B>>" + // Filter left, buttons right
"<'row'<'col-sm-12'tr>>" +
- "<'row'<'col-sm-5'i><'col-sm-3 text-center'l><'col-sm-4 text-end'p>>",
+ "<'row align-items-center'<'col-5 text-start'i><'col-7 d-flex justify-content-end align-items-center'<'me-2'l>p>>",
lengthMenu: [[10, 20, 50, 100], [10, 20, 50, 100]],
buttons: [
{
diff --git a/app/Views/irda_client_report_list.php b/app/Views/irda_client_report_list.php
index aca84738..468dc7c0 100644
--- a/app/Views/irda_client_report_list.php
+++ b/app/Views/irda_client_report_list.php
@@ -20,6 +20,7 @@ table.dataTable tbody td {
.right-align-input {
text-align: right;
}
+.dataTables_length label {height: 21px !important;}
@@ -133,7 +134,7 @@ $(document).ready(function() {
// ],
dom: "<'row'<'col-sm-6'f><'col-sm-6 text-right'B>>" + // Filter left, buttons right
"<'row'<'col-sm-12'tr>>" +
- "<'row'<'col-sm-5'i><'col-sm-3 text-center'l><'col-sm-4 text-end'p>>",
+ "<'row align-items-center'<'col-5 text-start'i><'col-7 d-flex justify-content-end align-items-center'<'me-2'l>p>>",
lengthMenu: [[10, 20, 50, 100], [10, 20, 50, 100]],
buttons: [
{
diff --git a/app/Views/kyc_list.php b/app/Views/kyc_list.php
index 54ca556f..fff20bdc 100755
--- a/app/Views/kyc_list.php
+++ b/app/Views/kyc_list.php
@@ -38,7 +38,7 @@
color: white;
border:1px solid rgba(41, 139, 142, 1);
}
-
+.dataTables_length label {height: 21px !important;}
@@ -181,7 +181,7 @@
// "<'row'<'col-sm-5'i><'col-sm-7'p>>" ,
dom: "<'row'<'col-12 d-flex justify-content-between align-items-center'<'datatable-search dataTables_filter'f><'datatable-buttons dt-buttons'B>>>" +
"<'row'<'col-sm-12'tr>>" +
- "<'row'<'col-sm-5'i><'col-sm-3 text-center'l><'col-sm-4 text-end'p>>",
+ "<'row align-items-center'<'col-5 text-start'i><'col-7 d-flex justify-content-end align-items-center'<'me-2'l>p>>",
lengthMenu: [[10, 20, 50, 100], [10, 20, 50, 100]],
buttons: [
{
diff --git a/app/Views/leads_list.php b/app/Views/leads_list.php
index 0ab3ab13..896a1117 100644
--- a/app/Views/leads_list.php
+++ b/app/Views/leads_list.php
@@ -139,7 +139,7 @@ table.dataTable tbody td {
font-size: 0.9rem;
padding: 0.5rem 1rem;
}
-
+.dataTables_length label {height: 21px !important;}
/* Modeal class */
@@ -463,7 +463,7 @@ table.dataTable tbody td {
// "<'row'<'col-sm-5'i><'col-sm-7'p>>", // Pagination at the bottom, without page length selector
dom: "<'row'<'col-sm-7'f><'col-sm-5 text-right'B>>" + // Filter left, buttons right
"<'row'<'col-sm-12'tr>>" +
- "<'row'<'col-sm-5'i><'col-sm-3 text-center'l><'col-sm-4 text-end'p>>",
+ "<'row align-items-center'<'col-5 text-start'i><'col-7 d-flex justify-content-end align-items-center'<'me-2'l>p>>",
lengthMenu: [[10, 20, 50, 100], [10, 20, 50, 100]],
buttons: [
{
diff --git a/app/Views/mail_test.php b/app/Views/mail_test.php
index 776909d3..e7d19666 100755
--- a/app/Views/mail_test.php
+++ b/app/Views/mail_test.php
@@ -8,7 +8,7 @@
-
+
|