sno remove for datesort

This commit is contained in:
venbatechnologies 2018-06-23 14:35:34 +05:30
parent e0dc5f46d7
commit 9701f5d7ad
20 changed files with 104 additions and 62 deletions

View File

@ -21,7 +21,7 @@ class servicepurchaseorder extends BaseController
parent::__construct();
$this->load->model('purchaseorder_model');
$this->load->library('session');
$this->load->library('session');
$this->load->library('form_validation');
$this->load->model('requistion_model');
$this->isLoggedIn();
@ -61,7 +61,7 @@ class servicepurchaseorder extends BaseController
$HTML="";
for ($i = 0; $i < count($result); $i++)
{
$SNo = $i + 1;
//$SNo = $i + 1;
$ReqNo = $result[$i]['ReqNo'];
$Reqedby = $result[$i]['FirstName'];
$ReqDate = $result[$i]['ReqDate'];
@ -77,7 +77,7 @@ class servicepurchaseorder extends BaseController
$HTML.="<tr id='".$SNo."'>
<td align='left'>".$SNo."</td>
<td align='left'>". $ReqNo."</td>
<td align='left'>".$Reqedby."</td>
<td align='left'>".$ReqDate."</td>

View File

@ -16,7 +16,8 @@ class configmodel extends CI_Model
$this->db->select('Config.Config_ID, Config.ConfigName ,Config.Comments,Config.CreatedDate');
$this->db->from('T_ConfigMaster as Config');
// $this->db->join('t_configdetails as Con','Con.Config_ID=Config.Config_ID');
$this->db->order_by('Config.CreatedDate','desc');
//$this->db->order_by('hourlyid','desc');
$query = $this->db->get();
$result = $query->result();

View File

@ -267,7 +267,7 @@ join ip_invoice_items on ip_invoice_items .invoice_id =ip_invoices.invoice_id
}
$sql .= "ORDER BY ip_invoices.invoice_date_created DESC";
$query = $this->db->query($sql);
return $query->result();
}

View File

@ -22,7 +22,7 @@
<table id="example1" class="table table-bordered table-hover editableTable" style="font-size:12px;">
<thead>
<tr style="background-color:#ddf">
<th>#</th>
<!-- <th>#</th> -->
<th>PONO#</th>
<th>PO Type</th>
<th>PO Date</th>
@ -44,7 +44,7 @@
$index = $index + 1;
?>
<tr id="<?php echo $index ; ?>">
<td align="left"><?php echo $index ; ?></td>
<!-- <td align="left"><?php echo $index ; ?></td> -->
<td><?php echo $record->PONO ?></td>
<td><?php echo $record->ReqType ?></td>
<td align="right"><?php $Pdt = new DateTime($record->PODate);
@ -104,18 +104,18 @@
<!-- /.content-wrapper -->
<script>
$(function () {
$.fn.dataTable.moment( 'DD-MM-YYYY' );
$('#example1').DataTable({
"paging": true,
"lengthChange": true,
"searching": true,
"ordering": true,
"columnDefs" : [{"targets":3, "type":"date-eu"}],
"aaSorting": [[ 0, "desc" ]],
// "columnDefs" : [{"targets":3, "type":"date-eu"}],
"aaSorting": [[ 2, "desc" ]],
"info": true,
"autoWidth": false
});
});
</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.16/sorting/datetime-moment.js"></script>

View File

