CHANGE_PURCHASE_LIST_MINTON

This commit is contained in:
aadhavan valli 2024-08-21 17:21:51 +05:30
parent 4458f2d786
commit 9420023502
8 changed files with 658 additions and 532 deletions

View File

@ -39,35 +39,37 @@
white-space: nowrap;
}
</style>
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<!-- Main content -->
<section class="content">
<div class="content-page">
<div class="content">
<!-- Start Content-->
<div class="container-fluid">
<!-- start page title -->
<div>
<div class="row">
<div class="col-xs-12">
<div class="box">
<div class="box-header">
<center>
<h3 class="box-title">Amendment Purchase Order List </h3>
</center>
<div class="col-12">
<div class="page-title-box page-title-box-alt">
<h4 class="page-title">Amendment Purchase Order List</h4>
</div>
<!-- /.box-header -->
<div class="box-body">
<form class="Date-filter-form" id="DateRangeFilter" >
</div>
</div>
<div class="row">
<div class="col-12">
<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>
<input type="text" id="fromDate" name="fromDate" placeholder="Select From Date" autocomplete="off" required>
<label for="toDate">To:</label>
<input type="text" id="toDate" name="toDate" placeholder="Select To Date" autocomplete="off" required>
<button type="submit">Search</button>
<i class="fa fa-repeat" aria-hidden="true" class="icon-button" id="resetButton" title="Reset"></i>
<div class="error" id="error"></div>
</form>
<table id="example1" class="table table-hover editableTable" style="background-color:#fff;font-size:12px;">
<thead style="background-color: #ddd;">
<div class="card-body">
<table id="amend_po_list" class="table dt-responsive nowrap w-100">
<thead>
<tr>
<!-- <th>#</th> -->
<th>PO Date</th>
@ -82,7 +84,8 @@
<th>Action</th>
</tr>
</thead>
<tbody><?php
<tbody>
<?php
if (!empty($POData)) {
$index = 0;
foreach ($POData as $record) {
@ -117,7 +120,8 @@
} else {
echo "Status not provided";
}
?></td>
?>
</td>
<td><?php $option = 'By Deliver Date';
if ($record->DeliveryOption == 1) {
$option = "By Schedule";
@ -139,7 +143,7 @@
<td> <a data-toggle="tooltip" href="<?php echo base_url() . 'EditAmendPO?PONO=' . $record->PONO . '&ReqType=' . $record->ReqType . '&CapitalRange=' . $record->CapitalRange; ?>"><i class="fa fa-pencil" data-toggle="tooltip" title="<?php echo $record->PONO; ?> - Click here to Edit Purchase Order details"></i>&nbsp;&nbsp;&nbsp;</a>
<td> <a data-toggle="tooltip" href="<?php echo base_url() . 'EditAmendPO?PONO=' . $record->PONO . '&ReqType=' . $record->ReqType . '&CapitalRange=' . $record->CapitalRange; ?>"><i class="fas fa-pencil-alt" data-toggle="tooltip" title="<?php echo $record->PONO; ?> - Click here to Edit Purchase Order details"></i>&nbsp;&nbsp;&nbsp;</a>
<a data-toggle="tooltip" href="<?php echo base_url() . 'EditAmendPO?PONO=' . $record->PONO . '&ReqType=' . $record->ReqType . '&CapitalRange=' . $record->CapitalRange; ?>"> &nbsp;&nbsp;&nbsp; <a data-toggle="tooltip" href="<?php echo base_url() . 'purchaseorder/CreatePOPrint?PONO=' . $record->PONO . '&ReqType=' . $record->ReqType; ?>"><i class="fa fa-print" data-toggle="tooltip" title="<?php echo $record->PONO; ?> - Click here to Print the Purchase Order details"></i>&nbsp;&nbsp;&nbsp;</a>
@ -152,20 +156,16 @@
?>
</tbody>
</table>
</div> <!-- end card body-->
</div> <!-- end card -->
</div><!-- end col-->
</div>
<!-- /.box-body -->
</div>
<!-- /.box -->
</div>
<!-- /.col -->
</div>
<!-- /.row -->
</section>
<!-- /.content -->
</div> <!-- container -->
</div> <!-- content -->
</div>
<!-- /.content-wrapper -->
<!-- <script>
$(function() {
@ -266,3 +266,24 @@ $(document).ready(function() {
});
});
</script>
<script>$(document).ready(function() {
$('#amend_po_list').DataTable({
dom: 'Blfrtip', // Buttons, length menu, filter, table, information, pagination
buttons: [
'copy', 'csv', 'excel', 'pdf', 'print' // Export buttons
],
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: [[0, 'desc']], // Default ordering (column index 0, ascending)
language: {
paginate: {
next: '<i class="fas fa-angle-right"></i>', // Next button icon
previous: '<i class="fas fa-angle-left"></i>' // Previous button icon
}
}
});
});
</script>

View File

@ -55,21 +55,21 @@
margin-bottom: 10px;
}
</style>
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<!-- Main content -->
<section class="content">
<div class="content-page">
<div class="content">
<!-- Start Content-->
<div class="container-fluid">
<!-- start page title -->
<div>
<div class="row">
<div class="col-xs-12">
<div class="box">
<div class="box-header">
<center>
<h3 class="box-title"> Purchase Order List</h3>
</center>
<div class="row">
<div class="col-md-12">
<?php
<div class="col-12">
<div class="page-title-box page-title-box-alt">
<h4 class="page-title">Purchase Order List</h4>
</div>
</div>
</div> <?php
helper('form');
$error = session()->getFlashdata('error');
if($error){
@ -82,18 +82,10 @@
echo show_alert($type, $success);
}
?>
<div class="row">
<div class="col-md-12">
<?php // \Config\Services::validation()->listErrors('<div class="alert alert-danger alert-dismissable">', ' <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button></div>');
?> </div>
</div>
</div>
</div>
</div>
<!-- /.box-header -->
<div class="box-body">
<form class="Date-filter-form" id="DateRangeFilter" >
<div class="col-12">
<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>
<input type="text" id="fromDate" name="fromDate" placeholder="Select From Date" autocomplete="off" required>
@ -105,8 +97,9 @@
<i class="fa fa-repeat" aria-hidden="true" class="icon-button" id="resetButton" title="Reset"></i>
<div class="error" id="error"></div>
</form>
<table id="dataTableHistoriek" class="table table-bordered table-hover editableTable" style="background-color:#fff;font-size:12px;">
<thead style="background-color: #ddd;">
<div class="card-body">
<table id="po_list" class="table dt-responsive nowrap w-100">
<thead>
<tr>
<th>PO Date</th>
<th>PONO#</th>
@ -120,7 +113,8 @@
<th>Action</th>
</tr>
</thead>
<tbody><?php
<tbody>
<?php
if (!empty($POData)) {
$index = 0;
foreach ($POData as $record) {
@ -189,19 +183,14 @@
}
?>
</tbody>
</table>
</div> <!-- end card body-->
</div> <!-- end card -->
</div><!-- end col-->
</div>
<!-- /.box-body -->
</div>
<!-- /.box -->
</div>
<!-- /.col -->
</div>
<!-- /.row -->
</section>
<!-- /.content -->
</div> <!-- container -->
</div> <!-- content -->
</div>
<!-- /.content-wrapper -->
<script src="https://cdn.datatables.net/plug-ins/1.10.11/sorting/date-eu.js"></script>
@ -350,3 +339,24 @@ $(document).ready(function() {
});
});
</script> -->
<script>$(document).ready(function() {
$('#po_list').DataTable({
dom: 'Blfrtip', // Buttons, length menu, filter, table, information, pagination
buttons: [
'copy', 'csv', 'excel', 'pdf', 'print' // Export buttons
],
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: [[0, 'desc']], // Default ordering (column index 0, ascending)
language: {
paginate: {
next: '<i class="fas fa-angle-right"></i>', // Next button icon
previous: '<i class="fas fa-angle-left"></i>' // Previous button icon
}
}
});
});
</script>

