CHANGE_UI_Issues - VADIVEL J 2025-09-24
This commit is contained in:
parent
81a58c5495
commit
5a707d9722
@ -1124,6 +1124,9 @@ class TicketController extends BaseController
|
||||
// dd($data['ticket_data']);
|
||||
$data['ticket_type'] = $this->ticketType;
|
||||
$data['trigger_type'] = $this->triggerType;
|
||||
|
||||
$data['page_name'] = "Claims";
|
||||
|
||||
return $this->loadLayout('ticket_mail_template', $data);
|
||||
}
|
||||
|
||||
@ -2190,6 +2193,8 @@ class TicketController extends BaseController
|
||||
|
||||
|
||||
$data['viewer'] = !empty($empView) ? $empView : 0;
|
||||
|
||||
|
||||
// dd($data);
|
||||
return view('ticket_feedback_form', $data);
|
||||
}else{
|
||||
@ -2220,7 +2225,7 @@ class TicketController extends BaseController
|
||||
public function feedbackList(){
|
||||
|
||||
$data['feedback_data'] = $this->ticketMasterModel->select("ticket_master.*,clients.client_name")->join("clients","clients.id = ticket_master.client_id")->where("ticket_master.is_active",1)->where("ticket_master.feedback_json IS NOT NULL", null, false)->where("ticket_master.feedback_json !=", "")->findAll();
|
||||
|
||||
$data['page_name'] = "Claims";
|
||||
// dd($data);
|
||||
$this->loadLayout("ticket_feedback_list",$data);
|
||||
}
|
||||
|
||||
@ -210,7 +210,7 @@
|
||||
$(document).ready(function() {
|
||||
|
||||
$('#datatable-buttons').DataTable({
|
||||
dom: "<'row'<'col-sm-0'f><'col-sm-9 text-right'B>>" +
|
||||
dom: "<'d-flex justify-content-between align-items-center'<'datatable-search'f><'datatable-buttons'B>>" +
|
||||
"<'row'<'col-sm-12'tr>>" +
|
||||
"<'row'<'col-sm-5'i><'col-sm-7'p>>",
|
||||
buttons: [{
|
||||
|
||||
@ -64,7 +64,7 @@
|
||||
<div class="card-body">
|
||||
<div class="row" style="padding-bottom: 10px;">
|
||||
<div class="col-6" style="align-self: center;">
|
||||
<h2 style="position: relative;">Claim Dump Upload</h2>
|
||||
<h4 style="position: relative;">Claim Dump Upload</h4>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
@ -7,10 +7,6 @@
|
||||
padding: 4px 4px !important;
|
||||
}
|
||||
|
||||
.col-12 {
|
||||
max-width: 98% !important;
|
||||
}
|
||||
|
||||
.dataTables_filter {
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
@ -7,9 +7,6 @@
|
||||
padding: 4px 4px !important;
|
||||
}
|
||||
|
||||
.col-12 {
|
||||
max-width: 98% !important;
|
||||
}
|
||||
|
||||
.dataTables_filter {
|
||||
position: absolute;
|
||||
@ -33,7 +30,8 @@
|
||||
<thead class="bg-light">
|
||||
<tr>
|
||||
<th style="text-align: center;" colspan="8">OPEN</th>
|
||||
<th style="text-align: center;" colspan="5" >CLEARED</th>
|
||||
|
||||
<th style="text-align: center;" colspan="7" >CLEARED</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<?php foreach ($column_order as $col_name): ?>
|
||||
|
||||
@ -70,7 +70,7 @@
|
||||
$(document).ready(function() {
|
||||
|
||||
$('#tickets-table').DataTable({
|
||||
dom: "<'row'<'col-sm-0'f><'col-sm-9 text-right'B>>",
|
||||
dom: "<'d-flex justify-content-between align-items-center'<'datatable-search'f><'datatable-buttons'B>>",
|
||||
buttons: [{
|
||||
extend: 'csv',
|
||||
text: 'CSV',
|
||||
|
||||
@ -166,7 +166,8 @@ table.dataTable thead th {
|
||||
</div>
|
||||
</div><!-- /.modal-content -->
|
||||
</div>
|
||||
</div><!-- /.modal -->
|
||||
</div>
|
||||
<!-- /.modal -->
|
||||
|
||||
<script>
|
||||
document.addEventListener("DOMContentLoaded", function () {
|
||||
@ -296,9 +297,10 @@ table.dataTable thead th {
|
||||
$(document).ready(function()
|
||||
{
|
||||
$('#tickets-table').DataTable({
|
||||
dom: "<'row'<'col-sm-2'f><'col-sm-10 text-right'B>>" +
|
||||
dom: "<'d-flex justify-content-between align-items-center'<'datatable-search'f><'datatable-buttons'B>>" +
|
||||
"<'row'<'col-sm-12'tr>>" +
|
||||
"<'row'<'col-sm-5'i><'col-sm-7'p>>",
|
||||
|
||||
buttons: [
|
||||
|
||||
{
|
||||
|
||||
@ -47,10 +47,6 @@ body {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.container-fluid {
|
||||
padding: 12px;
|
||||
}
|
||||
|
||||
.user-card {
|
||||
background: white;
|
||||
border-radius: 8px;
|
||||
|
||||
@ -11,12 +11,13 @@ option:disabled {
|
||||
<div class="col-xl-12">
|
||||
<div id="accordion1" class="mb-3">
|
||||
<div class="card mb-1">
|
||||
<h5 class="m-1">
|
||||
<h4 class="m-1">
|
||||
<span>Filters</span>
|
||||
<a id="toggleIcon1" class="text-dark float-right" data-toggle="collapse" href="#collapseTwo"
|
||||
aria-expanded="true">
|
||||
<i id="icon1" class="mdi mdi-chevron-down mr-1 text-primary" style="font-size: 28px;"></i>
|
||||
</a>
|
||||
</h5>
|
||||
</h4>
|
||||
<div id="collapseTwo" class="collapse show" aria-labelledby="headingOne" data-parent="#accordion1">
|
||||
<div class="card-body">
|
||||
<!-- <div class="text-center"> -->
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="container-fluid">
|
||||
<div class="container-fluid-min">
|
||||
<h2>Endorsement</h2>
|
||||
<div class="row">
|
||||
<div class="col-xl-12">
|
||||
@ -590,7 +590,7 @@
|
||||
$(document).ready(function() {
|
||||
|
||||
$('#tickets-table').DataTable({
|
||||
dom: "<'row'<'col-sm-0'f><'col-sm-9 text-right'B>>" +
|
||||
dom: "<'d-flex justify-content-between align-items-center'<'datatable-search'f><'datatable-buttons'B>>" +
|
||||
"<'row'<'col-sm-12'tr>>" +
|
||||
"<'row'<'col-sm-5'i><'col-sm-7'p>>",
|
||||
buttons: [{
|
||||
|
||||
@ -98,7 +98,7 @@
|
||||
</style>
|
||||
|
||||
|
||||
<div class="container-fluid">
|
||||
<div class="container-fluid-min">
|
||||
<h2>Enrollment</h2>
|
||||
<div class="row visa_status_count_view">
|
||||
<div class="col-12">
|
||||
|
||||
@ -461,7 +461,7 @@ $('body').on('click', '.reload', function() {
|
||||
$(document).ready(function() {
|
||||
|
||||
$('#tickets-table').DataTable({
|
||||
dom: "<'row'<'col-sm-0'f><'col-sm-9 text-right'B>>" +
|
||||
dom: "<'d-flex justify-content-between align-items-center'<'datatable-search'f><'datatable-buttons'B>>" +
|
||||
"<'row'<'col-sm-12'tr>>" +
|
||||
"<'row'<'col-sm-5'i><'col-sm-7'p>>",
|
||||
"buttons": [{
|
||||
|
||||
@ -61,7 +61,7 @@
|
||||
</style>
|
||||
|
||||
|
||||
<div class="container-fluid">
|
||||
<div class="container-fluid-min">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
|
||||
|
||||
@ -10,11 +10,12 @@
|
||||
<div class="col-xl-12">
|
||||
<div id="accordion" class="mb-3">
|
||||
<div class="card mb-1">
|
||||
<h5 class="m-1">
|
||||
<h4 class="m-1">
|
||||
<span>Filters</span>
|
||||
<a id="toggleIcon" class="text-dark float-right" data-toggle="collapse" href="#collapseOne" aria-expanded="true">
|
||||
<i id="icon" class="mdi mdi-chevron-down mr-1 text-primary" style="font-size: 28px;"></i>
|
||||
</a>
|
||||
</h5>
|
||||
</h4>
|
||||
<div id="collapseOne" class="collapse show" aria-labelledby="headingOne" data-parent="#accordion">
|
||||
<div class="card-body">
|
||||
<!-- <div class="text-center"> -->
|
||||
@ -341,7 +342,7 @@
|
||||
// for datatable
|
||||
$(document).ready(function() {
|
||||
$('#hr_tickets_table').DataTable({
|
||||
dom: "<'row'<'col-sm-0'f><'col-sm-9 text-right'B>>" +
|
||||
dom: "<'d-flex justify-content-between align-items-center'<'datatable-search'f><'datatable-buttons'B>>" +
|
||||
"<'row'<'col-sm-12'tr>>" +
|
||||
"<'row'<'col-sm-5'i><'col-sm-7'p>>",
|
||||
"buttons": [{
|
||||
|
||||
@ -58,8 +58,6 @@
|
||||
|
||||
<div class="col-12">
|
||||
<div class="card-body">
|
||||
<h3>Inception</h3>
|
||||
<br>
|
||||
<ul class="nav nav-pills navtab-bg">
|
||||
<li class="nav-item d-flex justify-content-center align-items-center">
|
||||
<a href="#general-q-tab" data-toggle="tab" aria-expanded="false" class="nav-link px-3 py-1 active-tab" id="general_tab">
|
||||
|
||||
@ -1,5 +1,4 @@
|
||||
<style>
|
||||
|
||||
.custom-dropdown-menu {
|
||||
display: none;
|
||||
position: absolute;
|
||||
@ -38,8 +37,9 @@
|
||||
color: white;
|
||||
border: 1px solid rgba(41, 139, 142, 1);
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
<div class="container-fluid-min">
|
||||
<div class="row" id="insurer_list">
|
||||
<div class="col-12">
|
||||
<div class="card">
|
||||
@ -60,7 +60,8 @@
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<?php if(is_array($insurerList)) {foreach($insurerList as $row){ ?>
|
||||
<?php if (is_array($insurerList)) {
|
||||
foreach ($insurerList as $row) { ?>
|
||||
<tr>
|
||||
<td><?php echo $row['name']; ?> ( <?php echo $row['short_name']; ?> ) </td>
|
||||
<td><?php echo $row['type']; ?></td>
|
||||
@ -74,7 +75,8 @@
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<?php }}?>
|
||||
<?php }
|
||||
} ?>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
@ -82,10 +84,11 @@
|
||||
</div>
|
||||
</div><!-- end col -->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- end row -->
|
||||
|
||||
<script>
|
||||
|
||||
document.addEventListener("DOMContentLoaded", function() {
|
||||
const table = document.getElementById("tickets-table");
|
||||
|
||||
@ -173,19 +176,16 @@ document.addEventListener("DOMContentLoaded", function () {
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
<script>
|
||||
|
||||
$(document).ready(function() {
|
||||
|
||||
$('#tickets-table').DataTable({
|
||||
dom: "<'row'<'col-sm-0'f><'col-sm-9 text-right'B>>" +
|
||||
dom: "<'d-flex justify-content-between align-items-center'<'datatable-search'f><'datatable-buttons'B>>" +
|
||||
"<'row'<'col-sm-12'tr>>" +
|
||||
"<'row'<'col-sm-5'i><'col-sm-7'p>>",
|
||||
buttons: [
|
||||
{
|
||||
buttons: [{
|
||||
extend: 'csv',
|
||||
text: 'CSV',
|
||||
title: 'InsurerList',
|
||||
@ -218,7 +218,9 @@ const tableElement = document.querySelector("#tickets-table");
|
||||
btnExport.addEventListener("click", () => {
|
||||
const obj = new csvExport(tableElement);
|
||||
const csvData = obj.exportCsv();
|
||||
const blob = new Blob([csvData], { type: "text/csv" });
|
||||
const blob = new Blob([csvData], {
|
||||
type: "text/csv"
|
||||
});
|
||||
const url = URL.createObjectURL(blob);
|
||||
const a = document.createElement("a");
|
||||
a.href = url;
|
||||
@ -315,6 +317,4 @@ class csvExport {
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
@ -10,11 +10,12 @@
|
||||
<div class="col-xl-12">
|
||||
<div id="accordion" class="mb-3">
|
||||
<div class="card mb-1">
|
||||
<h5 class="m-1">
|
||||
<h4 class="m-1">
|
||||
<span>Filters</span>
|
||||
<a id="toggleIcon" class="text-dark float-right" data-toggle="collapse" href="#collapseOne" aria-expanded="true">
|
||||
<i id="icon" class="mdi mdi-chevron-down mr-1 text-primary" style="font-size: 28px;"></i>
|
||||
</a>
|
||||
</h5>
|
||||
</h4>
|
||||
<div id="collapseOne" class="collapse show" aria-labelledby="headingOne" data-parent="#accordion">
|
||||
<div class="card-body">
|
||||
<!-- <div class="text-center"> -->
|
||||
|
||||
@ -12,10 +12,7 @@ table.dataTable tbody td {
|
||||
padding: 4px 4px !important;
|
||||
} */
|
||||
|
||||
.col-12 {
|
||||
|
||||
max-width: 98% !important;
|
||||
}
|
||||
|
||||
.dataTables_filter {
|
||||
position: absolute;
|
||||
@ -27,7 +24,8 @@ table.dataTable tbody td {
|
||||
}
|
||||
|
||||
.column-header {
|
||||
margin-right: 10px; /* Adjust this value as needed */
|
||||
margin-right: 10px;
|
||||
/* Adjust this value as needed */
|
||||
}
|
||||
|
||||
.form-section {
|
||||
@ -166,8 +164,8 @@ table.dataTable tbody td {
|
||||
margin-left: 5px;
|
||||
border-radius: 6px;
|
||||
}
|
||||
|
||||
</style>
|
||||
<div class="container-fluid-min">
|
||||
<div class="row" id="inception_list">
|
||||
<div class="col-12">
|
||||
<div class="card">
|
||||
@ -204,22 +202,41 @@ table.dataTable tbody td {
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div><div class="dataTables_length d-flex align-items-center">
|
||||
</div>
|
||||
<div class="dataTables_length d-flex align-items-center">
|
||||
</div>
|
||||
<div>
|
||||
<table data-custom-table-css="table" class="table table-striped mb-0 nowrap" cellspacing="0" id="tickets-table">
|
||||
<thead class="bg-light">
|
||||
<tr>
|
||||
<th></th>
|
||||
<th><div class="column-header">Insurer</div></th>
|
||||
<th><div class="column-header">Month</div></th>
|
||||
<th><div class="column-header">Statement<br>sno</div></th>
|
||||
<th><div class="column-header">Filename</div></th>
|
||||
<th><div class="column-header">Line<br>items</div></th>
|
||||
<th><div class="column-header">File<br>status</div></th>
|
||||
<th><div class="column-header">Invoice<br>status</div></th>
|
||||
<th><div class="column-header">User/Time</div></th>
|
||||
<th><div class="column-header">Action</div></th>
|
||||
<th>
|
||||
<div class="column-header">Insurer</div>
|
||||
</th>
|
||||
<th>
|
||||
<div class="column-header">Month</div>
|
||||
</th>
|
||||
<th>
|
||||
<div class="column-header">Statement<br>sno</div>
|
||||
</th>
|
||||
<th>
|
||||
<div class="column-header">Filename</div>
|
||||
</th>
|
||||
<th>
|
||||
<div class="column-header">Line<br>items</div>
|
||||
</th>
|
||||
<th>
|
||||
<div class="column-header">File<br>status</div>
|
||||
</th>
|
||||
<th>
|
||||
<div class="column-header">Invoice<br>status</div>
|
||||
</th>
|
||||
<th>
|
||||
<div class="column-header">User/Time</div>
|
||||
</th>
|
||||
<th>
|
||||
<div class="column-header">Action</div>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
@ -233,8 +250,7 @@ table.dataTable tbody td {
|
||||
<td><?php echo $row['file_name'] ?> </td>
|
||||
<td><?php echo $row['line_items'] ?></td>
|
||||
<td><?php echo $row['file_status'];
|
||||
if($row['file_status'] == 'failed')
|
||||
{
|
||||
if ($row['file_status'] == 'failed') {
|
||||
echo " <span class='col-xl-3 col-lg-4 col-sm-6'> <i class='fe-alert-circle' data-toggle='modal' data-target='#file-err-modal' data-err=" . $row['id'] . "></i></span>";
|
||||
}
|
||||
?>
|
||||
@ -279,6 +295,8 @@ table.dataTable tbody td {
|
||||
</div>
|
||||
</div><!-- end col -->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- end table row -->
|
||||
|
||||
<div class="modal fade" id="file_upload" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
|
||||
@ -540,7 +558,6 @@ table.dataTable tbody td {
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
|
||||
document.addEventListener("DOMContentLoaded", function() {
|
||||
const table = document.getElementById("tickets-table");
|
||||
|
||||
@ -619,7 +636,6 @@ document.addEventListener("DOMContentLoaded", function () {
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
<script>
|
||||
@ -671,8 +687,7 @@ document.addEventListener("DOMContentLoaded", function () {
|
||||
switchRequired('gst_amount', true, 'name');
|
||||
switchRequired('payment_date', true, 'name');
|
||||
switchRequired('pk', true, 'name');
|
||||
}else if(invoiceStatus === 'pending')
|
||||
{
|
||||
} else if (invoiceStatus === 'pending') {
|
||||
invoiceNoDiv.style.display = 'none';
|
||||
invoiceNoDiv2.style.display = 'none';
|
||||
paymentTableDiv.style.display = 'none';
|
||||
@ -716,23 +731,20 @@ document.addEventListener("DOMContentLoaded", function () {
|
||||
e.preventDefault(); // Prevent default form submission
|
||||
|
||||
var res = checkInvAmont();
|
||||
if(!res)
|
||||
{
|
||||
if (!res) {
|
||||
return false;
|
||||
}
|
||||
|
||||
var form = document.getElementById('invoiceForm');
|
||||
// alert(form.checkValidity());
|
||||
// alert($('#invoice_date_modal').val());
|
||||
if((!form.checkValidity()))
|
||||
{
|
||||
if ((!form.checkValidity())) {
|
||||
console.log('error2');
|
||||
console.log(form.checkValidity());
|
||||
return false;
|
||||
}
|
||||
|
||||
if($('#invoice_date_modal').val().trim() === '' && $('#invoice_status').val() != 'pending')
|
||||
{
|
||||
if ($('#invoice_date_modal').val().trim() === '' && $('#invoice_status').val() != 'pending') {
|
||||
// console.log('error1');
|
||||
return false;
|
||||
}
|
||||
@ -925,17 +937,10 @@ document.getElementById('payment_card_container').addEventListener('click', func
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
<script>
|
||||
|
||||
function showFileUploadModal(input)
|
||||
{
|
||||
function showFileUploadModal(input) {
|
||||
var myModal = new bootstrap.Modal(document.getElementById('file_upload'));
|
||||
myModal.show();
|
||||
// $(input).val('');
|
||||
@ -947,13 +952,14 @@ function formatDate(date) {
|
||||
var year = date.getFullYear();
|
||||
return day + "/" + month + "/" + year;
|
||||
}
|
||||
|
||||
function formatDateToDMY(dateStr) {
|
||||
// Split the date string by the hyphen
|
||||
var parts = dateStr.split('-');
|
||||
return parts[2] + '/' + parts[1] + '/' + parts[0]; // Rearrange to DD-MM-YYYY
|
||||
}
|
||||
function showInvoiceStatusModal(event)
|
||||
{
|
||||
|
||||
function showInvoiceStatusModal(event) {
|
||||
console.log('############ showInvoiceStatusModal function called ##################');
|
||||
var modal_received_amt_div = document.getElementById('modal_received_amt_div');
|
||||
modal_received_amt_div.style.display = 'none';
|
||||
@ -982,8 +988,7 @@ function showInvoiceStatusModal(event)
|
||||
// Assuming response contains the necessary data
|
||||
if (response.dataStatus === true && response.code === 200) {
|
||||
// Populate modal fields
|
||||
if(response.data.invoice_status !== null)
|
||||
{
|
||||
if (response.data.invoice_status !== null) {
|
||||
var inv_status_element = document.getElementById('invoice_status');
|
||||
inv_status_element.value = response.data.invoice_status;
|
||||
var event = new Event('change');
|
||||
@ -998,8 +1003,7 @@ function showInvoiceStatusModal(event)
|
||||
document.getElementById('gst_per_modal').value = response.data.gst_per;
|
||||
document.getElementById('gst_value_modal').value = response.data.gst_value;
|
||||
console.log('response.data.gst_value - ' + response.data.gst_value);
|
||||
if(response.data.gst_value == 0 || response.data.gst_value == '' || response.data.gst_value == null)
|
||||
{
|
||||
if (response.data.gst_value == 0 || response.data.gst_value == '' || response.data.gst_value == null) {
|
||||
calcGSTValue();
|
||||
}
|
||||
|
||||
@ -1013,8 +1017,7 @@ function showInvoiceStatusModal(event)
|
||||
|
||||
console.log('response.data.payments.length', response.data.payments.length)
|
||||
// Populate payment table rows
|
||||
if(response.data.payments.length)
|
||||
{
|
||||
if (response.data.payments.length) {
|
||||
paymentTableBody.innerHTML = '';
|
||||
response.data.payments.forEach(function(payment) {
|
||||
var row = paymentTableBody.insertRow();
|
||||
@ -1029,7 +1032,10 @@ function showInvoiceStatusModal(event)
|
||||
`;
|
||||
});
|
||||
}
|
||||
$('.payment_date').datepicker({ format: 'dd/mm/yyyy',autoclose: true});
|
||||
$('.payment_date').datepicker({
|
||||
format: 'dd/mm/yyyy',
|
||||
autoclose: true
|
||||
});
|
||||
// Show the modal
|
||||
var myModal = new bootstrap.Modal(document.getElementById('invoice_modal'));
|
||||
myModal.show();
|
||||
@ -1237,8 +1243,7 @@ function checkInvAmont(event = null) {
|
||||
// Check if the total exceeds the expected amount
|
||||
if (exp_amt < total) {
|
||||
alert('Exceeds Invoice amount...Plz adjust numbers');
|
||||
if(event != null)
|
||||
{
|
||||
if (event != null) {
|
||||
event.target.value = '';
|
||||
|
||||
}
|
||||
@ -1259,8 +1264,7 @@ function switchRequired(elementId, isRequired, type = 'id') {
|
||||
} else {
|
||||
element.removeAttribute('required');
|
||||
}
|
||||
}
|
||||
else //name attribute
|
||||
} else //name attribute
|
||||
{
|
||||
var name_attribute = elementId + '[]';
|
||||
// Select all elements with the name 'invoice_amt[]'
|
||||
@ -1277,14 +1281,12 @@ function switchRequired(elementId, isRequired, type = 'id') {
|
||||
}
|
||||
}
|
||||
|
||||
function getStatementNo()
|
||||
{
|
||||
function getStatementNo() {
|
||||
var insurer_id = $('#insurer').val();
|
||||
var statement_month = $('#statement_month').val();
|
||||
|
||||
console.log(insurer_id + ' / ' + statement_month);
|
||||
if(insurer_id == "")
|
||||
{
|
||||
if (insurer_id == "") {
|
||||
alert('Choose insurer...!');
|
||||
$('#statement_month').val('');
|
||||
}
|
||||
@ -1346,14 +1348,12 @@ function getStatementNo()
|
||||
|
||||
}
|
||||
|
||||
function calcGSTValue()
|
||||
{
|
||||
function calcGSTValue() {
|
||||
// alert('calcGSTValue');
|
||||
console.log('calcGSTValue called');
|
||||
var inv_status_element = document.getElementById('invoice_status');
|
||||
|
||||
if(inv_status_element.value == 'generated' || inv_status_element.value == 'send' || inv_status_element.value == 'payment_received')
|
||||
{
|
||||
if (inv_status_element.value == 'generated' || inv_status_element.value == 'send' || inv_status_element.value == 'payment_received') {
|
||||
|
||||
var gst_per = document.getElementById('gst_per_modal').value;
|
||||
console.log('gst_per - ' + gst_per);
|
||||
@ -1372,8 +1372,7 @@ function calcGSTValue()
|
||||
gst_value_dom_obj.value = Math.round((parseFloat(gst_per) / 100) * invoice_value);
|
||||
// gst_value_dom_obj.value = ((parseFloat(gst_per) / 100 ) * invoice_value);
|
||||
invoice_amount_dom_obj.value = parseFloat(invoice_value_dom_obj.value) + parseFloat(gst_value_dom_obj.value);
|
||||
if(inv_status_element.value == 'payment_received')
|
||||
{
|
||||
if (inv_status_element.value == 'payment_received') {
|
||||
checkInvAmont();
|
||||
}
|
||||
}
|
||||
@ -1381,8 +1380,7 @@ function calcGSTValue()
|
||||
|
||||
}
|
||||
|
||||
function disableStatementNo(arr)
|
||||
{
|
||||
function disableStatementNo(arr) {
|
||||
// JavaScript array with values to disable
|
||||
// const disableValues = arr;
|
||||
const disableIds = arr.map(item => item.stmt_sno);
|
||||
@ -1401,8 +1399,7 @@ function disableStatementNo(arr)
|
||||
if (disableIds.includes((option.value))) {
|
||||
option.disabled = true;
|
||||
option.style.backgroundColor = "lightgray";
|
||||
}
|
||||
else if (!firstEnabledOptionSelected && option.value !== "") {
|
||||
} else if (!firstEnabledOptionSelected && option.value !== "") {
|
||||
// Automatically select the first enabled option
|
||||
option.selected = true;
|
||||
firstEnabledOptionSelected = true;
|
||||
@ -1410,8 +1407,7 @@ function disableStatementNo(arr)
|
||||
});
|
||||
}
|
||||
|
||||
function deleteStatement(id)
|
||||
{
|
||||
function deleteStatement(id) {
|
||||
//alert(id);
|
||||
Swal.fire({
|
||||
title: "Do you want to delete statement & it's invoice data if any?",
|
||||
@ -1575,8 +1571,6 @@ function deleteStatement(id)
|
||||
// stateSave: true, // Saves the table's state
|
||||
// });
|
||||
// });
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
<script>
|
||||
|
||||
@ -2,10 +2,11 @@
|
||||
<h4 class="ml-1 mb-3"> <span class="font-color-black">IRBA</span> </h4>
|
||||
</div>
|
||||
|
||||
<div class="container-fluid-min">
|
||||
<div class="col-xl-12" id="outstanding_filter">
|
||||
<div id="accordion" class="mb-3">
|
||||
<label id="filterAccordion" class="m-1 d-flex justify-content-between align-items-center">
|
||||
<span class="font-color-black">Filters</span>
|
||||
<h4>Filters</h4>
|
||||
<a id="toggleIcon" class="text-dark float-right" data-toggle="collapse" href="#collapseOne"
|
||||
aria-expanded="true">
|
||||
<i id="icon" class="mdi mdi-chevron-up mr-1 text-primary" style="font-size: 28px;"></i>
|
||||
@ -63,6 +64,10 @@
|
||||
</div>
|
||||
</div>
|
||||
<div id="report"></div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<script>
|
||||
$(function() {
|
||||
|
||||
@ -81,7 +86,9 @@
|
||||
$('#reportrange').daterangepicker({
|
||||
startDate: start,
|
||||
endDate: end,
|
||||
locale: { format: 'DD-MM-YYYY' },
|
||||
locale: {
|
||||
format: 'DD-MM-YYYY'
|
||||
},
|
||||
ranges: {
|
||||
'Today': [moment(), moment()],
|
||||
'Yesterday': [moment().subtract(1, 'days'), moment().subtract(1, 'days')],
|
||||
|
||||
@ -175,7 +175,7 @@
|
||||
$(document).ready(function(){
|
||||
|
||||
$('#tickets-table').DataTable({
|
||||
dom: "<'row'<'col-sm-0'f><'col-sm-9 text-right'B>>" +
|
||||
dom: "<'d-flex justify-content-between align-items-center'<'datatable-search'f><'datatable-buttons'B>>" +
|
||||
"<'row'<'col-sm-12'tr>>" +
|
||||
"<'row'<'col-sm-5'i><'col-sm-7'p>>" ,
|
||||
buttons: [
|
||||
|
||||
@ -129,6 +129,10 @@
|
||||
}
|
||||
|
||||
.container-fluid {
|
||||
padding: 0px 20px 0px 20px !important;
|
||||
}
|
||||
|
||||
.container-fluid-top {
|
||||
padding: 0px 40px 0px 40px !important;
|
||||
}
|
||||
|
||||
@ -1544,6 +1548,13 @@
|
||||
pointer-events: none; /* prevents blocking typing */
|
||||
}
|
||||
|
||||
.datatable-search {
|
||||
margin-right: auto;
|
||||
}
|
||||
.datatable-buttons {
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
|
||||
</style>
|
||||
|
||||
@ -1992,4 +2003,4 @@
|
||||
<div class="content">
|
||||
|
||||
<!-- Start Content-->
|
||||
<div class="container-fluid">
|
||||
<div class="container-fluid-top">
|
||||
@ -4,7 +4,7 @@
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
<div class="container-fluid-min">
|
||||
<div class="row" id="lead_filter_div">
|
||||
<div class="col-12" style="margin-top: -12px;">
|
||||
<div id="accordion" class="mb-3">
|
||||
@ -12,7 +12,7 @@
|
||||
<h5 class="m-1">
|
||||
<div class="row">
|
||||
<div class="col-md-6" style="position: relative;left: 17px;">
|
||||
<h4 style="text-align: left; margin-left:10px;">Filter</h4>
|
||||
<h4 style="text-align: left;">Filter</h4>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<a style="text-align: right;" id="toggleIcon" class="text-dark float-right"
|
||||
@ -138,6 +138,8 @@
|
||||
<div id="lead_list_div">
|
||||
<?php include('leads_list.php'); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<script>
|
||||
@ -366,5 +368,4 @@ function additionalDropdown() {
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
</script>
|
||||
@ -62,7 +62,8 @@
|
||||
border-radius: 6px;
|
||||
position: absolute;
|
||||
z-index: 999;
|
||||
bottom: 125%; /* Show above icon */
|
||||
bottom: 125%;
|
||||
/* Show above icon */
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
font-size: 12px;
|
||||
@ -73,7 +74,8 @@
|
||||
.info-tooltip::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 100%; /* Arrow below tooltip */
|
||||
top: 100%;
|
||||
/* Arrow below tooltip */
|
||||
left: 50%;
|
||||
margin-left: -5px;
|
||||
border-width: 5px;
|
||||
@ -86,18 +88,22 @@
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
/* dont forgot it keep it safe card and card body space remover */ /* bcoz in design */
|
||||
.card-body{ margin-top: 0px !important; }
|
||||
/* dont forgot it keep it safe card and card body space remover */
|
||||
/* bcoz in design */
|
||||
.card-body {
|
||||
margin-top: 0px !important;
|
||||
}
|
||||
|
||||
/* this css as per design so not declare in golbal */ /* bcoz in design */
|
||||
/* this css as per design so not declare in golbal */
|
||||
/* bcoz in design */
|
||||
#collapseOne {
|
||||
border: 1px solid #BFF3F5 !important;
|
||||
border-radius: 10px !important;
|
||||
border-width: 1px !important;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
<div class="container-fluid-min">
|
||||
<div class="row" id="leads_form">
|
||||
<div class="col-12">
|
||||
<div class="card">
|
||||
@ -414,6 +420,9 @@
|
||||
</div><!-- end form row -->
|
||||
|
||||
<?php include("newClientModal.php") ?>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<script>
|
||||
@ -1531,9 +1540,9 @@
|
||||
let premium_as_on_date = Number($('#premium_date').val()) || 0;
|
||||
console.log('Premium as on Date:', premium_as_on_date);
|
||||
|
||||
let incurred_claim_ratio = (incurred_claims > 0 && premium_as_on_date > 0)
|
||||
? (incurred_claims / premium_as_on_date) * 100
|
||||
: 0;
|
||||
let incurred_claim_ratio = (incurred_claims > 0 && premium_as_on_date > 0) ?
|
||||
(incurred_claims / premium_as_on_date) * 100 :
|
||||
0;
|
||||
let incurred_claim_ratio_roundoff = isFinite(incurred_claim_ratio) ? incurred_claim_ratio.toFixed(2) : 0;
|
||||
console.log('Incurred Claim Ratio:', incurred_claim_ratio);
|
||||
console.log('Incurred Claim Ratio (Rounded):', incurred_claim_ratio_roundoff);
|
||||
@ -2202,6 +2211,4 @@
|
||||
|
||||
|
||||
//-----------------------------------------------------------------------------------------------------------
|
||||
|
||||
|
||||
</script>
|
||||
@ -8,10 +8,7 @@ table.dataTable tbody td {
|
||||
padding: 4px 4px !important;
|
||||
}
|
||||
|
||||
.col-12 {
|
||||
|
||||
max-width: 98% !important;
|
||||
}
|
||||
|
||||
.dataTables_filter {
|
||||
position: absolute;
|
||||
@ -26,14 +23,11 @@ table.dataTable tbody td {
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="col-12">
|
||||
<h4 class="ml-1 mb-3"> <span class="font-color-black">Outstanding</span> </h4>
|
||||
</div>
|
||||
|
||||
<div class="container-fluid-min">
|
||||
<div class="col-12" id="outstanding_filter">
|
||||
<div id="accordion" class="mb-3">
|
||||
<label id="filterAccordion" class="m-1 d-flex justify-content-between align-items-center">
|
||||
<span class="font-color-black">Filters</span>
|
||||
<h4>Filters</h4>
|
||||
<a id="toggleIcon" class="text-dark float-right" data-toggle="collapse" href="#collapseOne"
|
||||
aria-expanded="true">
|
||||
<i id="icon" class="mdi mdi-chevron-up mr-1 text-primary" style="font-size: 28px;"></i>
|
||||
@ -223,6 +217,8 @@ table.dataTable tbody td {
|
||||
</div><!-- end col -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
@ -255,8 +251,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-7'p>>", // Pagination at the bottom, without page length selector
|
||||
buttons: [
|
||||
{
|
||||
buttons: [{
|
||||
extend: 'collection',
|
||||
text: '<span class=" btn-custom"> Export </span><i class="mdi mdi-menu-down"></i>',
|
||||
className: 'btn app-btn-secondary ',
|
||||
@ -298,8 +293,7 @@ $(document).ready(function() {
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
}],
|
||||
language: {
|
||||
search: "_INPUT_",
|
||||
searchPlaceholder: "Search..."
|
||||
|
||||
@ -7,22 +7,21 @@
|
||||
table.dataTable tbody td {
|
||||
padding: 4px 4px !important;
|
||||
}
|
||||
|
||||
/*
|
||||
table.dataTable thead th {
|
||||
padding: 4px 4px !important;
|
||||
} */
|
||||
|
||||
.col-12 {
|
||||
|
||||
max-width: 98% !important;
|
||||
}
|
||||
|
||||
.dataTables_filter {
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
.column-header {
|
||||
margin-right: 10px; /* Adjust this value as needed */
|
||||
margin-right: 10px;
|
||||
/* Adjust this value as needed */
|
||||
}
|
||||
|
||||
.form-section {
|
||||
@ -36,6 +35,7 @@ table.dataTable thead th {
|
||||
padding: 10px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
custom-dropdown-menu {
|
||||
display: none;
|
||||
position: fixed;
|
||||
@ -102,7 +102,6 @@ custom-dropdown-menu {
|
||||
z-index: -2;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
<style>
|
||||
@ -167,7 +166,7 @@ custom-dropdown-menu {
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
<div class="container-fluid-min">
|
||||
<div class="col-12" id="endorsement_filter">
|
||||
<div id="accordion" class="mb-3">
|
||||
|
||||
@ -355,6 +354,8 @@ custom-dropdown-menu {
|
||||
</div><!-- card-body -->
|
||||
</div><!-- card -->
|
||||
</div><!-- end col -->
|
||||
</div>
|
||||
|
||||
|
||||
<!-- end table row -->
|
||||
|
||||
@ -439,10 +440,8 @@ document.addEventListener("DOMContentLoaded", function () {
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
<script>
|
||||
|
||||
var client_list = '';
|
||||
var branch_list = '';
|
||||
var policy_list = <?= json_encode($endorsementPolicies) ?>;
|
||||
@ -489,8 +488,7 @@ document.addEventListener("DOMContentLoaded", function () {
|
||||
dom: "<'row'<'col-sm-6'f><'col-sm-5 text-right'B>>" + // Filter left, buttons right
|
||||
"<'row'<'col-sm-12'tr>>" +
|
||||
"<'row'<'col-sm-5'i><'col-sm-7'p>>", // Pagination at the bottom, without page length selector
|
||||
buttons: [
|
||||
{
|
||||
buttons: [{
|
||||
extend: 'collection',
|
||||
text: '<span class=" btn-custom"> Export </span><i class="mdi mdi-menu-down"></i>',
|
||||
className: 'btn app-btn-secondary ',
|
||||
@ -577,8 +575,7 @@ document.addEventListener("DOMContentLoaded", function () {
|
||||
|
||||
});
|
||||
|
||||
function hide_list_show_add()
|
||||
{
|
||||
function hide_list_show_add() {
|
||||
removeAllColumnsExceptFirst('insurerTable');
|
||||
$('.hideter').hide()
|
||||
$('.hidetp').hide()
|
||||
@ -592,16 +589,14 @@ document.addEventListener("DOMContentLoaded", function () {
|
||||
$('#invoice_no').attr('required', false)
|
||||
}
|
||||
|
||||
function show_list_hide_add()
|
||||
{
|
||||
function show_list_hide_add() {
|
||||
$('#endorsement_form').hide()
|
||||
$('#endorsement_list').show()
|
||||
$('#endorsement_filter').show()
|
||||
|
||||
}
|
||||
|
||||
function getClientAndBranchAndPolicy()
|
||||
{
|
||||
function getClientAndBranchAndPolicy() {
|
||||
$.ajax({
|
||||
url: '<?= base_url("/util/getClientAndBranchAndPolicy") ?>',
|
||||
type: "GET",
|
||||
@ -629,8 +624,7 @@ document.addEventListener("DOMContentLoaded", function () {
|
||||
});
|
||||
}
|
||||
|
||||
function appendClients(data)
|
||||
{
|
||||
function appendClients(data) {
|
||||
$('#client_id').empty();
|
||||
|
||||
$('#client_id').append($('<option>', {
|
||||
@ -657,8 +651,7 @@ document.addEventListener("DOMContentLoaded", function () {
|
||||
});
|
||||
}
|
||||
|
||||
function appendBranch(data)
|
||||
{
|
||||
function appendBranch(data) {
|
||||
|
||||
$('#client_branch_id').empty();
|
||||
|
||||
@ -677,8 +670,7 @@ document.addEventListener("DOMContentLoaded", function () {
|
||||
});
|
||||
}
|
||||
|
||||
function appendPolicies(data)
|
||||
{
|
||||
function appendPolicies(data) {
|
||||
if (!data) {
|
||||
|
||||
toastr.warning("There are no policies in Inception for the selected client and branch.");
|
||||
@ -713,8 +705,7 @@ document.addEventListener("DOMContentLoaded", function () {
|
||||
});
|
||||
}
|
||||
|
||||
function logSelectedIds()
|
||||
{
|
||||
function logSelectedIds() {
|
||||
var selectedIds = [];
|
||||
$('.row-select:checked').each(function() {
|
||||
selectedIds.push($(this).data('id'));
|
||||
@ -805,12 +796,10 @@ document.addEventListener("DOMContentLoaded", function () {
|
||||
|
||||
}
|
||||
})
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
<script>
|
||||
|
||||
$(document).ready(function() {
|
||||
getURLParams()
|
||||
$('#client_id_for_search').select2();
|
||||
@ -818,8 +807,7 @@ $(document).ready(function() {
|
||||
$('#policy_type_for_search').select2();
|
||||
})
|
||||
|
||||
function fetchEmpolyeeList(event)
|
||||
{
|
||||
function fetchEmpolyeeList(event) {
|
||||
event.preventDefault(); // Prevent default action
|
||||
|
||||
var start_date = $('#startDate').val();
|
||||
@ -852,13 +840,11 @@ function fetchEmpolyeeList(event)
|
||||
window.location.href = apiURL;
|
||||
}
|
||||
|
||||
function objectToQueryString(obj)
|
||||
{
|
||||
function objectToQueryString(obj) {
|
||||
return Object.keys(obj).map(key => `${encodeURIComponent(key)}=${encodeURIComponent(obj[key])}`).join('&');
|
||||
}
|
||||
|
||||
function getURLParams()
|
||||
{
|
||||
function getURLParams() {
|
||||
const url = new URL(window.location.href);
|
||||
const params = new URLSearchParams(url.search);
|
||||
|
||||
@ -927,7 +913,9 @@ $(function() {
|
||||
$('#reportrange').daterangepicker({
|
||||
startDate: start,
|
||||
endDate: end,
|
||||
locale: { format: 'DD-MM-YYYY' },
|
||||
locale: {
|
||||
format: 'DD-MM-YYYY'
|
||||
},
|
||||
ranges: {
|
||||
'Today': [moment(), moment()],
|
||||
'Yesterday': [moment().subtract(1, 'days'), moment().subtract(1, 'days')],
|
||||
@ -958,8 +946,7 @@ $(function() {
|
||||
|
||||
});
|
||||
|
||||
function hideDateField(input = null)
|
||||
{
|
||||
function hideDateField(input = null) {
|
||||
let val = $('#date_type').val();
|
||||
|
||||
if (input) {
|
||||
@ -972,5 +959,4 @@ function hideDateField(input = null)
|
||||
$('#date_div').hide()
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
@ -144,9 +144,6 @@ table.dataTable tbody td {
|
||||
}
|
||||
|
||||
</style>
|
||||
<div class="col-12">
|
||||
<h4 class="ml-1 mb-3"> <span class="font-color-black">Policy</span> </h4>
|
||||
</div>
|
||||
|
||||
<div class="col-12" id="inception_filter">
|
||||
<div id="accordion" class="mb-3">
|
||||
@ -271,7 +268,7 @@ table.dataTable tbody td {
|
||||
<div class="card-body">
|
||||
<div class="row" style="margin-bottom:1rem;">
|
||||
<div class="col-6" style="align-self: center;">
|
||||
<h4 style="position: relative;">Policy </h4>
|
||||
<h4 style="position: relative;">Policy List </h4>
|
||||
</div>
|
||||
|
||||
<div class="col-3" id="status_change" style="text-align: right; position: relative;top: 56px; left: 291px;">
|
||||
|
||||
@ -66,6 +66,8 @@
|
||||
pointer-events: none;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="container-fluid-min">
|
||||
<div class="row" id="policy_list">
|
||||
<div class="col-12">
|
||||
<div class="card">
|
||||
@ -97,7 +99,8 @@
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<?php if(is_array($policyList)) {foreach($policyList as $row){ ?>
|
||||
<?php if (is_array($policyList)) {
|
||||
foreach ($policyList as $row) { ?>
|
||||
<tr>
|
||||
<td><?php echo $row['policy_type']; ?> </td>
|
||||
<td><?php echo $row['long_name']; ?> </td>
|
||||
@ -114,7 +117,8 @@
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<?php }}?>
|
||||
<?php }
|
||||
} ?>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
@ -122,6 +126,8 @@
|
||||
</div>
|
||||
</div><!-- end col -->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- end row -->
|
||||
|
||||
<script>
|
||||
@ -210,23 +216,20 @@ document.addEventListener("DOMContentLoaded", function () {
|
||||
|
||||
|
||||
<script>
|
||||
|
||||
$(document).ready(function() {
|
||||
|
||||
$('#tickets-table').DataTable({
|
||||
dom: "<'row'<'col-sm-0'f><'col-sm-9 text-right'B>>" +
|
||||
dom: "<'d-flex justify-content-between align-items-center'<'datatable-search'f><'datatable-buttons'B>>" +
|
||||
"<'row'<'col-sm-12'tr>>" +
|
||||
"<'row'<'col-sm-5'i><'col-sm-7'p>>",
|
||||
buttons: [
|
||||
{
|
||||
buttons: [{
|
||||
extend: 'csv',
|
||||
text: 'CSV',
|
||||
title: 'PolicyTypeList',
|
||||
exportOptions: {
|
||||
columns: ':not(:last-child)'
|
||||
}
|
||||
}
|
||||
],
|
||||
}],
|
||||
|
||||
|
||||
language: {
|
||||
@ -244,7 +247,9 @@ const tableElement = document.querySelector("#tickets-table");
|
||||
btnExport.addEventListener("click", () => {
|
||||
const obj = new csvExport(tableElement);
|
||||
const csvData = obj.exportCsv();
|
||||
const blob = new Blob([csvData], { type: "text/csv" });
|
||||
const blob = new Blob([csvData], {
|
||||
type: "text/csv"
|
||||
});
|
||||
const url = URL.createObjectURL(blob);
|
||||
const a = document.createElement("a");
|
||||
a.href = url;
|
||||
@ -341,7 +346,4 @@ function removePolciyType(element) {
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
@ -1,11 +1,8 @@
|
||||
<div class="col-12">
|
||||
<h4 class="ml-1 mb-3"> <span class="font-color-black">Renewal Policy</span> </h4>
|
||||
</div>
|
||||
|
||||
<div class="container-fluid-min">
|
||||
<div class="col-xl-12">
|
||||
<div id="accordion" class="mb-3">
|
||||
<label id="filterAccordion" class="m-1 d-flex justify-content-between align-items-center">
|
||||
<span class="font-color-black">Filters</span>
|
||||
<h4>Filters</h4>
|
||||
<a id="toggleIcon" class="text-dark float-right" data-toggle="collapse" href="#collapseOne"
|
||||
aria-expanded="true">
|
||||
<i id="icon" class="mdi mdi-chevron-up mr-1 text-primary" style="font-size: 28px;"></i>
|
||||
@ -79,6 +76,8 @@
|
||||
|
||||
|
||||
<div id="report"></div>
|
||||
</div>
|
||||
|
||||
|
||||
<script>
|
||||
let client_list = [];
|
||||
@ -105,7 +104,9 @@ $(function() {
|
||||
$('#reportrange').daterangepicker({
|
||||
startDate: start,
|
||||
endDate: end,
|
||||
locale: { format: 'DD-MM-YYYY' },
|
||||
locale: {
|
||||
format: 'DD-MM-YYYY'
|
||||
},
|
||||
ranges: {
|
||||
'Today': [moment(), moment()],
|
||||
'Next 7 Days': [moment(), moment().add(6, 'days')], // Next 7 Days
|
||||
|
||||
@ -1,12 +1,9 @@
|
||||
<style>
|
||||
.col-12 {
|
||||
|
||||
max-width: 98% !important;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
|
||||
<div class="container-fluid-min">
|
||||
<div class="col-12" id="bds_filter">
|
||||
<div id="accordion" class="mb-3">
|
||||
<label id="filterAccordion" class="m-1 d-flex justify-content-between align-items-center">
|
||||
@ -149,10 +146,11 @@
|
||||
<div id="file_list">
|
||||
<?php include('report_bds.php'); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<script>
|
||||
|
||||
let client_list = [];
|
||||
let branch_list = [];
|
||||
let policy_list = [];
|
||||
@ -174,8 +172,7 @@ $(document).ready(function() {
|
||||
|
||||
})
|
||||
|
||||
function fetchEmpolyeeList(event)
|
||||
{
|
||||
function fetchEmpolyeeList(event) {
|
||||
event.preventDefault(); // Prevent default action
|
||||
|
||||
var start_date = $('#startDate').val();
|
||||
@ -213,13 +210,11 @@ function fetchEmpolyeeList(event)
|
||||
window.location.href = apiURL;
|
||||
}
|
||||
|
||||
function objectToQueryString(obj)
|
||||
{
|
||||
function objectToQueryString(obj) {
|
||||
return Object.keys(obj).map(key => `${encodeURIComponent(key)}=${encodeURIComponent(obj[key])}`).join('&');
|
||||
}
|
||||
|
||||
function getURLParams()
|
||||
{
|
||||
function getURLParams() {
|
||||
const url = new URL(window.location.href);
|
||||
const params = new URLSearchParams(url.search);
|
||||
|
||||
@ -301,7 +296,9 @@ $(function() {
|
||||
$('#reportrange').daterangepicker({
|
||||
startDate: start,
|
||||
endDate: end,
|
||||
locale: { format: 'DD-MM-YYYY' },
|
||||
locale: {
|
||||
format: 'DD-MM-YYYY'
|
||||
},
|
||||
ranges: {
|
||||
'Today': [moment(), moment()],
|
||||
'Yesterday': [moment().subtract(1, 'days'), moment().subtract(1, 'days')],
|
||||
@ -331,8 +328,7 @@ $(function() {
|
||||
|
||||
});
|
||||
|
||||
function hideDateField(input = null)
|
||||
{
|
||||
function hideDateField(input = null) {
|
||||
let val = $('#date_type').val();
|
||||
|
||||
if (input) {
|
||||
@ -349,8 +345,7 @@ function hideDateField(input = null)
|
||||
// -----------------------------------------------------------------------------------------------
|
||||
|
||||
//featch client, client branch, insurer, insurer branch and client policy list data
|
||||
function getClientAndBranchAndPolicy()
|
||||
{
|
||||
function getClientAndBranchAndPolicy() {
|
||||
$.ajax({
|
||||
url: '<?= base_url("/util/getClientAndBranchAndPolicy") ?>',
|
||||
type: "GET",
|
||||
@ -379,8 +374,7 @@ function getClientAndBranchAndPolicy()
|
||||
}
|
||||
|
||||
//append clients for filter
|
||||
function appendClients(data)
|
||||
{
|
||||
function appendClients(data) {
|
||||
$('#client_id').empty();
|
||||
|
||||
$('#client_id').append($('<option>', {
|
||||
@ -403,8 +397,7 @@ function appendClients(data)
|
||||
}
|
||||
|
||||
//append clients branch for filter
|
||||
function appendBranch(data)
|
||||
{
|
||||
function appendBranch(data) {
|
||||
|
||||
$('#client_branch_id').empty();
|
||||
|
||||
@ -424,8 +417,7 @@ function appendBranch(data)
|
||||
}
|
||||
|
||||
//append insurer for filter
|
||||
function appendInsurer(data)
|
||||
{
|
||||
function appendInsurer(data) {
|
||||
$('#insurer_id').empty();
|
||||
|
||||
$('#insurer_id').append($('<option>', {
|
||||
@ -445,8 +437,7 @@ function appendInsurer(data)
|
||||
}
|
||||
|
||||
//append insurer branch for filter
|
||||
function appendInsurerBranch(data)
|
||||
{
|
||||
function appendInsurerBranch(data) {
|
||||
|
||||
$('#insurer_branch_id').empty();
|
||||
|
||||
@ -466,8 +457,7 @@ function appendInsurerBranch(data)
|
||||
}
|
||||
|
||||
//append client policy for filter
|
||||
function appendPolicies(data)
|
||||
{
|
||||
function appendPolicies(data) {
|
||||
// console.log('appendPolicies', data);
|
||||
// console.log('appendPolicies', $('#client_policy_id'));
|
||||
|
||||
@ -566,5 +556,4 @@ function changeTitle(input){
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
</script>
|
||||
@ -26,7 +26,7 @@
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="container-fluid">
|
||||
<div class="container-fluid-min">
|
||||
<h2>Retail Endorsement</h2>
|
||||
<div class="row">
|
||||
<div class="col-xl-12">
|
||||
@ -332,7 +332,7 @@
|
||||
$(document).ready(function() {
|
||||
|
||||
$('#tickets-table').DataTable({
|
||||
dom: "<'row'<'col-sm-0'f><'col-sm-9 text-right'B>>" +
|
||||
dom: "<'d-flex justify-content-between align-items-center'<'datatable-search'f><'datatable-buttons'B>>" +
|
||||
"<'row'<'col-sm-12'tr>>" +
|
||||
"<'row'<'col-sm-5'i><'col-sm-7'p>>",
|
||||
buttons: [{
|
||||
|
||||
@ -8,10 +8,7 @@
|
||||
padding: 4px 4px !important;
|
||||
}
|
||||
|
||||
.col-12 {
|
||||
|
||||
max-width: 98% !important;
|
||||
}
|
||||
|
||||
.dataTables_filter {
|
||||
position: absolute;
|
||||
|
||||
@ -45,7 +45,7 @@ table.dataTable tbody td {
|
||||
<div class="card-body">
|
||||
<div class="row" style="padding-bottom: 10px;">
|
||||
<div class="col-6" style="align-self: center;">
|
||||
<h2 style="position: relative;">Claim Feedback List </h2>
|
||||
<h4 style="position: relative;">Claim Feedback List </h4>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
@ -28,9 +28,11 @@
|
||||
font-size: 0.875rem;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="container-fluid-min">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="<?= !isset($ticket_data) ? "card" : "" ?>" style="margin-right: 23px;">
|
||||
<div class="<?= !isset($ticket_data) ? "card" : "" ?>" >
|
||||
<div class="card-body">
|
||||
<?php if (!isset($ticket_data)) { ?>
|
||||
<!-- Header Section -->
|
||||
@ -466,6 +468,8 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- Info Modal -->
|
||||
<div class="modal fade" id="moreInfoModal" tabindex="-1" role="dialog" aria-labelledby="fullWidthModalLabel" aria-hidden="true">
|
||||
@ -1197,7 +1201,6 @@
|
||||
$('#tpa_id').val(tap_id);
|
||||
$('#tpa_name').val(tap_name);
|
||||
}
|
||||
|
||||
</script>
|
||||
<script>
|
||||
$("#infoIcon").click(function() {
|
||||
|
||||
@ -8,10 +8,7 @@
|
||||
padding: 4px 4px !important;
|
||||
}
|
||||
|
||||
.col-12 {
|
||||
|
||||
max-width: 98% !important;
|
||||
}
|
||||
|
||||
.dataTables_filter {
|
||||
position: absolute;
|
||||
|
||||
@ -1,14 +1,16 @@
|
||||
<div class="container-fluid-min">
|
||||
<div class="row">
|
||||
<!-- <h3 class="ml-3">Claim Reports</h3> -->
|
||||
<div class="col-xl-12">
|
||||
<div id="accordion" class="mb-3">
|
||||
<div class="card mb-1">
|
||||
<h5 class="m-1">
|
||||
<h4 class="m-1">
|
||||
<span>Filter</span>
|
||||
<a id="toggleIcon" class="text-dark float-right" data-toggle="collapse" href="#collapseOne"
|
||||
aria-expanded="true">
|
||||
<i id="icon" class="mdi mdi-chevron-down mr-1 text-primary" style="font-size: 28px;"></i>
|
||||
</a>
|
||||
</h5>
|
||||
</h4>
|
||||
<div id="collapseOne" class="collapse show" aria-labelledby="headingOne" data-parent="#accordion">
|
||||
<div class="card-body">
|
||||
<!-- <div class="text-center"> -->
|
||||
@ -60,11 +62,11 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card mb-1">
|
||||
|
||||
<div id="report"></div>
|
||||
<div class="row" id="report"></div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<script>
|
||||
$(function() {
|
||||
|
||||
@ -98,7 +100,6 @@
|
||||
});
|
||||
</script>
|
||||
<script>
|
||||
|
||||
function fetchReportPage() {
|
||||
|
||||
var fromDate = $('#startDate').val();
|
||||
|
||||
@ -5,17 +5,18 @@
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="container-fluid-min">
|
||||
<div class="row">
|
||||
<div class="col-12" style="margin-top: -12px;">
|
||||
<div id="accordion" class="mb-3">
|
||||
<div class="card mb-1">
|
||||
<h2 class="m-3">
|
||||
Claim Filter
|
||||
<h4>
|
||||
Filter
|
||||
<a id="toggleIcon" class="text-dark float-right" data-toggle="collapse" href="#collapseOne"
|
||||
aria-expanded="true">
|
||||
<i id="icon" class="mdi mdi-chevron-down mr-1 text-primary" style="font-size: 28px;"></i>
|
||||
</a>
|
||||
</h2>
|
||||
</h4>
|
||||
<div id="collapseOne" class="collapse hide" aria-labelledby="headingOne" data-parent="#accordion">
|
||||
<div class="card-body">
|
||||
<div class="form-group">
|
||||
@ -134,15 +135,17 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- end page title -->
|
||||
<div class="row" id="ticket_list_div">
|
||||
<?php include('ticket_list.php'); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- end page title -->
|
||||
|
||||
|
||||
|
||||
<script>
|
||||
|
||||
$(document).ready(function() {
|
||||
// Initialize select2
|
||||
$('#client_id').select2();
|
||||
@ -236,7 +239,6 @@ function fetchTicketListData() {
|
||||
|
||||
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
<script>
|
||||
@ -315,6 +317,4 @@ function fetchTicketListData() {
|
||||
|
||||
window.location.href = "<?= base_url("/ticket/list") ?>";
|
||||
});
|
||||
|
||||
|
||||
</script>
|
||||
@ -1,5 +1,4 @@
|
||||
<style>
|
||||
|
||||
.custom-dropdown-menu {
|
||||
display: none;
|
||||
position: absolute;
|
||||
@ -38,8 +37,8 @@
|
||||
color: white;
|
||||
border: 1px solid rgba(41, 139, 142, 1);
|
||||
}
|
||||
|
||||
</style>
|
||||
<div class="container-fluid-min">
|
||||
<div class="row" id="tpa_list">
|
||||
<div class="col-12">
|
||||
<div class="card">
|
||||
@ -59,7 +58,8 @@
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<?php if(is_array($tpaList)) {foreach($tpaList as $row){ ?>
|
||||
<?php if (is_array($tpaList)) {
|
||||
foreach ($tpaList as $row) { ?>
|
||||
<tr>
|
||||
<td><?php echo $row['name']; ?> ( <?php echo $row['short_name']; ?> ) </td>
|
||||
<td>
|
||||
@ -72,7 +72,8 @@
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<?php }}?>
|
||||
<?php }
|
||||
} ?>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
@ -80,6 +81,8 @@
|
||||
</div>
|
||||
</div><!-- end col -->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- end row -->
|
||||
<script>
|
||||
document.addEventListener("DOMContentLoaded", function() {
|
||||
@ -172,15 +175,13 @@ document.addEventListener("DOMContentLoaded", function () {
|
||||
</script>
|
||||
|
||||
<script>
|
||||
|
||||
$(document).ready(function() {
|
||||
|
||||
$('#tickets-table').DataTable({
|
||||
dom: "<'row'<'col-sm-0'f><'col-sm-9 text-right'B>>" +
|
||||
dom: "<'d-flex justify-content-between align-items-center'<'datatable-search'f><'datatable-buttons'B>>" +
|
||||
"<'row'<'col-sm-12'tr>>" +
|
||||
"<'row'<'col-sm-5'i><'col-sm-7'p>>",
|
||||
buttons: [
|
||||
{
|
||||
buttons: [{
|
||||
extend: 'csv',
|
||||
text: 'CSV',
|
||||
title: 'TPAList',
|
||||
@ -218,7 +219,9 @@ const tableElement = document.querySelector("#tickets-table");
|
||||
btnExport.addEventListener("click", () => {
|
||||
const obj = new csvExport(tableElement);
|
||||
const csvData = obj.exportCsv();
|
||||
const blob = new Blob([csvData], { type: "text/csv" });
|
||||
const blob = new Blob([csvData], {
|
||||
type: "text/csv"
|
||||
});
|
||||
const url = URL.createObjectURL(blob);
|
||||
const a = document.createElement("a");
|
||||
a.href = url;
|
||||
@ -314,6 +317,4 @@ function removeTPA(element) {
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
@ -8,10 +8,7 @@ table.dataTable tbody td {
|
||||
padding: 4px 4px !important;
|
||||
}
|
||||
|
||||
.col-12 {
|
||||
|
||||
max-width: 98% !important;
|
||||
}
|
||||
|
||||
.dataTables_filter {
|
||||
position: absolute;
|
||||
@ -26,14 +23,11 @@ table.dataTable tbody td {
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="col-12">
|
||||
<h3 class="ml-1 mb-3"> <span class="font-color-black">Variance</span> </h3>
|
||||
</div>
|
||||
|
||||
<div class="container-fluid-min">
|
||||
<div class="col-12" id="varience_filter">
|
||||
<div id="accordion" class="mb-3">
|
||||
<label class="m-1 d-flex justify-content-between align-items-center">
|
||||
<span class="title-text font-color-black" style="margin-top: 8px;">Filters</span>
|
||||
<h4>Filters</h4>
|
||||
<a id="toggleIcon" class="text-dark float-right" data-toggle="collapse" href="#collapseOne"
|
||||
aria-expanded="true">
|
||||
<i id="icon" class="mdi mdi-chevron-up mr-1 text-primary" style="font-size: 28px;"></i>
|
||||
@ -207,9 +201,10 @@ table.dataTable tbody td {
|
||||
</div><!-- end col -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<script>
|
||||
|
||||
let client_list = [];
|
||||
let branch_list = [];
|
||||
let policy_list = [];
|
||||
@ -227,8 +222,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-7'p>>", // Pagination at the bottom, without page length selector
|
||||
buttons: [
|
||||
{
|
||||
buttons: [{
|
||||
extend: 'collection',
|
||||
text: '<span class=" btn-custom"> Export </span><i class="mdi mdi-menu-down"></i>',
|
||||
className: 'btn app-btn-secondary ',
|
||||
@ -270,8 +264,7 @@ $(document).ready(function() {
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
}],
|
||||
language: {
|
||||
search: "_INPUT_",
|
||||
searchPlaceholder: "Search..."
|
||||
@ -295,8 +288,7 @@ $(document).ready(function() {
|
||||
$('#policy_type_id').select2();
|
||||
})
|
||||
|
||||
function fetchEmpolyeeList(event)
|
||||
{
|
||||
function fetchEmpolyeeList(event) {
|
||||
event.preventDefault(); // Prevent default action
|
||||
|
||||
var start_date = $('#startDate').val();
|
||||
@ -335,8 +327,7 @@ function objectToQueryString(obj) {
|
||||
return Object.keys(obj).map(key => `${encodeURIComponent(key)}=${encodeURIComponent(obj[key])}`).join('&');
|
||||
}
|
||||
|
||||
function getURLParams()
|
||||
{
|
||||
function getURLParams() {
|
||||
const url = new URL(window.location.href);
|
||||
const params = new URLSearchParams(url.search);
|
||||
|
||||
@ -415,7 +406,9 @@ $(function() {
|
||||
$('#reportrange').daterangepicker({
|
||||
startDate: start,
|
||||
endDate: end,
|
||||
locale: { format: 'DD-MM-YYYY' },
|
||||
locale: {
|
||||
format: 'DD-MM-YYYY'
|
||||
},
|
||||
ranges: {
|
||||
'Today': [moment(), moment()],
|
||||
'Yesterday': [moment().subtract(1, 'days'), moment().subtract(1, 'days')],
|
||||
@ -479,8 +472,7 @@ function sendPolicyTransactionID(event, pt_id) {
|
||||
// -------------------------------------------------------------------------------------------------
|
||||
|
||||
//featch client, client branch, insurer, insurer branch and client policy list data
|
||||
function getClientAndBranchAndPolicy()
|
||||
{
|
||||
function getClientAndBranchAndPolicy() {
|
||||
$.ajax({
|
||||
url: '<?= base_url("/util/getClientAndBranchAndPolicy") ?>',
|
||||
type: "GET",
|
||||
@ -509,8 +501,7 @@ function getClientAndBranchAndPolicy()
|
||||
}
|
||||
|
||||
//append clients for filter
|
||||
function appendClients(data)
|
||||
{
|
||||
function appendClients(data) {
|
||||
$('#client_id').empty();
|
||||
|
||||
$('#client_id').append($('<option>', {
|
||||
@ -533,8 +524,7 @@ function appendClients(data)
|
||||
}
|
||||
|
||||
//append clients branch for filter
|
||||
function appendBranch(data)
|
||||
{
|
||||
function appendBranch(data) {
|
||||
|
||||
$('#client_branch_id').empty();
|
||||
|
||||
@ -554,8 +544,7 @@ function appendBranch(data)
|
||||
}
|
||||
|
||||
//append insurer for filter
|
||||
function appendInsurer(data)
|
||||
{
|
||||
function appendInsurer(data) {
|
||||
$('#insurer_id').empty();
|
||||
|
||||
$('#insurer_id').append($('<option>', {
|
||||
@ -575,8 +564,7 @@ function appendInsurer(data)
|
||||
}
|
||||
|
||||
//append insurer branch for filter
|
||||
function appendInsurerBranch(data)
|
||||
{
|
||||
function appendInsurerBranch(data) {
|
||||
|
||||
$('#insurer_branch_id').empty();
|
||||
|
||||
@ -596,8 +584,7 @@ function appendInsurerBranch(data)
|
||||
}
|
||||
|
||||
//append client policy for filter
|
||||
function appendPolicies(data)
|
||||
{
|
||||
function appendPolicies(data) {
|
||||
// console.log('appendPolicies', data);
|
||||
// console.log('appendPolicies', $('#client_policy_id'));
|
||||
|
||||
@ -684,5 +671,4 @@ function getClientPolicyDataBasedOnClientAndInsuer(){
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
</script>
|
||||
Loading…
Reference in New Issue
Block a user