@ -68,18 +68,19 @@
</div>
</section>
</div>
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
<script type="text/javascript">
$(function () {
$.fn.dataTable.moment( 'DD-MM-YYYY' );
$('#histtable').DataTable({
"paging": true,
"lengthChange": true,
"searching": true,
"ordering": true,
"columnDefs" : [{"targets":9, "type":"date-eu"}],
"aaSorting": [[ 0, "desc" ]],
// "columnDefs" : [{"targets":9, "type":"date-eu"}],
"aaSorting": [[ 7, "desc" ]],
"info": true,
"autoWidth": true

View File

@ -21,7 +21,7 @@
<table id="dataTableHistoriek" class="table table-bordered table-hover editableTable" style="font-size:12px;">
<thead>
<tr style="background-color:#ddf">
<th>#</th>
<!-- <th>#</th> -->
<th>Id</th>
<th>Product Name</th>
<th>Quantity</th>
@ -39,7 +39,7 @@
$index = $index + 1;
?>
<tr id="<?php echo $index ; ?>">
<td><?php echo $index ; ?></td>
<!-- <td><?php echo $index ; ?></td> -->
<td><?php echo "FP".$record->FPId ?></td>
<td><?php echo $record->product_description."-".$record->product_name; ?></td> <td><?php echo $record->Quantity; ?></td>
<td><?php echo $record->Price ?></td>
@ -84,7 +84,7 @@
// "columnDefs" : [{"targets":3, "type":"date-eu"}],
"bInfo": true,
"aaSorting": [[ 5, "desc" ]],
"aaSorting": [[ 4, "desc" ]],
"info": true,
"autoWidth": true
});

View File

@ -355,6 +355,7 @@
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
<script>
@ -368,6 +369,10 @@ $.fn.dataTable.moment( 'DD-MM-YYYY' );
"language": {
"emptyTable":"<center> Data Not Found ! </center>"
},
"aaSorting": [[ 0, "desc" ]],
"autoWidth": false,
orderCellsTop: true,
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
"<'row'<'col-md-6'><'col-md-6'>>" +
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",

View File

@ -72,17 +72,18 @@
</section>
</div>
<script type="text/javascript" src="<?php echo base_url(); ?>assets/js/common.js" charset="utf-8"></script>
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
<script type="text/javascript">
$(function () {
$.fn.dataTable.moment( 'DD-MM-YYYY' );
$('#datatable').DataTable({
"paging": true,
"lengthChange": true,
"searching": true,
"ordering": true,
"columnDefs" : [{"targets":7, "type":"date-eu"}],
"aaSorting": [[ 0, "desc" ]],
// "columnDefs" : [{"targets":7, "type":"date-eu"}],
"aaSorting": [[ 7, "desc" ]],
"info": true,
"autoWidth": true
@ -90,5 +91,5 @@
});
</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> -->

View File

@ -154,7 +154,11 @@ if(!empty($amountpaid))
<td align="left" id="date"><span><?php echo $ap->Podate?></span></td>
<!-- <td align="left" id="date"><span><?php echo $ap->Podate?></span></td> -->
<td align="right"><?php $dt = new DateTime($ap->Podate);
$Podate = $dt->format('d-m-Y'); echo $Podate ?> </td>
<td align="left" id="pono"><a href="<?= base_url() ?>cashbook/mappingdebit?sid=<?php echo $ap->PONO;?>"><span><?php echo $ap->PONO?></span></a></td>
<!--<td align="left"><a href="<?= base_url() ?>cashbook/bankreceipt?sid=<?php echo $t->PONO;?>"><span><?php echo $t->PONO?></span></a></td>-->
@ -195,12 +199,13 @@ if(!empty($amountpaid))
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
<script>
$(document).ready(function() {
$.fn.dataTable.moment( 'DD-MM-YYYY' );
$.fn.dataTable.moment( 'DD-MM-YYYY' );
table = $('#req').DataTable( {
"aaSorting": [[ 0, "desc" ]],
"info": true,

View File

@ -38,10 +38,17 @@
<td><?php echo $record->Config_ID?></td>
<td><?php echo $record->ConfigName ?></td>
<td><?php echo $record->Comments ?> </td>
<td><?php echo $record->CreatedDate?></td>
<!-- <td align="right"><?php
$date = new DateTime($record->CreatedDate);
echo $date->format('d-m-Y'); ?></td> -->
<!-- <td><?php echo $record->CreatedDate?></td> -->
<!-- <td align="right"><?php $dt = new DateTime($record->CreatedDate);
$CreatedDate = $dt->format('d-m-Y'); echo $CreatedDate ?> </td> -->
<?php if(date('d-m-Y',strtotime($record->CreatedDate))=="30-11--0001"){
$cdate = '00-00-0000';
}else{
$cdate = date('d-m-Y',strtotime($record->CreatedDate));
} ?>
<td align="right"><?php echo $cdate;?> </td>
<td><a href="<?php echo base_url().'configurationctrl/editOldconfig?ConfigID='.$record->Config_ID; ?>"><i class="fa fa-pencil"></i>&nbsp;&nbsp;&nbsp;</a>
<a><i class="fa fa-trash"></i>&nbsp;&nbsp;&nbsp;</a></td>
@ -60,16 +67,18 @@
</section>
</div>
<script type="text/javascript" src="<?php echo base_url(); ?>assets/js/common.js" charset="utf-8"></script>
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
<script type="text/javascript">
$(function () {
$.fn.dataTable.moment( 'DD-MM-YYYY' );
$('#configtable').DataTable({
"paging": true,
"lengthChange": true,
"searching": true,
"ordering": true,
"aaSorting": [[ 0, "desc" ]],
"aaSorting": [[ 3, "desc" ]],
"info": true,
"autoWidth": true

View File

@ -70,17 +70,18 @@
</section>
</div>
<script type="text/javascript" src="<?php echo base_url(); ?>assets/js/common.js" charset="utf-8"></script>
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
<script type="text/javascript">
$(function () {
$.fn.dataTable.moment( 'DD-MM-YYYY' );
$('#datatable').DataTable({
"paging": true,
"lengthChange": true,
"searching": true,
"ordering": true,
"columnDefs" : [{"targets":3, "type":"date-eu"}],
"aaSorting": [[ 0, "desc" ]],
// "columnDefs" : [{"targets":3, "type":"date-eu"}],
"aaSorting": [[ 3, "desc" ]],
"info": true,
"autoWidth": true
@ -88,5 +89,5 @@
});
</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> -->

View File

@ -132,7 +132,7 @@
<tr>
<th>S.No</th>
<!-- <th>S.No</th> -->
<th>OrderedDate</th>
<th>DispatchDate</th>
<th>CustomerName</th>
@ -155,7 +155,7 @@
?>
<tr>
<td style="text-align:left;"><span><?php echo ++$i;?></span></td>
<!-- <td style="text-align:left;"><span><?php echo ++$i;?></span></td> -->
<td ><?php
$itemdate=date("d-m-Y",strtotime($rel->invoice_date_created));
echo $itemdate;
@ -254,19 +254,23 @@
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
<script>
// Bootstrap datepicker
// Set up your table
$(document).ready(function() {
$.fn.dataTable.moment( 'DD-MM-YYYY' );
table = $('#cc').DataTable( {
"language": {
"emptyTable": "<center> Data Not Found ! </center>"
},
"aaSorting": [[ 2, "desc" ]],
"autoWidth": false,
"aaSorting": [[ 1, "desc" ]],
"autoWidth": false,
orderCellsTop: true,
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
"<'row'<'col-md-6'><'col-md-6'>>" +
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",

View File

@ -185,7 +185,7 @@ $(document).ready(function() {
$.fn.dataTable.moment( 'DD-MM-YYYY' );
table = $('#inexlist').DataTable( {
"aaSorting": [[ 1, "desc" ]],
"autoWidth": false,
//"columnDefs" : [{"targets":1, "type":"date-eu"}],
orderCellsTop: true,

View File

@ -21,7 +21,7 @@
<table id="dataTableHistoriek" class="table table-bordered table-hover editableTable" style="font-size:12px;">
<thead>
<tr style="background-color:#ddf">
<th>#</th>
<!-- <th>#</th> -->
<th>Material Adjustment No</th>
<th>Material Code</th>
<th>Supplier Name</th>
@ -40,7 +40,7 @@
$index = $index + 1;
?>
<tr id="<?php echo $index ; ?>">
<td><?php echo $index ; ?></td>
<!-- <td><?php echo $index ; ?></td> -->
<td><?php echo "Adj".$record->AdjustmentId ?></td>
<td><a data-toggle="modal" data-target="#materialreport" data-userid="<?php echo $record->AdjustmentId?>" data-id="<%=index%>" data-dismiss="modal"><?php echo $record->MaterialCode."-".$record->MaterialName; ?></a></td>
<td><?php echo $record->SupplierID."-".$record->SupplierName; ?></td>
@ -189,7 +189,7 @@
"scrollCollapse" : true,
"searching" : true,
"ordering": true,
"aaSorting": [[ 5, "desc" ]],
"aaSorting": [[ 4, "desc" ]],
// "columnDefs" : [{"targets":3, "type":"date-eu"}],
"bInfo": true
});

View File

@ -21,7 +21,7 @@
<table id="example1" class="table table-bordered table-hover editableTable" style="font-size:12px;">
<thead>
<tr style="background-color:#ddf">
<th>#</th>
<!-- <th>#</th> -->
<th>Complaint Id</th>
<th>Date</th>
<th>Customer Name</th>
@ -50,7 +50,7 @@
?>
<tr id="<?php echo $index ; ?>">
<td align="left"><?php echo $index ; ?></td>
<!-- <td align="left"><?php echo $index ; ?></td> -->
<!-- <td contenteditable="true"><?php echo $nc->CId?></td> -->
<td><a target="_blank" href="<?php echo base_url() ?>purchaseorder/EditComplaint?CId=<?php echo $nc->CId ?>" data-id="<%=index%>" data-userid="<?php echo $nc->CId ?>" ><u><?php echo "COM".$nc->CId ?></u>&nbsp;&nbsp;&nbsp;&nbsp;</a>
</td>
@ -106,17 +106,17 @@
<!-- /.content -->
</div>
<!-- /.content-wrapper -->
<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 src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
<script>
$(function () {
$.fn.dataTable.moment( 'DD-MM-YYYY' );
$('#example1').DataTable({
"paging": true,
"lengthChange": true,
"searching": true,
"columnDefs" : [{"targets":2, "type":"date-eu"}],
// "columnDefs" : [{"targets":2, "type":"date-eu"}],
"aaSorting": [[ 1, "desc" ]],
"ordering": true,
"info": true,
"autoWidth": false

View File

@ -21,7 +21,7 @@
<table id="example1" class="table table-bordered table-hover editableTable" style="font-size:12px;">
<thead>
<tr style="background-color:#ddf">
<th>#</th>
<!-- <th>#</th> -->
<th>OGR No</th>
<th>Type</th>
<th>PO/INVOICE No</th>
@ -48,7 +48,7 @@
?>
<tr id="<?php echo $index ; ?>">
<td><?php echo $index;?></td>
<!-- <td><?php echo $index;?></td> -->
<td><?php echo "OGR".$ogr->OGRNO;?></td>
<td><?php echo $ogr->OgrType;?></td>
<td><?php echo $ogr->PONO_INV;?></td>
@ -95,7 +95,7 @@
"lengthChange": true,
"searching": true,
"ordering": true,
"aaSorting": [[ 6, "desc" ]],
"aaSorting": [[ 5, "desc" ]],
"info": true,
"autoWidth": false
});

View File

@ -111,7 +111,7 @@
<table id="StatusTable" class="table table-bordered table-hover editabletable IGR_Line" style="background-color:#fff;font-size:12px;">
<thead style="background-color:#ddf">
<tr>
<th>S.NO</th>
<!-- <th>S.NO</th> -->
<th>Req No</th>
<th>Req By</th>
<th>Req Date</th>
@ -138,8 +138,22 @@
</div>
</div>
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
<script>
$(function () {
$.fn.dataTable.moment( 'DD-MM-YYYY' );
$('#Inwardgateregistertable').DataTable({
"paging": true,
"lengthChange": true,
"searching": true,
"ordering": true,
"aaSorting": [[ 2, "desc" ]],
"info": true,
"autoWidth": true
});
$('#PONO').change(function() {
$("#tblAppend").empty();

View File

@ -88,7 +88,7 @@ span.highlight {
<td><?php echo $record->StatusName ?></td>
<td align="right"><?php $dt = new DateTime($record->ReqDate);
$ReqDate = $dt->format('d-m-Y'); echo $ReqDate ?>
$ReqDate = $dt->format('d-m-Y'); echo $ReqDate ?> </td>
<td> <a data-toggle="tooltip" href="<?php echo base_url().'EditStoreRequisition?StoreReqNo='.$record->StoreReqNo; ?>"><i class="fa fa-pencil" data-toggle="tooltip" title="<?php echo $record->StoreReqNo; ?> - Click here to view addstorerequisitionslip"></i>&nbsp;&nbsp;&nbsp;</a> <a data-toggle="tooltip" onclick="DeleteRow('<?php echo $record->StoreReqNo; ?>' )" ><span class="glyphicon glyphicon-trash" title="<?php echo $record->StoreReqNo; ?> - Click here to Delete Requisition details"></span></a> </td>
@ -143,21 +143,22 @@ $ReqDate = $dt->format('d-m-Y'); echo $ReqDate ?>
</script>
<script>
$(function () {
$.fn.dataTable.moment( 'DD-MM-YYYY' );
$('#Requisition').DataTable({
"paging": true,
"lengthChange": true,
"searching": true,
"ordering": true,
"columnDefs" : [{"targets":5, "type":"date-eu"}],
// "columnDefs" : [{"targets":5, "type":"date-eu"}],
// "info": true,
// "autoWidth": true
"aaSorting": [[ 0, "desc" ]],
"aaSorting": [[ 5, "desc" ]],
"info": true,
"autoWidth": true
@ -165,5 +166,5 @@ $ReqDate = $dt->format('d-m-Y'); echo $ReqDate ?>
});
});
</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> -->

View File

@ -27,7 +27,7 @@
<table id="Inwardgateregistertable" class="table table-bordered table-hover" style="background-color:#fff;font-size:12px;">
<thead style="background-color:#ddf">
<tr>
<th>S.No</th>
<!-- <th>S.No</th> -->
<th>IGR No</th>
<th>PO No</th>
<th>Supplier Name</th>
@ -50,7 +50,7 @@
$index = $index +1;
?>
<tr id="<?php echo $index ?>" >
<td style="text-align: center;"><?php echo $index?></td>
<!-- <td style="text-align: center;"><?php echo $index?></td> -->
<td><a data-toggle="modal" data-target="#Igrshow" data-id="<%=index%>" data-userid="<?php echo $record->IGRNO ?>" > <u><?php echo $record->IGRNO ?></u></a></td>
<td><?php echo $record->PONO ?></a></td>
<td><?php echo $record->SupplierName ?></td>
@ -245,7 +245,7 @@
"lengthChange": true,
"searching": true,
"ordering": true,
"aaSorting": [[ 5, "desc" ]],
"aaSorting": [[ 4, "desc" ]],
"info": true,
"autoWidth": true

View File

@ -18,7 +18,7 @@
* NOTE: If you change these, also change the error_reporting() code below
*
*/
define('ENVIRONMENT', 'testing');
define('ENVIRONMENT', 'development');
/*
*---------------------------------------------------------------
* ERROR REPORTING