View File

@ -16,7 +16,7 @@
.dataTables_wrapper {
padding-bottom: 0px;
margin-top: -3%;
/* margin-top: -3%; */
}
.content-wrapper {
@ -37,21 +37,25 @@
float: inline-end;
}
</style>
<div class="content-wrapper">
<div class="content-page">
<div class="content">
<?php $attributes = array('class' => 'form-label-left CreatePO ', 'name' => 'CreatePO', 'id' => 'CreatePO', 'method' => 'post', 'role' => 'form');
echo form_open(base_url() . 'purchaseOrder', $attributes); ?>
<section class="content">
<div class="box">
<div class="box-header">
<center>
<h3 class="box-title"> Create Purchase Order from Requistion</h3>
</center>
</div>
<!-- Start Content-->
<div class="container-fluid">
<div id="content"></div>
<!-- start page title -->
<div class="row">
<div class="col-12">
<div class="page-title-box page-title-box-alt">
<h4 class="page-title">Create Purchase Order from Requistion</h4>
</div>
</div>
</div>
<div class="row">
<div class="col-md-4">
<?php
@ -93,8 +97,8 @@
</div>
</div>
<?php } ?>
<div class="col-md-12">
<div class="col-md-3 col-md-offset-9">
<div class="col-md-12" style="margin-top: -79px;">
<!-- <div class="col-md-3 col-md-offset-9"> -->
<p>
<div align="right" style="padding-right:0px">
<!--<a href="<?php echo base_url(); ?>purchaseorderform/purchaseorder"> -->
@ -105,13 +109,15 @@
<input type="hidden" name="txtReqType" id="txtReqType" />
</div>
</p>
<!-- </div> -->
</div>
</div>
</div>
</div>
<div class="container-fluid">
<div>
<div class="row">
<div class="col-12">
<div class="card">
<div class="card-body">
<div class="modal fade" id="RequisitionDtlsModal" role="dialog">
<div class="modal-dialog" style="vertical-align: middle;width: fit-content">
<!-- Modal content-->
@ -207,11 +213,8 @@
</form>
</div>
</div>
<table id="REQLIST" class="table table-bordered table-hover" style="background-color:#fff;font-size:12px;">
<div align="right" style="padding-right:10px">
<div class="modal fade" role="dialog">
<thead style="background-color: #ddd !important;">
<table id="create_po_from_requistion" class="table dt-responsive nowrap w-100">
<thead>
<tr>
<th>Select</th>
<th>Requested Date</th>
@ -227,9 +230,8 @@
<th>Designation</th>
</tr>
</thead>
<tbody id="AppendReqList">
<?php
if (!empty($ReqList)) { //alert($ReqList);
<tbody>
<?php if (!empty($ReqList)) { //alert($ReqList);
$index = 1;
foreach ($ReqList as $record) {
?>
@ -259,11 +261,6 @@
?>
</tbody>
</table>
<div align="right">
<!-- <input type="submit" class="btn btn-success" onclick="return Validate();" value="Create Purchase Order"> -->
</div>
<div class="modal fade" id="ImportPOCheck" role="dialog">
<div class="modal-dialog modal-dialog-centered">
<!-- Modal content-->
@ -290,10 +287,15 @@
</div>
</div>
</div>
</div> <!-- end card body-->
</div> <!-- end card -->
</div><!-- end col-->
</div>
</div>
</section>
</div> <!-- container -->
</div> <!-- content -->
</div>
<script>
var POType = '';
function SetImportPO() {
@ -423,3 +425,23 @@
});
</script>
<script src="https://cdn.datatables.net/plug-ins/1.10.11/sorting/date-eu.js"></script>
<script>$(document).ready(function() {
$('#create_po_from_requistion').DataTable({
dom: 'Blfrtip', // Buttons, length menu, filter, table, information, pagination
buttons: [
'copy', 'csv', 'excel', 'pdf', 'print' // Export buttons
],
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: [[0, 'desc']], // Default ordering (column index 0, ascending)
language: {
paginate: {
next: '<i class="fas fa-angle-right"></i>', // Next button icon
previous: '<i class="fas fa-angle-left"></i>' // Previous button icon
}
}
});
});
</script>

View File

@ -1,4 +1,4 @@
<div?php
<?php
//print_r($getTotalServicePoCount);
$Empcnt = '';
//echo $DEPCode;

View File

@ -48,7 +48,7 @@
<div class="auth-logo">
<a href="index.html" class="logo logo-dark text-center">
<span class="logo-lg">
<img src="<?php echo base_url('public/new_assets/images/RI_logo.png'); ?> " alt="" height="40">
<img src="<?php echo base_url('public/new_assets/images/RI_logo.png'); ?> " alt="" height="60">
</span>
</a>

View File

@ -89,19 +89,25 @@ if (empty($Status)) {
color: #0056b3;
}
</style>
<div class="content-wrapper">
<section class="content">
<div class="box">
<div class="box-header">
<CENTER>
<h3 class="box-title">Purchase Order Approve List </h3>
</CENTER>
</div>
<div class="content-page">
<div class="content">
<!-- Start Content-->
<div class="container-fluid">
<form class="Date-filter-form" id="DateRangeFilter">
<!-- start page title -->
<div>
<div class="row">
<div class="col-12">
<div class="page-title-box page-title-box-alt">
<h4 class="page-title">Purchase Order Approve List</h4>
</div>
</div>
</div>
<div class="row">
<div class="col-12">
<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>
<input type="text" id="fromDate" name="fromDate" placeholder="Select From Date" autocomplete="off" required>
@ -113,10 +119,9 @@ if (empty($Status)) {
<i class="fa fa-repeat" aria-hidden="true" class="icon-button" id="resetButton" title="Reset"></i>
<div class="error" id="error"></div>
</form>
<table id="Requisition" class="table table-hover" style="background-color:#fff;font-size:12px;">
<thead style="background-color: #ddd;">
<div class="card-body">
<table id="po_release" class="table dt-responsive nowrap w-100">
<thead>
<tr>
<th>PO Date</th>
<th>Purchase Order Number</th>
@ -136,8 +141,7 @@ if (empty($Status)) {
</tr>
</thead>
<tbody id="ApprovalList">
<tbody>
<?php
if (!empty($AppList)) {
$index = 0;
@ -228,17 +232,15 @@ if (empty($Status)) {
?>
</tbody>
</table>
<br>
</div> <!-- end card body-->
</div> <!-- end card -->
</div><!-- end col-->
</div>
</div>
</section>
</div> <!-- container -->
</div> <!-- content -->
</div>
<script>
@ -600,3 +602,24 @@ if (empty($Status)) {
});
});
</script>
<script>$(document).ready(function() {
$('#po_release').DataTable({
dom: 'Blfrtip', // Buttons, length menu, filter, table, information, pagination
buttons: [
'copy', 'csv', 'excel', 'pdf', 'print' // Export buttons
],
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: [[0, 'desc']], // Default ordering (column index 0, ascending)
language: {
paginate: {
next: '<i class="fas fa-angle-right"></i>', // Next button icon
previous: '<i class="fas fa-angle-left"></i>' // Previous button icon
}
}
});
});
</script>

View File

@ -76,33 +76,43 @@ span.highlight {
}
</style>
<div class="content-wrapper">
<section class="content">
<div class="content-page">
<div class="content">
<!-- Start Content-->
<div class="container-fluid">
<!-- start page title -->
<div>
<div class="row">
<div class="col-xs-12">
<div class="box">
<div class="box-header">
<center><b>
<h3 class="box-title">Requisition Listing</h3>
</b></center>
</div><!-- /.box-header -->
<div class="col-12">
<div class="page-title-box page-title-box-alt">
<h4 class="page-title">Requisition Listing</h4>
</div>
</div>
</div>
<?php if($DraftCount > 0 ) {?><p style="text-align: center;">
<span class="highlight">The Requisition No <b><?php echo $ReqNo;?></b> is in Draft
status.</span> Please act on the requisition.<span class="highlight">Then only you can raise
New Requisition. </span>
</p> <?php } ?>
<div class="row" style="margin-top: -63px;">
<div class="col-md-12 text-left">
<div class="form-group row">
<div class="col-md-3"></div>
<div class="col-md-5 text-right"></div>
<div class="col-md-4 text-right">
<?php if($DraftCount == 0) { ?>
<a class="btn btn-success" href="<?php echo base_url(); ?>RequisitionForm">Raise New Requisition</a>
<?php } ?>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12 text-right" style="margin-left:-2%;">
<div class="form-group">
<div class="col-md-8">
<form class="Date-filter-form" id="DateRangeFilter" >
<div class="col-12">
<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>
<input type="text" id="fromDate" name="fromDate" placeholder="Select From Date" autocomplete="off" required>
@ -114,21 +124,9 @@ span.highlight {
<i class="fa fa-repeat" aria-hidden="true" class="icon-button" id="resetButton" title="Reset"></i>
<div class="error" id="error"></div>
</form>
</div>
<div class="col-md-4">
<?php if($DraftCount == 0) { ?>
<a class="btn btn-success" onclick="Test()"
href="<?php echo base_url(); ?>RequisitionForm">Raise New Requisition</a>
<?php }?>
</div>
</div>
</div>
</div>
<table id="Requisition" class="table table-bordered table-hover"
style="background-color:#fff;font-size:12px;">
<thead style="background-color: #ddd;">
<div class="card-body">
<table id="requisition_listing" class="table dt-responsive nowrap w-100">
<thead>
<tr>
<th>Requisted Date</th>
<th>Requisition No</th>
@ -139,13 +137,9 @@ span.highlight {
<th>NewLine Item</th>
<th>Status</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<?php
if(!empty($TotNoOfLine))
{
@ -169,10 +163,10 @@ span.highlight {
<td> <a data-toggle="tooltip"
href="<?php echo base_url().'EditRequisitionForm?ReqNo='.$record->ReqNo.'&ReqType='.$record->ReqType; ?>"><i
class="fa fa-pencil" data-toggle="tooltip"
class="fas fa-pencil-alt" data-toggle="tooltip"
title="<?php echo $record->ReqNo; ?> - Click here to view Requisition details"></i>&nbsp;&nbsp;&nbsp;</a>
<a data-toggle="tooltip" onclick="DeleteRow('<?php echo $record->ReqNo; ?>' )"><span
class="glyphicon glyphicon-trash"
class="fas fa-trash"
title="<?php echo $record->ReqNo; ?> - Click here to Delete Requisition details"></span></a>
</td>
</tr>
@ -181,13 +175,16 @@ span.highlight {
}
}
?>
</tbody>
</table>
</div> <!-- end card body-->
</div> <!-- end card -->
</div><!-- end col-->
</div>
</div>
</div>
</section>
</div> <!-- container -->
</div> <!-- content -->
</div>
<script src="https://cdn.datatables.net/plug-ins/1.10.11/sorting/date-eu.js"></script>
@ -303,3 +300,24 @@ $(document).ready(function() {
});
});
</script>
<script>$(document).ready(function() {
$('#requisition_listing').DataTable({
dom: 'Blfrtip', // Buttons, length menu, filter, table, information, pagination
buttons: [
'copy', 'csv', 'excel', 'pdf', 'print' // Export buttons
],
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: [[0, 'desc']], // Default ordering (column index 0, ascending)
language: {
paginate: {
next: '<i class="fas fa-angle-right"></i>', // Next button icon
previous: '<i class="fas fa-angle-left"></i>' // Previous button icon
}
}
});
});
</script>

View File

@ -57,7 +57,7 @@
.dataTables_wrapper .dataTables_length {
float: left;
}
.dataTables_wrapper .dt-buttons,
/* .dataTables_wrapper .dt-buttons,
.dataTables_wrapper .dataTables_filter {
float: right;
margin-left: 10px;
@ -65,11 +65,11 @@
.dataTables_wrapper .dt-buttons {
margin-top: 10px;
margin-bottom: 10px;
}
.dataTables_wrapper .dataTables_filter {
} */
/* .dataTables_wrapper .dataTables_filter {
margin-top: 10px;
margin-bottom: 10px;
}
} */
</style>
<script>
$(function() {
@ -127,15 +127,26 @@ var data = suggestion.DriverMobileNumber;
}
</style>
<script type="text/javascript" src="<?php echo base_url(); ?>public/assets/Autocomplete/jquery.autocomplete.js"></script>
<div class="content-wrapper">
<section class="content"><br/>
<div class="box">
<div class="content-page">
<div class="content">
<!-- Start Content-->
<div class="container-fluid">
<div class="box-header">
<center><b><h3 class="box-title">View Inward Gate Register </h3></b></center>
<!-- start page title -->
<div>
<div class="row">
<div class="col-12">
<div class="page-title-box page-title-box-alt">
<h4 class="page-title">View Inward Gate Register </h4>
</div>
</div>
</div>
<div class="row">
<form class="Date-filter-form" id="DateRangeFilter" >
<div class="col-12">
<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>
<input type="text" id="fromDate" name="fromDate" placeholder="Select From Date" autocomplete="off" required>
@ -147,9 +158,9 @@ var data = suggestion.DriverMobileNumber;
<i class="fa fa-repeat" aria-hidden="true" class="icon-button" id="resetButton" title="Reset"></i>
<div class="error" id="error"></div>
</form>
<div class="col-md-12">
<table id="Inwardgateregistertable" class="table table-bordered table-hover" style="background-color:#fff;font-size:12px;">
<thead style="background-color: #ddd;">
<div class="card-body">
<table id="view_inward_gate_register" class="table dt-responsive nowrap w-100">
<thead>
<tr>
<th>Create Date</th>
<th>Create time</th>
@ -214,11 +225,15 @@ var data = suggestion.DriverMobileNumber;
?>
</tbody>
</table>
</div> <!-- end card body-->
</div> <!-- end card -->
</div><!-- end col-->
</div>
</div>
</div>
</div>
<!-- box closed here -->
</div> <!-- container -->
</div> <!-- content -->
</div>
<!-- box closed here -->
<!-- Igr modal fade -->
<div class="modal fade" id="Igrshow" role="dialog">
<div class="modal-dialog">
@ -583,10 +598,7 @@ var data = suggestion.DriverMobileNumber;
</div><!-- /.modal content -->
</div><!-- /.modal dialog -->
</div>
<!-- Bill modal fade closed-->
</section>
</div>
<script>
$("#Igrshow").on("shown.bs.modal", function(e) {
var inx = $(e.relatedTarget).data('id');
@ -647,7 +659,7 @@ var data = suggestion.DriverMobileNumber;
// success:function(data) {
$('#content').loader('hide');
var parsedData = JSON.parse(data);
console.log(parsedData);
console.log(parsedData);
if (parsedData['details'].length === 0) {
console.log("No data available");
// Reset all relevant fields and table
@ -1863,4 +1875,24 @@ function removeContact(button) {
$('#day').hide()
}
}
</script>
$(document).ready(function() {
$('#view_inward_gate_register').DataTable({
dom: 'Blfrtip', // Buttons, length menu, filter, table, information, pagination
buttons: [
'copy', 'csv', 'excel', 'pdf', 'print' // Export buttons
],
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: [[0, 'desc']], // Default ordering (column index 0, ascending)
language: {
paginate: {
next: '<i class="fas fa-angle-right"></i>', // Next button icon
previous: '<i class="fas fa-angle-left"></i>' // Previous button icon
}
}
});
});
</script>