IRG live issue and all table change : GWM
This commit is contained in:
parent
488596371a
commit
61b679813a
@ -213,16 +213,16 @@
|
||||
});
|
||||
// Initialize the DataTable
|
||||
var table = $('#amend_po_list').DataTable({
|
||||
dom: 'Blfrtip', // Buttons, length menu, filter, table, information, pagination
|
||||
dom: 'Blfrtip',
|
||||
buttons: [
|
||||
'csv', 'excel', 'pdf' // Export buttons
|
||||
'excel', 'pdf'
|
||||
],
|
||||
pageLength: 10, // Default rows per page
|
||||
pageLength: 10,
|
||||
lengthMenu: [
|
||||
[10, 20, 30, 50, -1],
|
||||
[10, 20, 30, 50, "All"]
|
||||
], // Rows per page options
|
||||
responsive: true, // Responsive table
|
||||
],
|
||||
responsive: false,
|
||||
order:false,
|
||||
|
||||
language: {
|
||||
|
||||
@ -265,16 +265,16 @@
|
||||
|
||||
// Initialize the DataTable
|
||||
var table = $('#po_list').DataTable({
|
||||
dom: 'Blfrtip', // Buttons, length menu, filter, table, information, pagination
|
||||
dom: 'Blfrtip',
|
||||
buttons: [
|
||||
'csv', 'excel', 'pdf', // Export buttons
|
||||
'excel', 'pdf'
|
||||
],
|
||||
pageLength: 10, // Default rows per page
|
||||
pageLength: 10,
|
||||
lengthMenu: [
|
||||
[10, 20, 30, 50, -1],
|
||||
[10, 20, 30, 50, "All"]
|
||||
], // Rows per page options
|
||||
responsive: true, // Responsive table
|
||||
],
|
||||
responsive: false,
|
||||
ordering: false,
|
||||
language: {
|
||||
paginate: {
|
||||
|
||||
@ -73,7 +73,7 @@
|
||||
<i class="fe-rotate-cw range_reset_button" aria-hidden="true" class="icon-button" id="resetButton" title="Reset"></i>
|
||||
<div class="error" id="error"></div>
|
||||
</form>
|
||||
<div class="card-body">
|
||||
<div class="card-body" style="overflow-x:scroll;">
|
||||
|
||||
<table class="table dt-responsive nowrap w-100" id="asset_list_table" >
|
||||
<thead>
|
||||
@ -105,7 +105,7 @@
|
||||
$cdate = date('d-m-Y', strtotime($record->CreatedDt));
|
||||
} ?>
|
||||
<td><?php echo $cdate; ?></td>
|
||||
<td><u><a href="<?php echo base_url() . 'assetdetails/editOldasset/?AssetID=' . $record->AssetCode ?>" data-toggle="tooltip" title="<?php echo $record->AssetCode; ?> - Click here to view Asset details"><?php echo substr($record->AssetCode, 5) ?>
|
||||
<td><a href="<?php echo base_url() . 'assetdetails/editOldasset/?AssetID=' . $record->AssetCode ?>" data-toggle="tooltip" title="<?php echo $record->AssetCode; ?> - Click here to view Asset details"><?php echo substr($record->AssetCode, 5) ?>
|
||||
<td><?php echo $record->AssetName ?></td>
|
||||
<td><?php echo $record->Description ?></td>
|
||||
<td><?php echo $record->DepartmentName ?></td>
|
||||
@ -144,17 +144,17 @@
|
||||
$(document).ready(function() {
|
||||
// Initialize the DataTable
|
||||
var table = $('#asset_list_table').DataTable({
|
||||
dom: 'Blfrtip', // Buttons, length menu, filter, table, information, pagination
|
||||
dom: 'Blfrtip',
|
||||
buttons: [
|
||||
'csv', 'excel', 'pdf'
|
||||
'excel', 'pdf'
|
||||
],
|
||||
pageLength: 10, // Default rows per page
|
||||
pageLength: 10,
|
||||
lengthMenu: [
|
||||
[10, 20, 30, 50, -1],
|
||||
[10, 20, 30, 50, "All"]
|
||||
], // Rows per page options
|
||||
responsive: true, // Responsive table
|
||||
order: [], // Default ordering (column index 0, descending)
|
||||
],
|
||||
responsive: false,
|
||||
order: false,
|
||||
language: {
|
||||
paginate: {
|
||||
next: '<i class="fas fa-angle-right"></i>', // Next button icon
|
||||
@ -168,8 +168,6 @@
|
||||
function(settings, data, dataIndex) {
|
||||
var fromDate = $('#fromDate').val();
|
||||
var toDate = $('#toDate').val();
|
||||
console.log(fromDate); // e.g., 01-09-2024
|
||||
console.log(toDate); // e.g., 08-09-2024
|
||||
|
||||
if (!fromDate || !toDate) {
|
||||
return true; // If no dates selected, don't filter
|
||||
|
||||
@ -116,7 +116,7 @@
|
||||
<i class="fe-rotate-cw range_reset_button" aria-hidden="true" class="icon-button" id="resetButton" title="Reset"></i>
|
||||
<div class="error" id="error"></div>
|
||||
</form>
|
||||
<div class="card-body">
|
||||
<div class="card-body" style="overflow-x:scroll;">
|
||||
<table id="config_list_table" class="table dt-responsive nowrap w-100">
|
||||
<thead>
|
||||
<tr>
|
||||
@ -186,17 +186,17 @@
|
||||
|
||||
// Initialize the DataTable
|
||||
var table = $('#config_list_table').DataTable({
|
||||
dom: 'Blfrtip', // Buttons, length menu, filter, table, information, pagination
|
||||
dom: 'Blfrtip',
|
||||
buttons: [
|
||||
'csv', 'excel', 'pdf'
|
||||
'excel', 'pdf'
|
||||
],
|
||||
pageLength: 10, // Default rows per page
|
||||
pageLength: 10,
|
||||
lengthMenu: [
|
||||
[10, 20, 30, 50, -1],
|
||||
[10, 20, 30, 50, "All"]
|
||||
], // Rows per page options
|
||||
responsive: true, // Responsive table
|
||||
order: [], // Default ordering (column index 0, descending)
|
||||
],
|
||||
responsive: false,
|
||||
order: false,
|
||||
language: {
|
||||
paginate: {
|
||||
next: '<i class="fas fa-angle-right"></i>', // Next button icon
|
||||
|
||||
@ -73,7 +73,7 @@
|
||||
<i class="fe-rotate-cw range_reset_button" aria-hidden="true" class="icon-button" id="resetButton" title="Reset"></i>
|
||||
<div class="error" id="error"></div>
|
||||
</form>
|
||||
<div class="card-body">
|
||||
<div class="card-body" style="overflow-x:scroll;">
|
||||
|
||||
<table id="cost_listing" class="table dt-responsive nowrap w-100">
|
||||
<thead>
|
||||
@ -221,17 +221,17 @@
|
||||
|
||||
// Initialize the DataTable
|
||||
var table = $('#cost_listing').DataTable({
|
||||
dom: 'Blfrtip', // Buttons, length menu, filter, table, information, pagination
|
||||
dom: 'Blfrtip',
|
||||
buttons: [
|
||||
'csv', 'excel', 'pdf'
|
||||
'excel', 'pdf'
|
||||
],
|
||||
pageLength: 10, // Default rows per page
|
||||
pageLength: 10,
|
||||
lengthMenu: [
|
||||
[10, 20, 30, 50, -1],
|
||||
[10, 20, 30, 50, "All"]
|
||||
], // Rows per page options
|
||||
responsive: true, // Responsive table
|
||||
order: [], // Default ordering (column index 0, descending)
|
||||
],
|
||||
responsive: false,
|
||||
order: false,
|
||||
language: {
|
||||
paginate: {
|
||||
next: '<i class="fas fa-angle-right"></i>', // Next button icon
|
||||
|
||||
@ -303,7 +303,7 @@
|
||||
<i class="fe-rotate-cw range_reset_button" aria-hidden="true" class="icon-button" id="resetButton" title="Reset"></i>
|
||||
<div class="error" id="error"></div>
|
||||
</span>
|
||||
<div class="card-body">
|
||||
<div class="card-body" >
|
||||
|
||||
<table id="create_po_from_requistion" class="table dt-responsive nowrap w-100">
|
||||
<thead>
|
||||
@ -401,19 +401,17 @@
|
||||
});
|
||||
|
||||
var table = $('#create_po_from_requistion').DataTable({
|
||||
dom: 'Blfrtip', // Buttons, length menu, filter, table, information, pagination
|
||||
dom: 'Blfrtip',
|
||||
buttons: [
|
||||
'copy', 'csv', 'excel', 'pdf', 'print' // Export buttons
|
||||
'excel', 'pdf'
|
||||
],
|
||||
pageLength: 10, // Default rows per page
|
||||
pageLength: 10,
|
||||
lengthMenu: [
|
||||
[10, 20, 30, 50, -1],
|
||||
[10, 20, 30, 50, "All"]
|
||||
], // Rows per page options
|
||||
responsive: false, // Responsive table
|
||||
order: [
|
||||
// [0, 'desc']
|
||||
], // Default ordering (column index 0, descending)
|
||||
],
|
||||
responsive: false,
|
||||
order: false,
|
||||
scrollX: true,
|
||||
language: {
|
||||
paginate: {
|
||||
|
||||
@ -102,7 +102,7 @@
|
||||
<i class="fe-rotate-cw range_reset_button" aria-hidden="true" class="icon-button" id="resetButton" title="Reset"></i>
|
||||
<div class="error" id="error"></div>
|
||||
</form>
|
||||
<div class="card-body">
|
||||
<div class="card-body" style="overflow-x:scroll;">
|
||||
<table id="department_list_table" class="table dt-responsive nowrap w-100">
|
||||
<thead>
|
||||
<tr>
|
||||
@ -127,7 +127,7 @@
|
||||
$cdate = date('d-m-Y', strtotime($record->CreatedDt));
|
||||
} ?>
|
||||
<td><?php echo $cdate; ?> </td>
|
||||
<td><u><a href="<?php echo base_url() . 'editOlddepartment/?SID=' . $record->DEPCode ?>" data-toggle="tooltip" title="<?php echo $record->DEPCode ?> - Click here to view Department details"><?php echo $record->DEPCode; ?></a></u></td>
|
||||
<td><a href="<?php echo base_url() . 'editOlddepartment/?SID=' . $record->DEPCode ?>" data-toggle="tooltip" title="<?php echo $record->DEPCode ?> - Click here to view Department details"><?php echo $record->DEPCode; ?></a></u></td>
|
||||
<td><?php echo $record->DepartmentName ?></td>
|
||||
<td><?php echo $record->HeadDept ?></td>
|
||||
<td><?php if ($record->IsActive == 1) {
|
||||
@ -164,17 +164,17 @@
|
||||
|
||||
// Initialize the DataTable
|
||||
var table = $('#department_list_table').DataTable({
|
||||
dom: 'Blfrtip', // Buttons, length menu, filter, table, information, pagination
|
||||
dom: 'Blfrtip',
|
||||
buttons: [
|
||||
'csv', 'excel', 'pdf'
|
||||
'excel', 'pdf'
|
||||
],
|
||||
pageLength: 10, // Default rows per page
|
||||
pageLength: 10,
|
||||
lengthMenu: [
|
||||
[10, 20, 30, 50, -1],
|
||||
[10, 20, 30, 50, "All"]
|
||||
], // Rows per page options
|
||||
responsive: true, // Responsive table
|
||||
order: [], // Default ordering (column index 0, descending)
|
||||
],
|
||||
responsive: false,
|
||||
order: false,
|
||||
language: {
|
||||
paginate: {
|
||||
next: '<i class="fas fa-angle-right"></i>', // Next button icon
|
||||
|
||||
@ -107,7 +107,7 @@
|
||||
<div class="col-12">
|
||||
<div class="card">
|
||||
|
||||
<div class="card-body">
|
||||
<div class="card-body" style="overflow-x:scroll;">
|
||||
|
||||
<table id="datatable" class="table table-hover table-bordered" style="background-color:#fff;">
|
||||
<thead>
|
||||
@ -131,7 +131,7 @@
|
||||
} else {
|
||||
$cdate = date('d-m-Y', strtotime($record->Created_date));
|
||||
} ?>
|
||||
<td><u><a class="a_tag_link" href="<?php echo base_url() . 'employeedetails/ViewEmployee/?EmpID=' . $record->EmpID; ?>" data-toggle="tooltip" title="<?php echo $record->EmpID; ?> - Click here to view Employee details"><?php echo $record->EmpID ?> </a></u></td>
|
||||
<td><a class="a_tag_link" href="<?php echo base_url() . 'employeedetails/ViewEmployee/?EmpID=' . $record->EmpID; ?>" data-toggle="tooltip" title="<?php echo $record->EmpID; ?> - Click here to view Employee details"><?php echo $record->EmpID ?> </a></u></td>
|
||||
<td><?php echo $record->FirstName; ?></td>
|
||||
<td><?php echo $record->ContactNumber ?></td>
|
||||
<td><?php echo $record->Designation ?></td>
|
||||
@ -165,13 +165,13 @@
|
||||
// Initialize the DataTable
|
||||
|
||||
var table = $('#datatable').DataTable({
|
||||
dom: 'Blfrtip', // Buttons, length menu, filter, table, information, pagination
|
||||
dom: 'Blfrtip',
|
||||
buttons: [
|
||||
'csv', 'excel', 'pdf'
|
||||
'excel', 'pdf'
|
||||
],
|
||||
pageLength: 10, // Default rows per page
|
||||
pageLength: 10,
|
||||
lengthMenu: [ [10, 20, 30, 50, -1], [10, 20, 30, 50, "All"] ], // Rows per page options
|
||||
// responsive: true, // Responsive table
|
||||
responsive: false,
|
||||
order: false,
|
||||
language: {
|
||||
paginate: {
|
||||
|
||||
@ -103,12 +103,11 @@
|
||||
|
||||
<div class="error" id="error"></div>
|
||||
</form>
|
||||
<div class="card-body">
|
||||
<div class="card-body" style="overflow-x:scroll;">
|
||||
<table class="table table-bordered table-hover" id="expense_list_table" style="background-color:#fff;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th align="left" style="width: 10%;">Created Date</th>
|
||||
<!-- <th align="right">Expense Id</th> -->
|
||||
<th align="left" style="width: 20%;">Supplier Name</th>
|
||||
<th align="left" style="width: 25%;">Item Description</th>
|
||||
<th align="left" style="width: 7%;">Cost</th>
|
||||
@ -471,15 +470,15 @@
|
||||
var table = $('#expense_list_table').DataTable({
|
||||
dom: 'Blfrtip',
|
||||
buttons: [
|
||||
'csv', 'excel', 'pdf'
|
||||
'excel', 'pdf'
|
||||
],
|
||||
pageLength: 10,
|
||||
lengthMenu: [
|
||||
[10, 20, 30, 50, -1],
|
||||
[10, 20, 30, 50, "All"]
|
||||
],
|
||||
// responsive: true,
|
||||
order: [],
|
||||
responsive: false,
|
||||
order: false,
|
||||
language: {
|
||||
paginate: {
|
||||
next: '<i class="fas fa-angle-right"></i>',
|
||||
|
||||
@ -108,7 +108,7 @@
|
||||
<div class="col-12">
|
||||
<div class="card">
|
||||
|
||||
<div class="card-body">
|
||||
<div class="card-body" style="overflow-x:scroll;">
|
||||
|
||||
<table id="datatable" class="table table-hover table-bordered" style="background-color:#fff;">
|
||||
|
||||
@ -182,14 +182,14 @@
|
||||
// Initialize the DataTable
|
||||
|
||||
var table = $('#datatable').DataTable({
|
||||
dom: 'Blfrtip', // Buttons, length menu, filter, table, information, pagination
|
||||
dom: 'Blfrtip',
|
||||
buttons: [
|
||||
'csv', 'excel', 'pdf'
|
||||
'excel', 'pdf'
|
||||
],
|
||||
pageLength: 10, // Default rows per page
|
||||
lengthMenu: [ [10, 20, 30, 50, -1], [10, 20, 30, 50, "All"] ], // Rows per page options
|
||||
// responsive: true, // Responsive table
|
||||
order: [], // Default ordering (column index 0, descending)
|
||||
pageLength: 10,
|
||||
lengthMenu: [ [10, 20, 30, 50, -1], [10, 20, 30, 50, "All"] ],
|
||||
responsive: false,
|
||||
order: false,
|
||||
language: {
|
||||
paginate: {
|
||||
next: '<i class="fas fa-angle-right"></i>', // Next button icon
|
||||
|
||||
@ -397,6 +397,7 @@
|
||||
}
|
||||
|
||||
function validate() {
|
||||
|
||||
var rowcount = $("#txtRowCount").val();
|
||||
var isOpenOrder = parseInt($("#hiddenIsOpenOrder").val(), 2);
|
||||
var formatted_IsOpenOrder = (isOpenOrder === 0 || isNaN(isOpenOrder)) ? 0 : 1;
|
||||
@ -406,11 +407,12 @@
|
||||
var InvoiceQty = parseFloat($('#QuantityAsPerInvoice' + k).val() == '' ? '0.00' : $('#QuantityAsPerInvoice' + k).val());
|
||||
var RecQty = parseFloat($('#txtReceivedQuantity' + k).val() == '' ? '0.00' : $('#txtReceivedQuantity' + k).val());
|
||||
var OrderedQty = parseFloat($('#Quantity_1' + k).text());
|
||||
|
||||
if (InvoiceQty != '0.00') {
|
||||
|
||||
if (OrderedQty < (InvoiceQty + RecQty)) {
|
||||
isExceed = 1;
|
||||
return false;
|
||||
// return false;
|
||||
}
|
||||
Noval = 1;
|
||||
}
|
||||
|
||||
@ -66,7 +66,7 @@
|
||||
?>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="card">
|
||||
<div class="card" >
|
||||
<form class="Date-filter-form" id="DateRangeFilter" style="margin-top: 14px;margin-bottom: -11px;margin-left: 33px;">
|
||||
<input type="hidden" name="table" value="requisition">
|
||||
<label for="fromDate">From:</label>
|
||||
@ -79,7 +79,7 @@
|
||||
<i class="fe-rotate-cw range_reset_button" aria-hidden="true" class="icon-button" id="resetButton" title="Reset"></i>
|
||||
<div class="error" id="error"></div>
|
||||
</form>
|
||||
<div class="card-body">
|
||||
<div class="card-body" style="overflow-x:scroll;">
|
||||
<table id="raw_material_list_table" class="table dt-responsive">
|
||||
<thead>
|
||||
|
||||
@ -112,9 +112,9 @@
|
||||
<td style="width:10%;"><?php echo $record->MaterialType ?></td>
|
||||
<td style="width:7%;"><?php echo $record->UOM ?></td>
|
||||
<?php if ($record->stock != null || '') { ?>
|
||||
<td style="width:7%;"><?php echo $record->stock ?></td>
|
||||
<td style="width:10%;"><?php echo $record->stock ?></td>
|
||||
<?php } else { ?>
|
||||
<td style="width:7%;">0</td>
|
||||
<td style="width:10%;">0</td>
|
||||
<?php } ?>
|
||||
<td style="width:11%;"><?php echo $record->Category ?></td>
|
||||
<td style="width:8%;"><?php echo $record->HSNCODE ?></td>
|
||||
@ -144,17 +144,17 @@
|
||||
$(document).ready(function() {
|
||||
// Initialize the DataTable
|
||||
var table = $('#raw_material_list_table').DataTable({
|
||||
dom: 'Blfrtip', // Buttons, length menu, filter, table, information, pagination
|
||||
dom: 'Blfrtip',
|
||||
buttons: [
|
||||
'excel', 'pdf'
|
||||
],
|
||||
pageLength: 10, // Default rows per page
|
||||
pageLength: 10,
|
||||
lengthMenu: [
|
||||
[10, 20, 30, 50, -1],
|
||||
[10, 20, 30, 50, "All"]
|
||||
], // Rows per page options
|
||||
responsive: true, // Responsive table
|
||||
order: [], // Default ordering (column index 0, descending)
|
||||
responsive: false, // Responsive table
|
||||
order: false, // Default ordering (column index 0, descending)
|
||||
language: {
|
||||
paginate: {
|
||||
next: '<i class="fas fa-angle-right"></i>', // Next button icon
|
||||
@ -168,8 +168,6 @@
|
||||
function(settings, data, dataIndex) {
|
||||
var fromDate = $('#fromDate').val();
|
||||
var toDate = $('#toDate').val();
|
||||
console.log(fromDate); // e.g., 01-09-2024
|
||||
console.log(toDate); // e.g., 08-09-2024
|
||||
|
||||
if (!fromDate || !toDate) {
|
||||
return true; // If no dates selected, don't filter
|
||||
|
||||
@ -80,7 +80,7 @@
|
||||
<i class="fe-rotate-cw range_reset_button" aria-hidden="true" class="icon-button" id="resetButton" title="Reset"></i>
|
||||
<div class="error" id="error"></div>
|
||||
</form>
|
||||
<div class="card-body">
|
||||
<div class="card-body" style="overflow-x:scroll;">
|
||||
<table class="table dt-responsive nowrap w-100" id="datatable">
|
||||
<thead>
|
||||
<tr>
|
||||
@ -110,13 +110,13 @@
|
||||
<td style="width:75px" align="right"><?php echo $cdate; ?></td>
|
||||
|
||||
<td>
|
||||
<u>
|
||||
|
||||
<a class="a-tag-link"
|
||||
href="<?= base_url() ?>viewsupplier?SID=<?= $record->SupplierID ?>&Payment=<?= $record->PaymentTerms ?>"
|
||||
data-toggle="tooltip"
|
||||
title="<?= $record->SupplierID ?> - Click here to view Supplier details"><?= $record->SupplierID ?>
|
||||
</a>
|
||||
</u>
|
||||
|
||||
</td>
|
||||
<td><?php echo $record->SupplierName ?></td>
|
||||
<td><?php echo $record->Address ?></td>
|
||||
@ -182,15 +182,15 @@
|
||||
var table = $('#datatable').DataTable({
|
||||
dom: 'Blfrtip', // Buttons, length menu, filter, table, information, pagination
|
||||
buttons: [
|
||||
'csv', 'excel', 'pdf'
|
||||
'excel', 'pdf'
|
||||
],
|
||||
pageLength: 10, // Default rows per page
|
||||
lengthMenu: [
|
||||
[10, 20, 30, 50, -1],
|
||||
[10, 20, 30, 50, "All"]
|
||||
], // Rows per page options
|
||||
responsive: true, // Responsive table
|
||||
order: [], // Default ordering (column index 0, descending)
|
||||
responsive: false, // Responsive table
|
||||
order: false,
|
||||
language: {
|
||||
paginate: {
|
||||
next: '<i class="fas fa-angle-right"></i>', // Next button icon
|
||||
|
||||
@ -111,7 +111,7 @@
|
||||
<i class="fe-rotate-cw range_reset_button" aria-hidden="true" class="icon-button" id="resetButton" title="Reset"></i>
|
||||
<div class="error" id="error"></div>
|
||||
</form>
|
||||
<div class="card-body">
|
||||
<div class="card-body" style="overflow-x:scroll;">
|
||||
|
||||
<table id="transporter_list" class="table dt-responsive nowrap w-100">
|
||||
<thead>
|
||||
@ -250,17 +250,17 @@
|
||||
$(document).ready(function() {
|
||||
// Initialize the DataTable
|
||||
var table = $('#transporter_list').DataTable({
|
||||
dom: 'Blfrtip', // Buttons, length menu, filter, table, information, pagination
|
||||
dom: 'Blfrtip',
|
||||
buttons: [
|
||||
'csv', 'excel', 'pdf'
|
||||
'excel', 'pdf'
|
||||
],
|
||||
pageLength: 10, // Default rows per page
|
||||
pageLength: 10,
|
||||
lengthMenu: [
|
||||
[10, 20, 30, 50, -1],
|
||||
[10, 20, 30, 50, "All"]
|
||||
], // Rows per page options
|
||||
responsive: true, // Responsive table
|
||||
order: [], // Default ordering (column index 0, descending)
|
||||
],
|
||||
responsive: false,
|
||||
order: false,
|
||||
language: {
|
||||
paginate: {
|
||||
next: '<i class="fas fa-angle-right"></i>', // Next button icon
|
||||
@ -274,8 +274,6 @@
|
||||
function(settings, data, dataIndex) {
|
||||
var fromDate = $('#fromDate').val();
|
||||
var toDate = $('#toDate').val();
|
||||
console.log(fromDate); // e.g., 01-09-2024
|
||||
console.log(toDate); // e.g., 08-09-2024
|
||||
|
||||
if (!fromDate || !toDate) {
|
||||
return true; // If no dates selected, don't filter
|
||||
|
||||
@ -89,7 +89,7 @@
|
||||
<i class="fe-rotate-cw range_reset_button" aria-hidden="true" class="icon-button" id="resetButton" title="Reset"></i>
|
||||
<div class="error" id="error"></div>
|
||||
</form>
|
||||
<div class="card-body">
|
||||
<div class="card-body" style="overflow-x:scroll;">
|
||||
<table id="user_list_table" class="table dt-responsive nowrap w-100">
|
||||
|
||||
<thead>
|
||||
@ -148,18 +148,7 @@
|
||||
|
||||
<script type="text/javascript" src="<?php echo base_url(); ?>public/assets/js/common.js" charset="utf-8"></script>
|
||||
<script type="text/javascript">
|
||||
// $(function () {
|
||||
|
||||
// $('#datatable').DataTable({
|
||||
// "paging": true,
|
||||
// "lengthChange": true,
|
||||
// "searching": true,
|
||||
// "ordering": true,
|
||||
// "info": true,
|
||||
// "autoWidth": true
|
||||
|
||||
// });
|
||||
// });
|
||||
|
||||
|
||||
|
||||
|
||||
@ -197,17 +186,17 @@
|
||||
$(document).ready(function() {
|
||||
// Initialize the DataTable
|
||||
var table = $('#user_list_table').DataTable({
|
||||
dom: 'Blfrtip', // Buttons, length menu, filter, table, information, pagination
|
||||
dom: 'Blfrtip',
|
||||
buttons: [
|
||||
'csv', 'excel', 'pdf'
|
||||
'excel', 'pdf'
|
||||
],
|
||||
pageLength: 10, // Default rows per page
|
||||
pageLength: 10,
|
||||
lengthMenu: [
|
||||
[10, 20, 30, 50, -1],
|
||||
[10, 20, 30, 50, "All"]
|
||||
], // Rows per page options
|
||||
responsive: true, // Responsive table
|
||||
order: [], // Default ordering (column index 0, descending)
|
||||
],
|
||||
responsive: false,
|
||||
order: false,
|
||||
language: {
|
||||
paginate: {
|
||||
next: '<i class="fas fa-angle-right"></i>', // Next button icon
|
||||
@ -221,8 +210,6 @@
|
||||
function(settings, data, dataIndex) {
|
||||
var fromDate = $('#fromDate').val();
|
||||
var toDate = $('#toDate').val();
|
||||
console.log(fromDate); // e.g., 01-09-2024
|
||||
console.log(toDate); // e.g., 08-09-2024
|
||||
|
||||
if (!fromDate || !toDate) {
|
||||
return true; // If no dates selected, don't filter
|
||||
|
||||
@ -1713,14 +1713,14 @@
|
||||
table = $('#view_inward_gate_register').DataTable({
|
||||
dom: 'Blfrtip',
|
||||
buttons: [
|
||||
'csv', 'excel', 'pdf'
|
||||
'excel', 'pdf'
|
||||
],
|
||||
pageLength: 10,
|
||||
lengthMenu: [
|
||||
[10, 20, 30, 50, -1],
|
||||
[10, 20, 30, 50, "All"]
|
||||
],
|
||||
// responsive: true,
|
||||
responsive: false,
|
||||
ordering:false,
|
||||
language: {
|
||||
paginate: {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user