CHANGE_PURCHASE_LIST_MINTON
This commit is contained in:
parent
4458f2d786
commit
9420023502
@ -39,133 +39,133 @@
|
||||
white-space: nowrap;
|
||||
}
|
||||
</style>
|
||||
<div class="content-wrapper">
|
||||
<!-- Content Header (Page header) -->
|
||||
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<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>
|
||||
<!-- /.box-header -->
|
||||
<div class="box-body">
|
||||
<form class="Date-filter-form" id="DateRangeFilter" >
|
||||
<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>
|
||||
<div class="content-page">
|
||||
<div class="content">
|
||||
<!-- Start Content-->
|
||||
<div class="container-fluid">
|
||||
<!-- start page title -->
|
||||
<div>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="page-title-box page-title-box-alt">
|
||||
<h4 class="page-title">Amendment Purchase Order 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>
|
||||
<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>
|
||||
<div class="card-body">
|
||||
<table id="amend_po_list" class="table dt-responsive nowrap w-100">
|
||||
<thead>
|
||||
<tr>
|
||||
<!-- <th>#</th> -->
|
||||
<th>PO Date</th>
|
||||
<th>PONO</th>
|
||||
<th>PO Type</th>
|
||||
<th>Supplier Name</th>
|
||||
<th>Total Order Value</th>
|
||||
<th>PO Status</th>
|
||||
<th>Delivery Option</th>
|
||||
<th>Delivery Date</th>
|
||||
<th>Delivery Schedule</th>
|
||||
<th>Action</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (!empty($POData)) {
|
||||
$index = 0;
|
||||
foreach ($POData as $record) {
|
||||
$index = $index + 1;
|
||||
?>
|
||||
<tr id="<?php echo $index; ?>">
|
||||
<!-- <td align="left"><?php echo $index; ?></td> -->
|
||||
<td align="right"><?php $Pdt = new DateTime($record->PODate);
|
||||
$PODate = $Pdt->format('d-m-Y');
|
||||
echo $PODate
|
||||
?></td>
|
||||
<td><?php echo $record->PONO ?></td>
|
||||
<td><?php echo $record->ReqType ?></td>
|
||||
<td><?php echo $record->SupplierName ?></td>
|
||||
<td align="right"><?php echo $record->TotalOrderValue ?></td>
|
||||
|
||||
<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;">
|
||||
<tr>
|
||||
<!-- <th>#</th> -->
|
||||
<th>PO Date</th>
|
||||
<th>PONO</th>
|
||||
<th>PO Type</th>
|
||||
<th>Supplier Name</th>
|
||||
<th>Total Order Value</th>
|
||||
<th>PO Status</th>
|
||||
<th>Delivery Option</th>
|
||||
<th>Delivery Date</th>
|
||||
<th>Delivery Schedule</th>
|
||||
<th>Action</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody><?php
|
||||
if (!empty($POData)) {
|
||||
$index = 0;
|
||||
foreach ($POData as $record) {
|
||||
$index = $index + 1;
|
||||
?>
|
||||
<tr id="<?php echo $index; ?>">
|
||||
<!-- <td align="left"><?php echo $index; ?></td> -->
|
||||
<td align="right"><?php $Pdt = new DateTime($record->PODate);
|
||||
$PODate = $Pdt->format('d-m-Y');
|
||||
echo $PODate
|
||||
?></td>
|
||||
<td><?php echo $record->PONO ?></td>
|
||||
<td><?php echo $record->ReqType ?></td>
|
||||
<td><?php echo $record->SupplierName ?></td>
|
||||
<td align="right"><?php echo $record->TotalOrderValue ?></td>
|
||||
|
||||
<!-- <td><?php echo $record->StatusName ?></td> -->
|
||||
<td><?php
|
||||
$statusMappings = [
|
||||
'PO APPROVED' => 'AWAITING APPROVE',
|
||||
'AWAITING RELEASE' => 'AWAITING APPROVE',
|
||||
'RELEASER ONHOLD' => 'APPROVER ONHOLD',
|
||||
'PO RELEASED' => 'PO APPROVED',
|
||||
];
|
||||
|
||||
if (isset($record->StatusName) && !empty($record->StatusName)) {
|
||||
if (isset($statusMappings[$record->StatusName])) {
|
||||
echo $statusMappings[$record->StatusName];
|
||||
} else {
|
||||
echo $record->StatusName;
|
||||
}
|
||||
} else {
|
||||
echo "Status not provided";
|
||||
}
|
||||
?></td>
|
||||
<td><?php $option = 'By Deliver Date';
|
||||
if ($record->DeliveryOption == 1) {
|
||||
$option = "By Schedule";
|
||||
} else if ($record->DeliveryOption == 2) {
|
||||
$option = "By Dispatch Instruction";
|
||||
}
|
||||
echo $option ?></td>
|
||||
<td align="right"><?php
|
||||
if ($record->DeliveryOption == 0) {
|
||||
$Ddt = new DateTime($record->DeliveryDate);
|
||||
$Deliverydt = $Ddt->format('d-m-Y');
|
||||
echo $Deliverydt;
|
||||
} else if ($record->DeliveryOption == 1) {
|
||||
$Deliverydt = '';
|
||||
echo $Deliverydt;
|
||||
} ?></td>
|
||||
<td><?php echo $record->DeliverySchedule ?></td>
|
||||
<!-- <td><?php echo $record->StatusName ?></td> -->
|
||||
<td><?php
|
||||
$statusMappings = [
|
||||
'PO APPROVED' => 'AWAITING APPROVE',
|
||||
'AWAITING RELEASE' => 'AWAITING APPROVE',
|
||||
'RELEASER ONHOLD' => 'APPROVER ONHOLD',
|
||||
'PO RELEASED' => 'PO APPROVED',
|
||||
];
|
||||
|
||||
if (isset($record->StatusName) && !empty($record->StatusName)) {
|
||||
if (isset($statusMappings[$record->StatusName])) {
|
||||
echo $statusMappings[$record->StatusName];
|
||||
} else {
|
||||
echo $record->StatusName;
|
||||
}
|
||||
} else {
|
||||
echo "Status not provided";
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
<td><?php $option = 'By Deliver Date';
|
||||
if ($record->DeliveryOption == 1) {
|
||||
$option = "By Schedule";
|
||||
} else if ($record->DeliveryOption == 2) {
|
||||
$option = "By Dispatch Instruction";
|
||||
}
|
||||
echo $option ?></td>
|
||||
<td align="right"><?php
|
||||
if ($record->DeliveryOption == 0) {
|
||||
$Ddt = new DateTime($record->DeliveryDate);
|
||||
$Deliverydt = $Ddt->format('d-m-Y');
|
||||
echo $Deliverydt;
|
||||
} else if ($record->DeliveryOption == 1) {
|
||||
$Deliverydt = '';
|
||||
echo $Deliverydt;
|
||||
} ?></td>
|
||||
<td><?php echo $record->DeliverySchedule ?></td>
|
||||
|
||||
|
||||
|
||||
|
||||
<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> </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> </a>
|
||||
|
||||
|
||||
<a data-toggle="tooltip" href="<?php echo base_url() . 'EditAmendPO?PONO=' . $record->PONO . '&ReqType=' . $record->ReqType . '&CapitalRange=' . $record->CapitalRange; ?>"> <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> </a>
|
||||
</td>
|
||||
<?php
|
||||
} ?>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
<a data-toggle="tooltip" href="<?php echo base_url() . 'EditAmendPO?PONO=' . $record->PONO . '&ReqType=' . $record->ReqType . '&CapitalRange=' . $record->CapitalRange; ?>"> <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> </a>
|
||||
</td>
|
||||
<?php
|
||||
} ?>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
|
||||
?>
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
<!-- /.box-body -->
|
||||
</div>
|
||||
<!-- /.box -->
|
||||
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
</div>
|
||||
<!-- /.row -->
|
||||
</section>
|
||||
<!-- /.content -->
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div> <!-- end card body-->
|
||||
</div> <!-- end card -->
|
||||
</div><!-- end col-->
|
||||
</div>
|
||||
</div>
|
||||
</div> <!-- container -->
|
||||
</div> <!-- content -->
|
||||
</div>
|
||||
|
||||
<!-- /.content-wrapper -->
|
||||
<!-- <script>
|
||||
$(function() {
|
||||
@ -265,4 +265,25 @@ $(document).ready(function() {
|
||||
table.draw();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</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>
|
||||
@ -55,153 +55,142 @@
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
</style>
|
||||
<div class="content-wrapper">
|
||||
<!-- Content Header (Page header) -->
|
||||
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<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
|
||||
helper('form');
|
||||
$error = session()->getFlashdata('error');
|
||||
if($error){
|
||||
$type = "error";
|
||||
echo show_alert($type, $error);
|
||||
}
|
||||
$success = session()->getFlashdata('success');
|
||||
if($success){
|
||||
$type = "success";
|
||||
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" >
|
||||
<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>
|
||||
<div class="content-page">
|
||||
<div class="content">
|
||||
<!-- Start Content-->
|
||||
<div class="container-fluid">
|
||||
<!-- 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 List</h4>
|
||||
</div>
|
||||
</div>
|
||||
</div> <?php
|
||||
helper('form');
|
||||
$error = session()->getFlashdata('error');
|
||||
if($error){
|
||||
$type = "error";
|
||||
echo show_alert($type, $error);
|
||||
}
|
||||
$success = session()->getFlashdata('success');
|
||||
if($success){
|
||||
$type = "success";
|
||||
echo show_alert($type, $success);
|
||||
}
|
||||
?>
|
||||
<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>
|
||||
<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="dataTableHistoriek" class="table table-bordered table-hover editableTable" style="background-color:#fff;font-size:12px;">
|
||||
<thead style="background-color: #ddd;">
|
||||
<tr>
|
||||
<th>PO Date</th>
|
||||
<th>PONO#</th>
|
||||
<th>PO Type</th>
|
||||
<th>Supplier Name</th>
|
||||
<th>Total Order Value</th>
|
||||
<th>PO Status</th>
|
||||
<th>Delivery Option</th>
|
||||
<th>Delivery Date</th>
|
||||
<th>Delivery Schedule</th>
|
||||
<th>Action</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody><?php
|
||||
if (!empty($POData)) {
|
||||
$index = 0;
|
||||
foreach ($POData as $record) {
|
||||
$index = $index + 1;
|
||||
?>
|
||||
<tr id="<?php echo $index; ?>">
|
||||
<td align="right"><?php $Pdt = new DateTime($record->PODate);
|
||||
$PODate = $Pdt->format('d-m-Y');
|
||||
echo $PODate
|
||||
<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>
|
||||
<div class="card-body">
|
||||
<table id="po_list" class="table dt-responsive nowrap w-100">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>PO Date</th>
|
||||
<th>PONO#</th>
|
||||
<th>PO Type</th>
|
||||
<th>Supplier Name</th>
|
||||
<th>Total Order Value</th>
|
||||
<th>PO Status</th>
|
||||
<th>Delivery Option</th>
|
||||
<th>Delivery Date</th>
|
||||
<th>Delivery Schedule</th>
|
||||
<th>Action</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (!empty($POData)) {
|
||||
$index = 0;
|
||||
foreach ($POData as $record) {
|
||||
$index = $index + 1;
|
||||
?>
|
||||
<tr id="<?php echo $index; ?>">
|
||||
<td align="right"><?php $Pdt = new DateTime($record->PODate);
|
||||
$PODate = $Pdt->format('d-m-Y');
|
||||
echo $PODate
|
||||
?></td>
|
||||
<td><?php echo $record->PONO ?></td>
|
||||
<td><?php echo $record->ReqType ?></td>
|
||||
|
||||
<td><?php echo $record->SupplierName ?></td>
|
||||
<td align="right"><?php echo $record->TotalOrderValue ?></td>
|
||||
|
||||
<!-- <td><?php echo $record->StatusName ?></td> -->
|
||||
<td><?php
|
||||
$statusMappings = [
|
||||
'PO APPROVED' => 'AWAITING APPROVE',
|
||||
'AWAITING RELEASE' => 'AWAITING APPROVE',
|
||||
'RELEASER ONHOLD' => 'APPROVER ONHOLD',
|
||||
'PO RELEASED' => 'PO APPROVED',
|
||||
];
|
||||
|
||||
if (isset($record->StatusName) && !empty($record->StatusName)) {
|
||||
if (isset($statusMappings[$record->StatusName])) {
|
||||
echo $statusMappings[$record->StatusName];
|
||||
} else {
|
||||
echo $record->StatusName;
|
||||
}
|
||||
} else {
|
||||
echo "Status not provided";
|
||||
}
|
||||
?></td>
|
||||
<td><?php echo $record->PONO ?></td>
|
||||
<td><?php echo $record->ReqType ?></td>
|
||||
|
||||
<td><?php echo $record->SupplierName ?></td>
|
||||
<td align="right"><?php echo $record->TotalOrderValue ?></td>
|
||||
<td><?php $option = 'By Deliver Date';
|
||||
if ($record->DeliveryOption == 1) {
|
||||
$option = "By Schedule";
|
||||
} else if ($record->DeliveryOption == 2) {
|
||||
$option = "By Dispatch Instruction";
|
||||
}
|
||||
echo $option ?></td>
|
||||
<td align="right"><?php
|
||||
if ($record->DeliveryOption == 0) {
|
||||
$Ddt = new DateTime($record->DeliveryDate);
|
||||
$Deliverydt = $Ddt->format('d-m-Y');
|
||||
echo $Deliverydt;
|
||||
} else if ($record->DeliveryOption == 1) {
|
||||
$Deliverydt = '';
|
||||
echo $Deliverydt;
|
||||
} ?></td>
|
||||
<td><?php echo $record->DeliverySchedule ?></td>
|
||||
|
||||
<!-- <td><?php echo $record->StatusName ?></td> -->
|
||||
<td><?php
|
||||
$statusMappings = [
|
||||
'PO APPROVED' => 'AWAITING APPROVE',
|
||||
'AWAITING RELEASE' => 'AWAITING APPROVE',
|
||||
'RELEASER ONHOLD' => 'APPROVER ONHOLD',
|
||||
'PO RELEASED' => 'PO APPROVED',
|
||||
];
|
||||
|
||||
if (isset($record->StatusName) && !empty($record->StatusName)) {
|
||||
if (isset($statusMappings[$record->StatusName])) {
|
||||
echo $statusMappings[$record->StatusName];
|
||||
} else {
|
||||
echo $record->StatusName;
|
||||
}
|
||||
} else {
|
||||
echo "Status not provided";
|
||||
}
|
||||
?></td>
|
||||
<td><?php $option = 'By Deliver Date';
|
||||
if ($record->DeliveryOption == 1) {
|
||||
$option = "By Schedule";
|
||||
} else if ($record->DeliveryOption == 2) {
|
||||
$option = "By Dispatch Instruction";
|
||||
}
|
||||
echo $option ?></td>
|
||||
<td align="right"><?php
|
||||
if ($record->DeliveryOption == 0) {
|
||||
$Ddt = new DateTime($record->DeliveryDate);
|
||||
$Deliverydt = $Ddt->format('d-m-Y');
|
||||
echo $Deliverydt;
|
||||
} else if ($record->DeliveryOption == 1) {
|
||||
$Deliverydt = '';
|
||||
echo $Deliverydt;
|
||||
} ?></td>
|
||||
<td><?php echo $record->DeliverySchedule ?></td>
|
||||
<?php $statusCode = $record->StatusCode;
|
||||
|
||||
<?php $statusCode = $record->StatusCode;
|
||||
|
||||
if ($statusCode == PO_DRAFT || $statusCode == PO_CREATED) { ?>
|
||||
<td> <a data-toggle="tooltip" href="<?php echo base_url() . 'EditPO?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> </a> </td>
|
||||
<?php
|
||||
} else { ?>
|
||||
<td> <a data-toggle="tooltip" href="<?php echo base_url() . 'EditPO?PONO=' . $record->PONO . '&ReqType=' . $record->ReqType . '&CapitalRange=' . $record->CapitalRange; ?>"><i class="fa fa-eye" data-toggle="tooltip" title="<?php echo $record->PONO; ?> - Click here to view Purchase Order details"></i> </a> <a data-toggle="tooltip" href="<?php echo base_url() . 'purchaseorder/CreatePOPrint?PONO=' . $record->PONO . '&ReqType=' . $record->ReqType; ?>" target="new"><i class="fa fa-print" data-toggle="tooltip" title="<?php echo $record->PONO; ?> - Click here to Print the Purchase Order details"></i> </a> </td>
|
||||
<?php
|
||||
} ?>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
<!-- /.box-body -->
|
||||
</div>
|
||||
<!-- /.box -->
|
||||
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
</div>
|
||||
<!-- /.row -->
|
||||
</section>
|
||||
<!-- /.content -->
|
||||
if ($statusCode == PO_DRAFT || $statusCode == PO_CREATED) { ?>
|
||||
<td> <a data-toggle="tooltip" href="<?php echo base_url() . 'EditPO?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> </a> </td>
|
||||
<?php
|
||||
} else { ?>
|
||||
<td> <a data-toggle="tooltip" href="<?php echo base_url() . 'EditPO?PONO=' . $record->PONO . '&ReqType=' . $record->ReqType . '&CapitalRange=' . $record->CapitalRange; ?>"><i class="fa fa-eye" data-toggle="tooltip" title="<?php echo $record->PONO; ?> - Click here to view Purchase Order details"></i> </a> <a data-toggle="tooltip" href="<?php echo base_url() . 'purchaseorder/CreatePOPrint?PONO=' . $record->PONO . '&ReqType=' . $record->ReqType; ?>" target="new"><i class="fa fa-print" data-toggle="tooltip" title="<?php echo $record->PONO; ?> - Click here to Print the Purchase Order details"></i> </a> </td>
|
||||
<?php
|
||||
} ?>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div> <!-- end card body-->
|
||||
</div> <!-- end card -->
|
||||
</div><!-- end col-->
|
||||
</div>
|
||||
</div>
|
||||
</div> <!-- container -->
|
||||
</div> <!-- content -->
|
||||
</div>
|
||||
<!-- /.content-wrapper -->
|
||||
<script src="https://cdn.datatables.net/plug-ins/1.10.11/sorting/date-eu.js"></script>
|
||||
@ -349,4 +338,25 @@ $(document).ready(function() {
|
||||
]
|
||||
});
|
||||
});
|
||||
</script> -->
|
||||
</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>
|
||||
@ -16,7 +16,7 @@
|
||||
|
||||
.dataTables_wrapper {
|
||||
padding-bottom: 0px;
|
||||
margin-top: -3%;
|
||||
/* margin-top: -3%; */
|
||||
}
|
||||
|
||||
.content-wrapper {
|
||||
@ -37,22 +37,26 @@
|
||||
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>
|
||||
|
||||
<div class="container-fluid">
|
||||
<div id="content"></div>
|
||||
<div class="row">
|
||||
<!-- Start Content-->
|
||||
<div class="container-fluid">
|
||||
|
||||
<!-- 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
|
||||
helper('form');
|
||||
@ -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,14 +109,16 @@
|
||||
<input type="hidden" name="txtReqType" id="txtReqType" />
|
||||
</div>
|
||||
</p>
|
||||
</div>
|
||||
<!-- </div> -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="container-fluid">
|
||||
|
||||
<div class="modal fade" id="RequisitionDtlsModal" role="dialog">
|
||||
<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-->
|
||||
<form>
|
||||
@ -206,12 +212,9 @@
|
||||
</div>
|
||||
</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;">
|
||||
</div>
|
||||
<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) {
|
||||
?>
|
||||
@ -258,13 +260,8 @@
|
||||
}
|
||||
?>
|
||||
</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">
|
||||
</table>
|
||||
<div class="modal fade" id="ImportPOCheck" role="dialog">
|
||||
<div class="modal-dialog modal-dialog-centered">
|
||||
<!-- Modal content-->
|
||||
<div class="modal-content modal-content-custom-width">
|
||||
@ -290,10 +287,15 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div> <!-- end card body-->
|
||||
</div> <!-- end card -->
|
||||
</div><!-- end col-->
|
||||
</div>
|
||||
</div>
|
||||
</div> <!-- container -->
|
||||
</div> <!-- content -->
|
||||
</div>
|
||||
|
||||
<script>
|
||||
var POType = '';
|
||||
function SetImportPO() {
|
||||
@ -422,4 +424,24 @@
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<script src="https://cdn.datatables.net/plug-ins/1.10.11/sorting/date-eu.js"></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>
|
||||
@ -1,4 +1,4 @@
|
||||
<div?php
|
||||
<?php
|
||||
//print_r($getTotalServicePoCount);
|
||||
$Empcnt = '';
|
||||
//echo $DEPCode;
|
||||
|
||||
@ -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>
|
||||
|
||||
|
||||
@ -89,56 +89,60 @@ 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="container-fluid">
|
||||
<div class="content-page">
|
||||
<div class="content">
|
||||
<!-- Start Content-->
|
||||
<div class="container-fluid">
|
||||
<!-- 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>
|
||||
|
||||
<form class="Date-filter-form" id="DateRangeFilter">
|
||||
<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>
|
||||
|
||||
<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>
|
||||
<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>
|
||||
<th>Purchase Order Type</th>
|
||||
<th>Cost Center Name</th>
|
||||
<th>Supplier Name</th>
|
||||
<th>Created By</th>
|
||||
<th>Department</th>
|
||||
<!-- <th>Created Date</th> -->
|
||||
|
||||
<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="Requisition" class="table table-hover" style="background-color:#fff;font-size:12px;">
|
||||
<th>Total Order Value</th>
|
||||
<th>Approved By</th>
|
||||
<th>Status</th>
|
||||
<th>Action</th>
|
||||
<th>Remarks</th>
|
||||
|
||||
|
||||
<thead style="background-color: #ddd;">
|
||||
<tr>
|
||||
<th>PO Date</th>
|
||||
<th>Purchase Order Number</th>
|
||||
<th>Purchase Order Type</th>
|
||||
<th>Cost Center Name</th>
|
||||
<th>Supplier Name</th>
|
||||
<th>Created By</th>
|
||||
<th>Department</th>
|
||||
<!-- <th>Created Date</th> -->
|
||||
|
||||
<th>Total Order Value</th>
|
||||
<th>Approved By</th>
|
||||
<th>Status</th>
|
||||
<th>Action</th>
|
||||
<th>Remarks</th>
|
||||
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="ApprovalList">
|
||||
|
||||
<?php
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (!empty($AppList)) {
|
||||
$index = 0;
|
||||
foreach ($AppList as $record) {
|
||||
@ -228,17 +232,15 @@ if (empty($Status)) {
|
||||
|
||||
?>
|
||||
|
||||
|
||||
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
|
||||
<br>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
</tbody>
|
||||
</table>
|
||||
</div> <!-- end card body-->
|
||||
</div> <!-- end card -->
|
||||
</div><!-- end col-->
|
||||
</div>
|
||||
</div>
|
||||
</div> <!-- container -->
|
||||
</div> <!-- content -->
|
||||
</div>
|
||||
|
||||
<script>
|
||||
@ -599,4 +601,25 @@ if (empty($Status)) {
|
||||
table.draw();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</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>
|
||||
@ -76,118 +76,115 @@ span.highlight {
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="content-wrapper">
|
||||
|
||||
<section class="content">
|
||||
|
||||
<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="content-page">
|
||||
<div class="content">
|
||||
<!-- Start Content-->
|
||||
<div class="container-fluid">
|
||||
|
||||
<!-- start page title -->
|
||||
<div>
|
||||
<div class="row">
|
||||
<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>
|
||||
<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">
|
||||
<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" >
|
||||
<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>
|
||||
</div>
|
||||
|
||||
<div class="col-md-4">
|
||||
<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" onclick="Test()"
|
||||
href="<?php echo base_url(); ?>RequisitionForm">Raise New Requisition</a>
|
||||
<?php }?>
|
||||
<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-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>
|
||||
|
||||
<table id="Requisition" class="table table-bordered table-hover"
|
||||
style="background-color:#fff;font-size:12px;">
|
||||
<thead style="background-color: #ddd;">
|
||||
<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>
|
||||
<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>
|
||||
<th>Requisition Type</th>
|
||||
<th>Tot No.OfLineItem </th>
|
||||
<th>Po CreatedLineItem</th>
|
||||
<th>Partially PoCreatedLineItem</th>
|
||||
<th>NewLine Item</th>
|
||||
<th>Status</th>
|
||||
<th>Action</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if(!empty($TotNoOfLine))
|
||||
{
|
||||
foreach($TotNoOfLine as $record)
|
||||
{ //print_r($record);
|
||||
?>
|
||||
<tr>
|
||||
<th>Requisted Date</th>
|
||||
<th>Requisition No</th>
|
||||
<th>Requisition Type</th>
|
||||
<th>Tot No.OfLineItem </th>
|
||||
<th>Po CreatedLineItem</th>
|
||||
<th>Partially PoCreatedLineItem</th>
|
||||
<th>NewLine Item</th>
|
||||
<th>Status</th>
|
||||
<th>Action</th>
|
||||
<td> <?php $Pdt = new DateTime($record->CreatedDate );
|
||||
$PODate = $Pdt->format('d-m-Y');
|
||||
echo $PODate ?>
|
||||
</td>
|
||||
<td><?php echo $record->ReqNo ?></td>
|
||||
<td><?php echo $record->ReqType ?></td>
|
||||
<td><?php echo $record->TotalNoofLineItems ?></td>
|
||||
<td><?php echo $record->PolineItems ?></td>
|
||||
<td><?php echo $record->PartilallyLineItems ?></td>
|
||||
<td> <?php echo $record->newLineItem ?></td>
|
||||
|
||||
|
||||
<td><?php echo $record->StatusName ?></td>
|
||||
|
||||
<td> <a data-toggle="tooltip"
|
||||
href="<?php echo base_url().'EditRequisitionForm?ReqNo='.$record->ReqNo.'&ReqType='.$record->ReqType; ?>"><i
|
||||
class="fas fa-pencil-alt" data-toggle="tooltip"
|
||||
title="<?php echo $record->ReqNo; ?> - Click here to view Requisition details"></i> </a>
|
||||
<a data-toggle="tooltip" onclick="DeleteRow('<?php echo $record->ReqNo; ?>' )"><span
|
||||
class="fas fa-trash"
|
||||
title="<?php echo $record->ReqNo; ?> - Click here to Delete Requisition details"></span></a>
|
||||
</td>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
|
||||
|
||||
|
||||
<?php
|
||||
if(!empty($TotNoOfLine))
|
||||
{
|
||||
foreach($TotNoOfLine as $record)
|
||||
{ //print_r($record);
|
||||
?>
|
||||
<tr>
|
||||
<td> <?php $Pdt = new DateTime($record->CreatedDate );
|
||||
$PODate = $Pdt->format('d-m-Y');
|
||||
echo $PODate ?>
|
||||
</td>
|
||||
<td><?php echo $record->ReqNo ?></td>
|
||||
<td><?php echo $record->ReqType ?></td>
|
||||
<td><?php echo $record->TotalNoofLineItems ?></td>
|
||||
<td><?php echo $record->PolineItems ?></td>
|
||||
<td><?php echo $record->PartilallyLineItems ?></td>
|
||||
<td> <?php echo $record->newLineItem ?></td>
|
||||
|
||||
|
||||
<td><?php echo $record->StatusName ?></td>
|
||||
|
||||
<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"
|
||||
title="<?php echo $record->ReqNo; ?> - Click here to view Requisition details"></i> </a>
|
||||
<a data-toggle="tooltip" onclick="DeleteRow('<?php echo $record->ReqNo; ?>' )"><span
|
||||
class="glyphicon glyphicon-trash"
|
||||
title="<?php echo $record->ReqNo; ?> - Click here to Delete Requisition details"></span></a>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
<?php
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
|
||||
?>
|
||||
</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>
|
||||
@ -302,4 +299,25 @@ $(document).ready(function() {
|
||||
table.draw();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</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>
|
||||
@ -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,29 +127,40 @@ 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="container-fluid">
|
||||
<div class="box-header">
|
||||
<center><b><h3 class="box-title">View Inward Gate Register </h3></b></center>
|
||||
</div>
|
||||
<div class="row">
|
||||
<form class="Date-filter-form" id="DateRangeFilter" >
|
||||
<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>
|
||||
<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="content-page">
|
||||
<div class="content">
|
||||
<!-- Start Content-->
|
||||
<div class="container-fluid">
|
||||
<!-- 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">
|
||||
<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>
|
||||
<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>
|
||||
@ -162,9 +173,9 @@ var data = suggestion.DriverMobileNumber;
|
||||
<th>IGR Status</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if(!empty($IGR))
|
||||
{ $index = 0;
|
||||
foreach($IGR as $record)
|
||||
@ -212,13 +223,17 @@ var data = suggestion.DriverMobileNumber;
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- box closed here -->
|
||||
</tbody>
|
||||
</table>
|
||||
</div> <!-- end card body-->
|
||||
</div> <!-- end card -->
|
||||
</div><!-- end col-->
|
||||
</div>
|
||||
</div>
|
||||
</div> <!-- container -->
|
||||
</div> <!-- content -->
|
||||
</div>
|
||||
<!-- box closed here -->
|
||||
<!-- Igr modal fade -->
|
||||
<div class="modal fade" id="Igrshow" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
@ -504,47 +519,47 @@ var data = suggestion.DriverMobileNumber;
|
||||
<!-- CostCenter modal fade closed-->
|
||||
<!-- File modal -->
|
||||
<div class="modal fade" id="Fileshow" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
<!-- Modal content-->
|
||||
<form id="igrfileform">
|
||||
<div class="modal-content" style="width:800px;">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||
<center>
|
||||
<h4>Inward Gate File Details</h4>
|
||||
</center> <!-- IGR number should display here-->
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<div style="text-align: right; margin:10px;">
|
||||
<input type="button" class="btn btn-primary" id="addmorebutton" value=" ADD FILES..">
|
||||
<div class="modal-dialog">
|
||||
<!-- Modal content-->
|
||||
<form id="igrfileform">
|
||||
<div class="modal-content" style="width:800px;">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||
<center>
|
||||
<h4>Inward Gate File Details</h4>
|
||||
</center> <!-- IGR number should display here-->
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<div style="text-align: right; margin:10px;">
|
||||
<input type="button" class="btn btn-primary" id="addmorebutton" value=" ADD FILES..">
|
||||
</div>
|
||||
<div id="newdiv"></div>
|
||||
<input type="hidden" name="hidecounter" id="hidecounter" value="0" />
|
||||
<input type="hidden" name="hidegrandcounter" id="hidegrandcounter" value="0" />
|
||||
<input type="hidden" name="hiddenIGRNO" id="hiddenIGRNO" />
|
||||
<input type="hidden" name="hiddenPONO" id="hiddenPONO" />
|
||||
</div>
|
||||
<div id="contents"> </div>
|
||||
<table class="table table-bordered" id="Inwardgateregisterfile" style="background-color:#fff;font-size:12px;">
|
||||
<thead style="background-color:#ddd;">
|
||||
<tr>
|
||||
<th>SNo</th>
|
||||
<th>BillNO</th>
|
||||
<th>PONO</th>
|
||||
<th>FileName</th>
|
||||
<th>Action</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="tblefile">
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="modal-footer">
|
||||
<a class="btn btn-cancel" data-dismiss="modal" value="close">Close</a>
|
||||
</div>
|
||||
<div id="newdiv"></div>
|
||||
<input type="hidden" name="hidecounter" id="hidecounter" value="0" />
|
||||
<input type="hidden" name="hidegrandcounter" id="hidegrandcounter" value="0" />
|
||||
<input type="hidden" name="hiddenIGRNO" id="hiddenIGRNO" />
|
||||
<input type="hidden" name="hiddenPONO" id="hiddenPONO" />
|
||||
</div>
|
||||
<div id="contents"> </div>
|
||||
<table class="table table-bordered" id="Inwardgateregisterfile" style="background-color:#fff;font-size:12px;">
|
||||
<thead style="background-color:#ddd;">
|
||||
<tr>
|
||||
<th>SNo</th>
|
||||
<th>BillNO</th>
|
||||
<th>PONO</th>
|
||||
<th>FileName</th>
|
||||
<th>Action</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="tblefile">
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="modal-footer">
|
||||
<a class="btn btn-cancel" data-dismiss="modal" value="close">Close</a>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- File modal fade closed -->
|
||||
<!-- Bill modal fade -->
|
||||
<div class="modal fade" id="billModel" role="dialog" data-backdrop-limit="1" aria-labelledby="myModalLabel">
|
||||
@ -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>
|
||||
Loading…
Reference in New Issue
Block a user