sia-datatable total based on Search field
This commit is contained in:
parent
b049a75f9a
commit
3224b1c346
@ -1753,7 +1753,7 @@ function ireport_year_wise($a,$b){
|
|||||||
// group by month(CreatedDate)
|
// group by month(CreatedDate)
|
||||||
// ";
|
// ";
|
||||||
//echo $sql;
|
//echo $sql;
|
||||||
$sql="select dat as CreatedDate,sum(quantity)as quantity,sum(value) as value,materialrcvddate
|
$sql="select materialrcvddate,sum(quantity)as quantity,sum(value) as value,materialrcvddate
|
||||||
from year_inward
|
from year_inward
|
||||||
where status != 'ST030' and date(materialrcvddate) >= '$a-04-01' and date(materialrcvddate) <= '$b-03-31'
|
where status != 'ST030' and date(materialrcvddate) >= '$a-04-01' and date(materialrcvddate) <= '$b-03-31'
|
||||||
group by month(materialrcvddate)";
|
group by month(materialrcvddate)";
|
||||||
|
|||||||
@ -1,12 +1,5 @@
|
|||||||
|
|
||||||
|
|
||||||
<?php
|
|
||||||
if(!empty($mmr))
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
<style>
|
<style>
|
||||||
.dataTables_filter input {padding: 4px;}
|
.dataTables_filter input {padding: 4px;}
|
||||||
@ -143,7 +136,7 @@ if(!empty($mmr))
|
|||||||
<th>Material Code</th>
|
<th>Material Code</th>
|
||||||
<th>Material Name</th>
|
<th>Material Name</th>
|
||||||
<th>UOM</th>
|
<th>UOM</th>
|
||||||
<th>Average Rate ( <i class="fa fa-rupee " ></i>)</th>
|
<th>Average Rate (₹)</th>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -210,6 +203,9 @@ if(!empty($mmr))
|
|||||||
// Set up your table
|
// Set up your table
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
table = $('#cc').DataTable( {
|
table = $('#cc').DataTable( {
|
||||||
|
"language": {
|
||||||
|
"emptyTable": "<center> Data Not Found ! </center>"
|
||||||
|
},
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||||
@ -227,7 +223,29 @@ $(document).ready(function() {
|
|||||||
},
|
},
|
||||||
|
|
||||||
'colvis'
|
'colvis'
|
||||||
]
|
],
|
||||||
|
|
||||||
|
"footerCallback": function ( row, data, start, end, display ) {
|
||||||
|
var api = this.api(), data;
|
||||||
|
|
||||||
|
// Remove the formatting to get integer data for summation
|
||||||
|
var intVal = function ( i ) {
|
||||||
|
return typeof i === 'string' ?
|
||||||
|
parseFloat(i.replace(/[^0.00-9.00]+/g,"")*1) :
|
||||||
|
typeof i === 'number' ?
|
||||||
|
parseFloat(i) : 0;
|
||||||
|
};
|
||||||
|
|
||||||
|
TotalVALUE = api
|
||||||
|
.column( 4, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 4 ).footer() ).html( TotalVALUE.toFixed(2) );
|
||||||
|
|
||||||
|
}
|
||||||
} );
|
} );
|
||||||
} );
|
} );
|
||||||
$('#mySelect').on('change',function(){
|
$('#mySelect').on('change',function(){
|
||||||
|
|||||||
@ -1,12 +1,4 @@
|
|||||||
|
|
||||||
|
|
||||||
<?php
|
|
||||||
if(!empty($rel_po))
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
<style>
|
<style>
|
||||||
.dataTables_filter input {padding: 4px;}
|
.dataTables_filter input {padding: 4px;}
|
||||||
@ -193,7 +185,7 @@ if(!empty($rel_po))
|
|||||||
<th>PO Date</th>
|
<th>PO Date</th>
|
||||||
<th>Released Date</th>
|
<th>Released Date</th>
|
||||||
<th>Requested Department</th>
|
<th>Requested Department</th>
|
||||||
<th>Total Order Value ( <i class="fa fa-rupee "></i>)</th>
|
<th>Total Order Value (₹)</th>
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
@ -259,6 +251,9 @@ if(!empty($rel_po))
|
|||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
$.fn.dataTable.moment( 'DD-MM-YYYY' );
|
$.fn.dataTable.moment( 'DD-MM-YYYY' );
|
||||||
table = $('#req').DataTable( {
|
table = $('#req').DataTable( {
|
||||||
|
"language": {
|
||||||
|
"emptyTable": "<center> Data Not Found ! </center>"
|
||||||
|
},
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||||
@ -276,7 +271,27 @@ $(document).ready(function() {
|
|||||||
},
|
},
|
||||||
|
|
||||||
'colvis'
|
'colvis'
|
||||||
]
|
],
|
||||||
|
"footerCallback": function ( row, data, start, end, display ) {
|
||||||
|
var api = this.api(), data;
|
||||||
|
|
||||||
|
// Remove the formatting to get integer data for summation
|
||||||
|
var intVal = function ( i ) {
|
||||||
|
return typeof i === 'string' ?
|
||||||
|
parseFloat(i.replace(/[^0.00-9.00]+/g,"")*1) :
|
||||||
|
typeof i === 'number' ?
|
||||||
|
parseFloat(i) : 0;
|
||||||
|
};
|
||||||
|
|
||||||
|
TotalOrderValue = api
|
||||||
|
.column( 5, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 5 ).footer() ).html( TotalOrderValue.toFixed(2) );
|
||||||
|
}
|
||||||
} );
|
} );
|
||||||
} );
|
} );
|
||||||
|
|
||||||
|
|||||||
@ -221,7 +221,7 @@
|
|||||||
<th style="text-align:center">IGR Created Date</th>
|
<th style="text-align:center">IGR Created Date</th>
|
||||||
<th style="text-align:center">Material Received Date</th>
|
<th style="text-align:center">Material Received Date</th>
|
||||||
<th style="text-align:center">Supplier Name</th>
|
<th style="text-align:center">Supplier Name</th>
|
||||||
<th style="text-align:center">Total (<i class="fa fa-rupee "></i>)</th>
|
<th style="text-align:center">Total (₹)</th>
|
||||||
<th style="text-align:center">Attachments</th>
|
<th style="text-align:center">Attachments</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
@ -361,7 +361,9 @@ $("#Fileshow").modal("show");
|
|||||||
|
|
||||||
$.fn.dataTable.moment( 'DD-MM-YYYY' );
|
$.fn.dataTable.moment( 'DD-MM-YYYY' );
|
||||||
table = $('#cc').DataTable( {
|
table = $('#cc').DataTable( {
|
||||||
|
"language": {
|
||||||
|
"emptyTable":"<center> Data Not Found ! </center>"
|
||||||
|
},
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||||
@ -379,7 +381,30 @@ $.fn.dataTable.moment( 'DD-MM-YYYY' );
|
|||||||
},
|
},
|
||||||
|
|
||||||
'colvis'
|
'colvis'
|
||||||
]
|
],
|
||||||
|
"footerCallback": function ( row, data, start, end, display ) {
|
||||||
|
var api = this.api(), data;
|
||||||
|
|
||||||
|
// Remove the formatting to get integer data for summation
|
||||||
|
var intVal = function ( i ) {
|
||||||
|
return typeof i === 'string' ?
|
||||||
|
parseFloat(i.replace(/[^0.00-9.00]+/g,"")*1) :
|
||||||
|
typeof i === 'number' ?
|
||||||
|
parseFloat(i) : 0;
|
||||||
|
};
|
||||||
|
|
||||||
|
FinalTotal = api
|
||||||
|
.column( 4, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 4 ).footer() ).html( FinalTotal.toFixed(2).bold() );
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
} );
|
} );
|
||||||
} );
|
} );
|
||||||
|
|
||||||
|
|||||||
@ -1,12 +1,4 @@
|
|||||||
|
|
||||||
|
|
||||||
<?php
|
|
||||||
if(!empty($mms))
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
<style>
|
<style>
|
||||||
.dataTables_filter input {padding: 4px;}
|
.dataTables_filter input {padding: 4px;}
|
||||||
@ -31,8 +23,8 @@ if(!empty($mms))
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
<div class="content-wrapper">
|
<div class="content-wrapper">
|
||||||
<section class="content">
|
<section class="content">
|
||||||
<div class="row" style="min-height: 600px;">
|
<div class="row" style="min-height: 600px;">
|
||||||
<!-- Left col -->
|
<!-- Left col -->
|
||||||
@ -58,7 +50,7 @@ if(!empty($mms))
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th style="text-align:center">Quantity</th>
|
<th style="text-align:center">Quantity</th>
|
||||||
<th style="text-align:center">Value (<i class="fa fa-rupee "></i>)</th>
|
<th style="text-align:center">Value (₹)</th>
|
||||||
|
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
@ -168,6 +160,9 @@ if(!empty($mms))
|
|||||||
// Set up your table
|
// Set up your table
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
table = $('#cc').DataTable( {
|
table = $('#cc').DataTable( {
|
||||||
|
"language": {
|
||||||
|
"emptyTable":"<center> Data Not Found ! </center>"
|
||||||
|
},
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||||
@ -185,7 +180,39 @@ $(document).ready(function() {
|
|||||||
},
|
},
|
||||||
|
|
||||||
'colvis'
|
'colvis'
|
||||||
]
|
],
|
||||||
|
"footerCallback": function ( row, data, start, end, display ) {
|
||||||
|
var api = this.api(), data;
|
||||||
|
|
||||||
|
// Remove the formatting to get integer data for summation
|
||||||
|
var intVal = function ( i ) {
|
||||||
|
return typeof i === 'string' ?
|
||||||
|
parseFloat(i.replace(/[^0.00-9.00]+/g,"")*1) :
|
||||||
|
typeof i === 'number' ?
|
||||||
|
parseFloat(i) : 0;
|
||||||
|
};
|
||||||
|
|
||||||
|
TotalQTY = api
|
||||||
|
.column( 2, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 2 ).footer() ).html( TotalQTY.toFixed().bold() );
|
||||||
|
|
||||||
|
TotalVALUE = api
|
||||||
|
.column( 3, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 3 ).footer() ).html( TotalVALUE.toFixed(2).bold() );
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
} );
|
} );
|
||||||
} );
|
} );
|
||||||
$('#mySelect').on('change',function(){
|
$('#mySelect').on('change',function(){
|
||||||
|
|||||||
@ -1,12 +1,3 @@
|
|||||||
|
|
||||||
|
|
||||||
<?php
|
|
||||||
if(!empty($mms))
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
<style>
|
<style>
|
||||||
.dataTables_filter input {padding: 4px;}
|
.dataTables_filter input {padding: 4px;}
|
||||||
@ -59,7 +50,7 @@ if(!empty($mms))
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th style="text-align:center">Quantity</th>
|
<th style="text-align:center">Quantity</th>
|
||||||
<th style="text-align:center">Value (<i class="fa fa-rupee "></i>)</th>
|
<th style="text-align:center">Value (₹)</th>
|
||||||
|
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
@ -178,6 +169,9 @@ if(!empty($mms))
|
|||||||
// Set up your table
|
// Set up your table
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
table = $('#cc').DataTable( {
|
table = $('#cc').DataTable( {
|
||||||
|
"language": {
|
||||||
|
"emptyTable":"<center> Data Not Found ! </center>"
|
||||||
|
},
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||||
@ -195,7 +189,38 @@ $(document).ready(function() {
|
|||||||
},
|
},
|
||||||
|
|
||||||
'colvis'
|
'colvis'
|
||||||
]
|
],
|
||||||
|
"footerCallback": function ( row, data, start, end, display ) {
|
||||||
|
var api = this.api(), data;
|
||||||
|
|
||||||
|
// Remove the formatting to get integer data for summation
|
||||||
|
var intVal = function ( i ) {
|
||||||
|
return typeof i === 'string' ?
|
||||||
|
parseFloat(i.replace(/[^0.00-9.00]+/g,"")*1) :
|
||||||
|
typeof i === 'number' ?
|
||||||
|
parseFloat(i) : 0;
|
||||||
|
};
|
||||||
|
|
||||||
|
TotalQTY = api
|
||||||
|
.column( 3, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 3 ).footer() ).html( TotalQTY.toFixed().bold() );
|
||||||
|
|
||||||
|
TotalVALUE = api
|
||||||
|
.column( 4, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 4 ).footer() ).html( TotalVALUE.toFixed(2).bold() );
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
} );
|
} );
|
||||||
} );
|
} );
|
||||||
$('#mySelect').on('change',function(){
|
$('#mySelect').on('change',function(){
|
||||||
|
|||||||
@ -1,12 +1,5 @@
|
|||||||
|
|
||||||
|
|
||||||
<?php
|
|
||||||
if(!empty($mms))
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
<style>
|
<style>
|
||||||
.dataTables_filter input {padding: 4px;}
|
.dataTables_filter input {padding: 4px;}
|
||||||
@ -58,7 +51,7 @@ if(!empty($mms))
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th style="text-align:center">Quantity</th>
|
<th style="text-align:center">Quantity</th>
|
||||||
<th style="text-align:center">Value (<i class="fa fa-rupee "></i>)</th>
|
<th style="text-align:center">Value (₹)</th>
|
||||||
|
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
@ -168,6 +161,9 @@ if(!empty($mms))
|
|||||||
// Set up your table
|
// Set up your table
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
table = $('#cc').DataTable( {
|
table = $('#cc').DataTable( {
|
||||||
|
"language": {
|
||||||
|
"emptyTable":"<center> Data Not Found ! </center>"
|
||||||
|
},
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||||
@ -185,7 +181,39 @@ $(document).ready(function() {
|
|||||||
},
|
},
|
||||||
|
|
||||||
'colvis'
|
'colvis'
|
||||||
]
|
],
|
||||||
|
|
||||||
|
"footerCallback": function ( row, data, start, end, display ) {
|
||||||
|
var api = this.api(), data;
|
||||||
|
|
||||||
|
// Remove the formatting to get integer data for summation
|
||||||
|
var intVal = function ( i ) {
|
||||||
|
return typeof i === 'string' ?
|
||||||
|
parseFloat(i.replace(/[^0.00-9.00]+/g,"")*1) :
|
||||||
|
typeof i === 'number' ?
|
||||||
|
parseFloat(i) : 0;
|
||||||
|
};
|
||||||
|
|
||||||
|
TotalQTY = api
|
||||||
|
.column( 2, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 2 ).footer() ).html( TotalQTY.toFixed().bold() );
|
||||||
|
|
||||||
|
TotalVALUE = api
|
||||||
|
.column( 3, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 3 ).footer() ).html( TotalVALUE.toFixed(2).bold() );
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
} );
|
} );
|
||||||
} );
|
} );
|
||||||
$('#mySelect').on('change',function(){
|
$('#mySelect').on('change',function(){
|
||||||
|
|||||||
@ -1,12 +1,5 @@
|
|||||||
|
|
||||||
|
|
||||||
<?php
|
|
||||||
if(!empty($mms))
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
<style>
|
<style>
|
||||||
.dataTables_filter input {padding: 4px;}
|
.dataTables_filter input {padding: 4px;}
|
||||||
@ -58,7 +51,7 @@ if(!empty($mms))
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th style="text-align:center">Quantity</th>
|
<th style="text-align:center">Quantity</th>
|
||||||
<th style="text-align:center">Value (<i class="fa fa-rupee "></i>)</th>
|
<th style="text-align:center">Value (₹)</th>
|
||||||
|
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
@ -168,6 +161,9 @@ if(!empty($mms))
|
|||||||
// Set up your table
|
// Set up your table
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
table = $('#cc').DataTable( {
|
table = $('#cc').DataTable( {
|
||||||
|
"language": {
|
||||||
|
"emptyTable":"<center> Data Not Found ! </center>"
|
||||||
|
},
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||||
@ -185,7 +181,38 @@ $(document).ready(function() {
|
|||||||
},
|
},
|
||||||
|
|
||||||
'colvis'
|
'colvis'
|
||||||
]
|
],
|
||||||
|
"footerCallback": function ( row, data, start, end, display ) {
|
||||||
|
var api = this.api(), data;
|
||||||
|
|
||||||
|
// Remove the formatting to get integer data for summation
|
||||||
|
var intVal = function ( i ) {
|
||||||
|
return typeof i === 'string' ?
|
||||||
|
parseFloat(i.replace(/[^0.00-9.00]+/g,"")*1) :
|
||||||
|
typeof i === 'number' ?
|
||||||
|
parseFloat(i) : 0;
|
||||||
|
};
|
||||||
|
|
||||||
|
TotalQTY = api
|
||||||
|
.column( 2, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 2 ).footer() ).html( TotalQTY.toFixed().bold() );
|
||||||
|
|
||||||
|
TotalVALUE = api
|
||||||
|
.column( 3, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 3 ).footer() ).html( TotalVALUE.toFixed(2).bold() );
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
} );
|
} );
|
||||||
} );
|
} );
|
||||||
$('#mySelect').on('change',function(){
|
$('#mySelect').on('change',function(){
|
||||||
|
|||||||
@ -59,7 +59,7 @@ if(!empty($mms))
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th style="text-align:center">Quantity</th>
|
<th style="text-align:center">Quantity</th>
|
||||||
<th style="text-align:center">Value (<i class="fa fa-rupee "></i>)</th>
|
<th style="text-align:center">Value (₹)</th>
|
||||||
|
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
@ -179,6 +179,9 @@ if(!empty($mms))
|
|||||||
// Set up your table
|
// Set up your table
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
table = $('#cc').DataTable( {
|
table = $('#cc').DataTable( {
|
||||||
|
"language": {
|
||||||
|
"emptyTable":"<center> Data Not Found ! </center>"
|
||||||
|
},
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||||
@ -196,7 +199,38 @@ $(document).ready(function() {
|
|||||||
},
|
},
|
||||||
|
|
||||||
'colvis'
|
'colvis'
|
||||||
]
|
],
|
||||||
|
"footerCallback": function ( row, data, start, end, display ) {
|
||||||
|
var api = this.api(), data;
|
||||||
|
|
||||||
|
// Remove the formatting to get integer data for summation
|
||||||
|
var intVal = function ( i ) {
|
||||||
|
return typeof i === 'string' ?
|
||||||
|
parseFloat(i.replace(/[^0.00-9.00]+/g,"")*1) :
|
||||||
|
typeof i === 'number' ?
|
||||||
|
parseFloat(i) : 0;
|
||||||
|
};
|
||||||
|
|
||||||
|
TotalQTY = api
|
||||||
|
.column( 3, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 3 ).footer() ).html( TotalQTY.toFixed().bold() );
|
||||||
|
|
||||||
|
TotalVALUE = api
|
||||||
|
.column( 4, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 4 ).footer() ).html( TotalVALUE.toFixed(2).bold() );
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
} );
|
} );
|
||||||
} );
|
} );
|
||||||
$('#mySelect').on('change',function(){
|
$('#mySelect').on('change',function(){
|
||||||
|
|||||||
@ -1,12 +1,4 @@
|
|||||||
|
|
||||||
|
|
||||||
<?php
|
|
||||||
if(!empty($mms))
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
<style>
|
<style>
|
||||||
.dataTables_filter input {padding: 4px;}
|
.dataTables_filter input {padding: 4px;}
|
||||||
@ -60,7 +52,7 @@ if(!empty($mms))
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th style="text-align:center">Quantity</th>
|
<th style="text-align:center">Quantity</th>
|
||||||
<th style="text-align:center">Value (<i class="fa fa-rupee "></i>)</th>
|
<th style="text-align:center">Value (₹)</th>
|
||||||
|
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
@ -171,6 +163,9 @@ if(!empty($mms))
|
|||||||
// Set up your table
|
// Set up your table
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
table = $('#cc').DataTable( {
|
table = $('#cc').DataTable( {
|
||||||
|
"language": {
|
||||||
|
"emptyTable":"<center> Data Not Found ! </center>"
|
||||||
|
},
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||||
@ -188,7 +183,38 @@ $(document).ready(function() {
|
|||||||
},
|
},
|
||||||
|
|
||||||
'colvis'
|
'colvis'
|
||||||
]
|
],
|
||||||
|
"footerCallback": function ( row, data, start, end, display ) {
|
||||||
|
var api = this.api(), data;
|
||||||
|
|
||||||
|
// Remove the formatting to get integer data for summation
|
||||||
|
var intVal = function ( i ) {
|
||||||
|
return typeof i === 'string' ?
|
||||||
|
parseFloat(i.replace(/[^0.00-9.00]+/g,"")*1) :
|
||||||
|
typeof i === 'number' ?
|
||||||
|
parseFloat(i) : 0;
|
||||||
|
};
|
||||||
|
|
||||||
|
TotalQTY = api
|
||||||
|
.column( 2, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 2 ).footer() ).html( TotalQTY.toFixed().bold() );
|
||||||
|
|
||||||
|
TotalVALUE = api
|
||||||
|
.column( 3, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 3 ).footer() ).html( TotalVALUE.toFixed(2).bold() );
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
} );
|
} );
|
||||||
} );
|
} );
|
||||||
$('#mySelect').on('change',function(){
|
$('#mySelect').on('change',function(){
|
||||||
|
|||||||
@ -1,13 +1,3 @@
|
|||||||
|
|
||||||
|
|
||||||
<?php
|
|
||||||
//print_r($budget);die();
|
|
||||||
if(!empty($ccrpt))
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
<style>
|
<style>
|
||||||
.dataTables_filter input {padding: 4px;}
|
.dataTables_filter input {padding: 4px;}
|
||||||
@ -104,8 +94,8 @@ if(!empty($ccrpt))
|
|||||||
<th>Department</th>
|
<th>Department</th>
|
||||||
<th>Budget Type</th>
|
<th>Budget Type</th>
|
||||||
<th>Budget Year</th>
|
<th>Budget Year</th>
|
||||||
<th>Utilized Amount ( <i class="fa fa-rupee " ></i>)</th>
|
<th>Utilized Amount (₹)</th>
|
||||||
<th>Balance Amount ( <i class="fa fa-rupee " ></i>)</th>
|
<th>Balance Amount (₹)</th>
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
@ -159,6 +149,9 @@ if(!empty($ccrpt))
|
|||||||
// Set up your table
|
// Set up your table
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
table = $('#cc').DataTable( {
|
table = $('#cc').DataTable( {
|
||||||
|
"language": {
|
||||||
|
"emptyTable":"<center> Data Not Found ! </center>"
|
||||||
|
},
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||||
|
|||||||
@ -1,12 +1,3 @@
|
|||||||
|
|
||||||
|
|
||||||
<?php
|
|
||||||
if(!empty($mms))
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
<style>
|
<style>
|
||||||
.dataTables_filter input {padding: 4px;}
|
.dataTables_filter input {padding: 4px;}
|
||||||
@ -56,7 +47,7 @@ if(!empty($mms))
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th style="text-align:center">Quantity</th>
|
<th style="text-align:center">Quantity</th>
|
||||||
<th style="text-align:center">Value (<i class="fa fa-rupee "></i>)</th>
|
<th style="text-align:center">Value (₹)</th>
|
||||||
|
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
@ -160,6 +151,9 @@ if(!empty($mms))
|
|||||||
// Set up your table
|
// Set up your table
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
table = $('#cc').DataTable( {
|
table = $('#cc').DataTable( {
|
||||||
|
"language": {
|
||||||
|
"emptyTable":"<center> Data Not Found ! </center>"
|
||||||
|
},
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||||
@ -177,7 +171,37 @@ $(document).ready(function() {
|
|||||||
},
|
},
|
||||||
|
|
||||||
'colvis'
|
'colvis'
|
||||||
]
|
],
|
||||||
|
"footerCallback": function ( row, data, start, end, display ) {
|
||||||
|
var api = this.api(), data;
|
||||||
|
|
||||||
|
// Remove the formatting to get integer data for summation
|
||||||
|
var intVal = function ( i ) {
|
||||||
|
return typeof i === 'string' ?
|
||||||
|
parseFloat(i.replace(/[^0.00-9.00]+/g,"")*1) :
|
||||||
|
typeof i === 'number' ?
|
||||||
|
parseFloat(i) : 0;
|
||||||
|
};
|
||||||
|
|
||||||
|
TotalQTY = api
|
||||||
|
.column( 2, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 2 ).footer() ).html( TotalQTY.toFixed().bold() );
|
||||||
|
|
||||||
|
TotalVALUE = api
|
||||||
|
.column( 3, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 3 ).footer() ).html( TotalVALUE.toFixed(2).bold() );
|
||||||
|
|
||||||
|
}
|
||||||
} );
|
} );
|
||||||
} );
|
} );
|
||||||
$('#mySelect').on('change',function(){
|
$('#mySelect').on('change',function(){
|
||||||
|
|||||||
@ -56,7 +56,7 @@ if(!empty($mms))
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th style="text-align:center">Quantity</th>
|
<th style="text-align:center">Quantity</th>
|
||||||
<th style="text-align:center">Value (<i class="fa fa-rupee "></i>)</th>
|
<th style="text-align:center">Value (₹)</th>
|
||||||
|
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
@ -160,6 +160,9 @@ if(!empty($mms))
|
|||||||
// Set up your table
|
// Set up your table
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
table = $('#cc').DataTable( {
|
table = $('#cc').DataTable( {
|
||||||
|
"language": {
|
||||||
|
"emptyTable":"<center> Data Not Found ! </center>"
|
||||||
|
},
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||||
@ -177,7 +180,37 @@ $(document).ready(function() {
|
|||||||
},
|
},
|
||||||
|
|
||||||
'colvis'
|
'colvis'
|
||||||
]
|
],
|
||||||
|
"footerCallback": function ( row, data, start, end, display ) {
|
||||||
|
var api = this.api(), data;
|
||||||
|
|
||||||
|
// Remove the formatting to get integer data for summation
|
||||||
|
var intVal = function ( i ) {
|
||||||
|
return typeof i === 'string' ?
|
||||||
|
parseFloat(i.replace(/[^0.00-9.00]+/g,"")*1) :
|
||||||
|
typeof i === 'number' ?
|
||||||
|
parseFloat(i) : 0;
|
||||||
|
};
|
||||||
|
|
||||||
|
TotalQTY = api
|
||||||
|
.column( 3, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 3 ).footer() ).html( TotalQTY.toFixed().bold() );
|
||||||
|
|
||||||
|
TotalVALUE = api
|
||||||
|
.column( 4, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 4 ).footer() ).html( TotalVALUE.toFixed(2).bold() );
|
||||||
|
|
||||||
|
}
|
||||||
} );
|
} );
|
||||||
} );
|
} );
|
||||||
$('#mySelect').on('change',function(){
|
$('#mySelect').on('change',function(){
|
||||||
|
|||||||
@ -1,12 +1,4 @@
|
|||||||
|
|
||||||
|
|
||||||
<?php
|
|
||||||
if(!empty($mms))
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
<style>
|
<style>
|
||||||
.dataTables_filter input {padding: 4px;}
|
.dataTables_filter input {padding: 4px;}
|
||||||
@ -56,7 +48,7 @@ if(!empty($mms))
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th style="text-align:center">Quantity</th>
|
<th style="text-align:center">Quantity</th>
|
||||||
<th style="text-align:center">Value (<i class="fa fa-rupee "></i>)</th>
|
<th style="text-align:center">Value (₹)</th>
|
||||||
|
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
@ -170,6 +162,9 @@ if(!empty($mms))
|
|||||||
// Set up your table
|
// Set up your table
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
table = $('#cc').DataTable( {
|
table = $('#cc').DataTable( {
|
||||||
|
"language": {
|
||||||
|
"emptyTable":"<center> Data Not Found ! </center>"
|
||||||
|
},
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||||
@ -187,7 +182,37 @@ $(document).ready(function() {
|
|||||||
},
|
},
|
||||||
|
|
||||||
'colvis'
|
'colvis'
|
||||||
]
|
],
|
||||||
|
"footerCallback": function ( row, data, start, end, display ) {
|
||||||
|
var api = this.api(), data;
|
||||||
|
|
||||||
|
// Remove the formatting to get integer data for summation
|
||||||
|
var intVal = function ( i ) {
|
||||||
|
return typeof i === 'string' ?
|
||||||
|
parseFloat(i.replace(/[^0.00-9.00]+/g,"")*1) :
|
||||||
|
typeof i === 'number' ?
|
||||||
|
parseFloat(i) : 0;
|
||||||
|
};
|
||||||
|
|
||||||
|
TotalQTY = api
|
||||||
|
.column( 3, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 3 ).footer() ).html( TotalQTY.toFixed().bold() );
|
||||||
|
|
||||||
|
TotalVALUE = api
|
||||||
|
.column( 4, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 4 ).footer() ).html( TotalVALUE.toFixed(2).bold() );
|
||||||
|
|
||||||
|
}
|
||||||
} );
|
} );
|
||||||
} );
|
} );
|
||||||
$('#mySelect').on('change',function(){
|
$('#mySelect').on('change',function(){
|
||||||
|
|||||||
@ -1,12 +1,3 @@
|
|||||||
|
|
||||||
|
|
||||||
<?php
|
|
||||||
if(!empty($mms))
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
<style>
|
<style>
|
||||||
.dataTables_filter input {padding: 4px;}
|
.dataTables_filter input {padding: 4px;}
|
||||||
@ -56,7 +47,7 @@ if(!empty($mms))
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th style="text-align:center">Quantity</th>
|
<th style="text-align:center">Quantity</th>
|
||||||
<th style="text-align:center">Value (<i class="fa fa-rupee "></i>)</th>
|
<th style="text-align:center">Value (₹)</th>
|
||||||
|
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
@ -166,6 +157,9 @@ if(!empty($mms))
|
|||||||
// Set up your table
|
// Set up your table
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
table = $('#cc').DataTable( {
|
table = $('#cc').DataTable( {
|
||||||
|
"language": {
|
||||||
|
"emptyTable":"<center> Data Not Found ! </center>"
|
||||||
|
},
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||||
@ -183,7 +177,38 @@ $(document).ready(function() {
|
|||||||
},
|
},
|
||||||
|
|
||||||
'colvis'
|
'colvis'
|
||||||
]
|
],
|
||||||
|
|
||||||
|
"footerCallback": function ( row, data, start, end, display ) {
|
||||||
|
var api = this.api(), data;
|
||||||
|
|
||||||
|
// Remove the formatting to get integer data for summation
|
||||||
|
var intVal = function ( i ) {
|
||||||
|
return typeof i === 'string' ?
|
||||||
|
parseFloat(i.replace(/[^0.00-9.00]+/g,"")*1) :
|
||||||
|
typeof i === 'number' ?
|
||||||
|
parseFloat(i) : 0;
|
||||||
|
};
|
||||||
|
|
||||||
|
TotalQTY = api
|
||||||
|
.column( 2, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 2 ).footer() ).html( TotalQTY.toFixed().bold() );
|
||||||
|
|
||||||
|
TotalVALUE = api
|
||||||
|
.column( 3, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 3 ).footer() ).html( TotalVALUE.toFixed(2).bold() );
|
||||||
|
|
||||||
|
}
|
||||||
} );
|
} );
|
||||||
} );
|
} );
|
||||||
$('#mySelect').on('change',function(){
|
$('#mySelect').on('change',function(){
|
||||||
|
|||||||
@ -1,12 +1,3 @@
|
|||||||
|
|
||||||
|
|
||||||
<?php
|
|
||||||
if(!empty($mms))
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
<style>
|
<style>
|
||||||
.dataTables_filter input {padding: 4px;}
|
.dataTables_filter input {padding: 4px;}
|
||||||
@ -56,8 +47,7 @@ if(!empty($mms))
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th style="text-align:center">Quantity</th>
|
<th style="text-align:center">Quantity</th>
|
||||||
<th style="text-align:center">Value (<i class="fa fa-rupee "></i>)</th>
|
<th style="text-align:center">Value (₹)</th>
|
||||||
|
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
@ -166,6 +156,9 @@ if(!empty($mms))
|
|||||||
// Set up your table
|
// Set up your table
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
table = $('#cc').DataTable( {
|
table = $('#cc').DataTable( {
|
||||||
|
"language": {
|
||||||
|
"emptyTable":"<center> Data Not Found ! </center>"
|
||||||
|
},
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||||
@ -183,7 +176,40 @@ $(document).ready(function() {
|
|||||||
},
|
},
|
||||||
|
|
||||||
'colvis'
|
'colvis'
|
||||||
]
|
],
|
||||||
|
|
||||||
|
"footerCallback": function ( row, data, start, end, display ) {
|
||||||
|
var api = this.api(), data;
|
||||||
|
|
||||||
|
// Remove the formatting to get integer data for summation
|
||||||
|
var intVal = function ( i ) {
|
||||||
|
return typeof i === 'string' ?
|
||||||
|
parseFloat(i.replace(/[^0.00-9.00]+/g,"")*1) :
|
||||||
|
typeof i === 'number' ?
|
||||||
|
parseFloat(i) : 0;
|
||||||
|
};
|
||||||
|
|
||||||
|
TotalQTY = api
|
||||||
|
.column( 2, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 2 ).footer() ).html( TotalQTY.toFixed().bold() );
|
||||||
|
|
||||||
|
TotalVALUE = api
|
||||||
|
.column( 3, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 3 ).footer() ).html( TotalVALUE.toFixed(2).bold() );
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
} );
|
} );
|
||||||
} );
|
} );
|
||||||
$('#mySelect').on('change',function(){
|
$('#mySelect').on('change',function(){
|
||||||
|
|||||||
@ -1,12 +1,4 @@
|
|||||||
|
|
||||||
|
|
||||||
<?php
|
|
||||||
if(!empty($mms))
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
<style>
|
<style>
|
||||||
.dataTables_filter input {padding: 4px;}
|
.dataTables_filter input {padding: 4px;}
|
||||||
@ -56,8 +48,7 @@ if(!empty($mms))
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th style="text-align:center">Quantity</th>
|
<th style="text-align:center">Quantity</th>
|
||||||
<th style="text-align:center">Value (<i class="fa fa-rupee "></i>)</th>
|
<th style="text-align:center">Value (₹)</th>
|
||||||
|
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
@ -177,6 +168,9 @@ if(!empty($mms))
|
|||||||
// Set up your table
|
// Set up your table
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
table = $('#cc').DataTable( {
|
table = $('#cc').DataTable( {
|
||||||
|
"language": {
|
||||||
|
"emptyTable":"<center> Data Not Found ! </center>"
|
||||||
|
},
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||||
@ -194,7 +188,37 @@ $(document).ready(function() {
|
|||||||
},
|
},
|
||||||
|
|
||||||
'colvis'
|
'colvis'
|
||||||
]
|
],
|
||||||
|
"footerCallback": function ( row, data, start, end, display ) {
|
||||||
|
var api = this.api(), data;
|
||||||
|
|
||||||
|
// Remove the formatting to get integer data for summation
|
||||||
|
var intVal = function ( i ) {
|
||||||
|
return typeof i === 'string' ?
|
||||||
|
parseFloat(i.replace(/[^0.00-9.00]+/g,"")*1) :
|
||||||
|
typeof i === 'number' ?
|
||||||
|
parseFloat(i) : 0;
|
||||||
|
};
|
||||||
|
|
||||||
|
TotalQTY = api
|
||||||
|
.column( 3, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 3 ).footer() ).html( TotalQTY.toFixed().bold() );
|
||||||
|
|
||||||
|
TotalVALUE = api
|
||||||
|
.column( 4, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 4 ).footer() ).html( TotalVALUE.toFixed(2).bold() );
|
||||||
|
|
||||||
|
}
|
||||||
} );
|
} );
|
||||||
} );
|
} );
|
||||||
$('#mySelect').on('change',function(){
|
$('#mySelect').on('change',function(){
|
||||||
|
|||||||
@ -1,12 +1,5 @@
|
|||||||
|
|
||||||
|
|
||||||
<?php
|
|
||||||
if(!empty($mms))
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
<style>
|
<style>
|
||||||
.dataTables_filter input {padding: 4px;}
|
.dataTables_filter input {padding: 4px;}
|
||||||
@ -74,7 +67,7 @@ if(!empty($mms))
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th style="text-align:center">Quantity</th>
|
<th style="text-align:center">Quantity</th>
|
||||||
<th style="text-align:center">Value ( <i class="fa fa-rupee " ></i>)</th>
|
<th style="text-align:center">Value (₹)</th>s
|
||||||
|
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
@ -183,6 +176,9 @@ if(!empty($mms))
|
|||||||
// Set up your table
|
// Set up your table
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
table = $('#cc').DataTable( {
|
table = $('#cc').DataTable( {
|
||||||
|
"language": {
|
||||||
|
"emptyTable":"<center> Data Not Found ! </center>"
|
||||||
|
},
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||||
@ -200,7 +196,37 @@ $(document).ready(function() {
|
|||||||
},
|
},
|
||||||
|
|
||||||
'colvis'
|
'colvis'
|
||||||
]
|
],
|
||||||
|
"footerCallback": function ( row, data, start, end, display ) {
|
||||||
|
var api = this.api(), data;
|
||||||
|
|
||||||
|
// Remove the formatting to get integer data for summation
|
||||||
|
var intVal = function ( i ) {
|
||||||
|
return typeof i === 'string' ?
|
||||||
|
parseFloat(i.replace(/[^0.00-9.00]+/g,"")*1) :
|
||||||
|
typeof i === 'number' ?
|
||||||
|
parseFloat(i) : 0;
|
||||||
|
};
|
||||||
|
|
||||||
|
TotalQTY = api
|
||||||
|
.column( 2, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 2 ).footer() ).html( TotalQTY.toFixed().bold() );
|
||||||
|
|
||||||
|
TotalVALUE = api
|
||||||
|
.column( 3, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 3 ).footer() ).html( TotalVALUE.toFixed(2).bold() );
|
||||||
|
|
||||||
|
}
|
||||||
} );
|
} );
|
||||||
} );
|
} );
|
||||||
$('#mySelect').on('change',function(){
|
$('#mySelect').on('change',function(){
|
||||||
|
|||||||
@ -1,12 +1,4 @@
|
|||||||
|
|
||||||
|
|
||||||
<?php
|
|
||||||
if(!empty($mms))
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
<style>
|
<style>
|
||||||
.dataTables_filter input {padding: 4px;}
|
.dataTables_filter input {padding: 4px;}
|
||||||
@ -73,7 +65,7 @@ if(!empty($mms))
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th style="text-align:center">Quantity</th>
|
<th style="text-align:center">Quantity</th>
|
||||||
<th style="text-align:center">Value ( <i class="fa fa-rupee " ></i>)</th>
|
<th style="text-align:center">Value ( ₹ )</th>
|
||||||
|
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
@ -192,6 +184,9 @@ if(!empty($mms))
|
|||||||
// Set up your table
|
// Set up your table
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
table = $('#cc').DataTable( {
|
table = $('#cc').DataTable( {
|
||||||
|
"language": {
|
||||||
|
"emptyTable":"<center> Data Not Found ! </center>"
|
||||||
|
},
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||||
@ -209,7 +204,37 @@ $(document).ready(function() {
|
|||||||
},
|
},
|
||||||
|
|
||||||
'colvis'
|
'colvis'
|
||||||
]
|
],
|
||||||
|
"footerCallback": function ( row, data, start, end, display ) {
|
||||||
|
var api = this.api(), data;
|
||||||
|
|
||||||
|
// Remove the formatting to get integer data for summation
|
||||||
|
var intVal = function ( i ) {
|
||||||
|
return typeof i === 'string' ?
|
||||||
|
parseFloat(i.replace(/[^0.00-9.00]+/g,"")*1) :
|
||||||
|
typeof i === 'number' ?
|
||||||
|
parseFloat(i) : 0;
|
||||||
|
};
|
||||||
|
|
||||||
|
TotalQTY = api
|
||||||
|
.column( 3, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 3 ).footer() ).html( TotalQTY.toFixed().bold() );
|
||||||
|
|
||||||
|
TotalVALUE = api
|
||||||
|
.column( 4, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 4 ).footer() ).html( TotalVALUE.toFixed(2).bold() );
|
||||||
|
|
||||||
|
}
|
||||||
} );
|
} );
|
||||||
} );
|
} );
|
||||||
$('#mySelect').on('change',function(){
|
$('#mySelect').on('change',function(){
|
||||||
|
|||||||
@ -1,12 +1,5 @@
|
|||||||
|
|
||||||
|
|
||||||
<?php
|
|
||||||
if(!empty($mms))
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
<style>
|
<style>
|
||||||
.dataTables_filter input {padding: 4px;}
|
.dataTables_filter input {padding: 4px;}
|
||||||
@ -51,7 +44,7 @@ if(!empty($mms))
|
|||||||
<th style="text-align:center">Supplier Name</th>
|
<th style="text-align:center">Supplier Name</th>
|
||||||
<th style="text-align:center">Material Name</th>
|
<th style="text-align:center">Material Name</th>
|
||||||
<th style="text-align:center">Quantity</th>
|
<th style="text-align:center">Quantity</th>
|
||||||
<th style="text-align:center">Total Value ( <i class="fa fa-rupee " ></i>)</th>
|
<th style="text-align:center">Total Value (₹)</th>
|
||||||
|
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
@ -146,6 +139,9 @@ if(!empty($mms))
|
|||||||
// Set up your table
|
// Set up your table
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
table = $('#cc').DataTable( {
|
table = $('#cc').DataTable( {
|
||||||
|
"language": {
|
||||||
|
"emptyTable": "<center> Data Not Found ! </center>"
|
||||||
|
},
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||||
@ -163,7 +159,37 @@ $(document).ready(function() {
|
|||||||
},
|
},
|
||||||
|
|
||||||
'colvis'
|
'colvis'
|
||||||
]
|
],
|
||||||
|
,
|
||||||
|
"footerCallback": function ( row, data, start, end, display ) {
|
||||||
|
var api = this.api(), data;
|
||||||
|
|
||||||
|
// Remove the formatting to get integer data for summation
|
||||||
|
var intVal = function ( i ) {
|
||||||
|
return typeof i === 'string' ?
|
||||||
|
parseFloat(i.replace(/[^0.00-9.00]+/g,"")*1) :
|
||||||
|
typeof i === 'number' ?
|
||||||
|
parseFloat(i) : 0;
|
||||||
|
};
|
||||||
|
|
||||||
|
TotalQTY = api
|
||||||
|
.column( 2, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 2 ).footer() ).html( TotalQTY.toFixed().bold() );
|
||||||
|
|
||||||
|
TotalVALUE = api
|
||||||
|
.column( 3, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 3 ).footer() ).html( TotalVALUE.toFixed(2).bold() );
|
||||||
|
}
|
||||||
} );
|
} );
|
||||||
} );
|
} );
|
||||||
$('#mySelect').on('change',function(){
|
$('#mySelect').on('change',function(){
|
||||||
|
|||||||
@ -1,12 +1,4 @@
|
|||||||
|
|
||||||
|
|
||||||
<?php
|
|
||||||
if(!empty($mms))
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
<style>
|
<style>
|
||||||
.dataTables_filter input {padding: 4px;}
|
.dataTables_filter input {padding: 4px;}
|
||||||
@ -51,7 +43,7 @@ if(!empty($mms))
|
|||||||
<th style="text-align:center">Supplier Name</th>
|
<th style="text-align:center">Supplier Name</th>
|
||||||
<th style="text-align:center">Material Name</th>
|
<th style="text-align:center">Material Name</th>
|
||||||
<th style="text-align:center">Quantity</th>
|
<th style="text-align:center">Quantity</th>
|
||||||
<th style="text-align:center">Total Value ( <i class="fa fa-rupee " ></i>)</th>
|
<th style="text-align:center">Total Value (₹)</th>
|
||||||
|
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
@ -146,6 +138,9 @@ if(!empty($mms))
|
|||||||
// Set up your table
|
// Set up your table
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
table = $('#cc').DataTable( {
|
table = $('#cc').DataTable( {
|
||||||
|
"language": {
|
||||||
|
"emptyTable": "<center> Data Not Found ! </center>"
|
||||||
|
},
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||||
@ -163,7 +158,38 @@ $(document).ready(function() {
|
|||||||
},
|
},
|
||||||
|
|
||||||
'colvis'
|
'colvis'
|
||||||
]
|
],
|
||||||
|
,
|
||||||
|
"footerCallback": function ( row, data, start, end, display ) {
|
||||||
|
var api = this.api(), data;
|
||||||
|
|
||||||
|
// Remove the formatting to get integer data for summation
|
||||||
|
var intVal = function ( i ) {
|
||||||
|
return typeof i === 'string' ?
|
||||||
|
parseFloat(i.replace(/[^0.00-9.00]+/g,"")*1) :
|
||||||
|
typeof i === 'number' ?
|
||||||
|
parseFloat(i) : 0;
|
||||||
|
};
|
||||||
|
|
||||||
|
TotalQTY = api
|
||||||
|
.column( 2, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 2 ).footer() ).html( TotalQTY.toFixed().bold() );
|
||||||
|
|
||||||
|
TotalVALUE = api
|
||||||
|
.column( 3, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 3 ).footer() ).html( TotalVALUE.toFixed(2).bold() );
|
||||||
|
|
||||||
|
}
|
||||||
} );
|
} );
|
||||||
} );
|
} );
|
||||||
$('#mySelect').on('change',function(){
|
$('#mySelect').on('change',function(){
|
||||||
|
|||||||
@ -53,12 +53,12 @@
|
|||||||
<th style="text-align:center">Document Number</th>
|
<th style="text-align:center">Document Number</th>
|
||||||
<th style="text-align:center">Document Type</th>
|
<th style="text-align:center">Document Type</th>
|
||||||
<th style="text-align:center">HSN CODE</th>
|
<th style="text-align:center">HSN CODE</th>
|
||||||
<th style="text-align:center">Value (<i class="fa fa-rupee "></i>)</th>
|
<th style="text-align:center">Value (₹)</th>
|
||||||
<th style="text-align:center">Others (<i class="fa fa-rupee "></i>)</th>
|
<th style="text-align:center">Others (₹)</th>
|
||||||
<th style="text-align:center">SGST (<i class="fa fa-rupee "></i>)</th>
|
<th style="text-align:center">SGST (₹)</th>
|
||||||
<th style="text-align:center">CGST (<i class="fa fa-rupee "></i>)</th>
|
<th style="text-align:center">CGST (₹)</th>
|
||||||
<th style="text-align:center">IGST (<i class="fa fa-rupee "></i>)</th>
|
<th style="text-align:center">IGST (₹)</th>
|
||||||
<th style="text-align:center">Total (<i class="fa fa-rupee "></i>)</th>
|
<th style="text-align:center">Total (₹)</th>
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
@ -250,7 +250,9 @@
|
|||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
$.fn.dataTable.moment( 'DD-MM-YYYY' );
|
$.fn.dataTable.moment( 'DD-MM-YYYY' );
|
||||||
table = $('#cc').DataTable( {
|
table = $('#cc').DataTable( {
|
||||||
|
"language": {
|
||||||
|
"emptyTable":"<center> Data Not Found ! </center>"
|
||||||
|
},
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||||
@ -267,7 +269,73 @@ $.fn.dataTable.moment( 'DD-MM-YYYY' );
|
|||||||
},
|
},
|
||||||
|
|
||||||
'colvis'
|
'colvis'
|
||||||
]
|
],
|
||||||
|
"footerCallback": function ( row, data, start, end, display ) {
|
||||||
|
var api = this.api(), data;
|
||||||
|
|
||||||
|
// Remove the formatting to get integer data for summation
|
||||||
|
var intVal = function ( i ) {
|
||||||
|
return typeof i === 'string' ?
|
||||||
|
parseFloat(i.replace(/[^0.00-9.00]+/g,"")*1) :
|
||||||
|
typeof i === 'number' ?
|
||||||
|
parseFloat(i) : 0;
|
||||||
|
};
|
||||||
|
|
||||||
|
TotalVALUE = api
|
||||||
|
.column( 4, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 4 ).footer() ).html( TotalVALUE.toFixed(2).bold() );
|
||||||
|
|
||||||
|
TotalOTHERS = api
|
||||||
|
.column( 5, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 5 ).footer() ).html( TotalOTHERS.toFixed(2).bold() );
|
||||||
|
|
||||||
|
TotalSGST = api
|
||||||
|
.column( 6, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 6 ).footer() ).html( TotalSGST.toFixed(2).bold() );
|
||||||
|
|
||||||
|
TotalCGST = api
|
||||||
|
.column( 7, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 7 ).footer() ).html( TotalCGST.toFixed(2).bold() );
|
||||||
|
|
||||||
|
TotalIGST = api
|
||||||
|
.column( 8, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 8 ).footer() ).html( TotalIGST.toFixed(2).bold() );
|
||||||
|
|
||||||
|
FinalTotal = api
|
||||||
|
.column( 9, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 9 ).footer() ).html( FinalTotal.toFixed(2).bold() );
|
||||||
|
|
||||||
|
}
|
||||||
} );
|
} );
|
||||||
} );
|
} );
|
||||||
|
|
||||||
|
|||||||
@ -1,12 +1,4 @@
|
|||||||
|
|
||||||
|
|
||||||
<?php
|
|
||||||
if(!empty($open_po))
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
<style>
|
<style>
|
||||||
.dataTables_filter input {padding: 4px;}
|
.dataTables_filter input {padding: 4px;}
|
||||||
@ -192,7 +184,7 @@ if(!empty($open_po))
|
|||||||
<th>PO Date</th>
|
<th>PO Date</th>
|
||||||
<th>Approved Date</th>
|
<th>Approved Date</th>
|
||||||
<th>Requested Department</th>
|
<th>Requested Department</th>
|
||||||
<th>Total Order Value ( <i class="fa fa-rupee "></i>)</th>
|
<th>Total Order Value (₹)</th>
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
@ -258,6 +250,9 @@ if(!empty($open_po))
|
|||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
$.fn.dataTable.moment( 'DD-MM-YYYY' );
|
$.fn.dataTable.moment( 'DD-MM-YYYY' );
|
||||||
table = $('#req').DataTable( {
|
table = $('#req').DataTable( {
|
||||||
|
"language": {
|
||||||
|
"emptyTable": "<center> Data Not Found ! </center>"
|
||||||
|
},
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||||
@ -275,7 +270,27 @@ $(document).ready(function() {
|
|||||||
},
|
},
|
||||||
|
|
||||||
'colvis'
|
'colvis'
|
||||||
]
|
],
|
||||||
|
"footerCallback": function ( row, data, start, end, display ) {
|
||||||
|
var api = this.api(), data;
|
||||||
|
|
||||||
|
// Remove the formatting to get integer data for summation
|
||||||
|
var intVal = function ( i ) {
|
||||||
|
return typeof i === 'string' ?
|
||||||
|
parseFloat(i.replace(/[^0.00-9.00]+/g,"")*1) :
|
||||||
|
typeof i === 'number' ?
|
||||||
|
parseFloat(i) : 0;
|
||||||
|
};
|
||||||
|
|
||||||
|
TotalOrderValue = api
|
||||||
|
.column( 5, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 5 ).footer() ).html( TotalOrderValue.toFixed(2) );
|
||||||
|
}
|
||||||
} );
|
} );
|
||||||
} );
|
} );
|
||||||
|
|
||||||
|
|||||||
@ -1,11 +1,6 @@
|
|||||||
|
|
||||||
|
|
||||||
<?php
|
|
||||||
if(!empty($mms))
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
<script>
|
<script>
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
|
|
||||||
@ -401,6 +396,9 @@ if(!empty($mms))
|
|||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
$.fn.dataTable.moment( 'DD-MM-YYYY' );
|
$.fn.dataTable.moment( 'DD-MM-YYYY' );
|
||||||
table = $('#cc').DataTable( {
|
table = $('#cc').DataTable( {
|
||||||
|
"language": {
|
||||||
|
"emptyTable": "<center> Data Not Found ! </center>"
|
||||||
|
},
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||||
@ -418,7 +416,45 @@ $(document).ready(function() {
|
|||||||
},
|
},
|
||||||
|
|
||||||
'colvis'
|
'colvis'
|
||||||
]
|
],
|
||||||
|
"footerCallback": function ( row, data, start, end, display ) {
|
||||||
|
var api = this.api(), data;
|
||||||
|
|
||||||
|
// Remove the formatting to get integer data for summation
|
||||||
|
var intVal = function ( i ) {
|
||||||
|
return typeof i === 'string' ?
|
||||||
|
parseFloat(i.replace(/[^0-9]+/g,"")*1) :
|
||||||
|
typeof i === 'number' ?
|
||||||
|
parseFloat(i) : 0;
|
||||||
|
};
|
||||||
|
|
||||||
|
TotalOrderedQTY = api
|
||||||
|
.column( 5, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 5 ).footer() ).html( TotalOrderedQTY.toFixed().bold() );
|
||||||
|
|
||||||
|
TotalRcvdQTY = api
|
||||||
|
.column( 6, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 6 ).footer() ).html( TotalRcvdQTY.toFixed().bold() );
|
||||||
|
|
||||||
|
TotalPendingQTY = api
|
||||||
|
.column( 7, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 7 ).footer() ).html( TotalPendingQTY.toFixed().bold() );
|
||||||
|
}
|
||||||
} );
|
} );
|
||||||
} );
|
} );
|
||||||
$('#mySelect').on('change',function(){
|
$('#mySelect').on('change',function(){
|
||||||
|
|||||||
@ -240,17 +240,17 @@ table.dataTable thead > tr > td.sorting {
|
|||||||
<th style="text-align:center">Supplier Name</th>
|
<th style="text-align:center">Supplier Name</th>
|
||||||
<th style="text-align:center">Quantity</th>
|
<th style="text-align:center">Quantity</th>
|
||||||
<th style="text-align:center">UOM</th>
|
<th style="text-align:center">UOM</th>
|
||||||
<th style="text-align:center">Rate (<i class="fa fa-rupee "></i>)</th>
|
<th style="text-align:center">Rate (₹)</th>
|
||||||
<th style="text-align:center">Value (<i class="fa fa-rupee " ></i>)</th>
|
<th style="text-align:center">Value (₹)</th>
|
||||||
<th style="text-align:center">Exchange Rate</th>
|
<th style="text-align:center">Exchange Rate</th>
|
||||||
<th style="text-align:center">SGST (<i class="fa fa-rupee " ></i>)</th>
|
<th style="text-align:center">SGST (₹)</th>
|
||||||
<th style="text-align:center">CGST (<i class="fa fa-rupee " ></i>)</th>
|
<th style="text-align:center">CGST (₹)</th>
|
||||||
<th style="text-align:center">IGST (<i class="fa fa-rupee " ></i>)</th>
|
<th style="text-align:center">IGST (₹)</th>
|
||||||
<th style="text-align:center">Discount (<i class="fa fa-rupee " ></i>)</th>
|
<th style="text-align:center">Discount (₹)</th>
|
||||||
<th style="text-align:center">Freight (<i class="fa fa-rupee " ></i>)</th>
|
<th style="text-align:center">Freight (₹)</th>
|
||||||
<th style="text-align:center">Package (<i class="fa fa-rupee " ></i>)</th>
|
<th style="text-align:center">Package (₹)</th>
|
||||||
<th style="text-align:center">Insurance (<i class="fa fa-rupee " ></i>)</th>
|
<th style="text-align:center">Insurance (₹)</th>
|
||||||
<th style="text-align:center">Total (<i class="fa fa-rupee "></i>)</th>
|
<th style="text-align:center">Total (₹)</th>
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
@ -502,6 +502,9 @@ table.dataTable thead > tr > td.sorting {
|
|||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
$.fn.dataTable.moment( 'DD-MM-YYYY' );
|
$.fn.dataTable.moment( 'DD-MM-YYYY' );
|
||||||
table = $('#cc').DataTable( {
|
table = $('#cc').DataTable( {
|
||||||
|
"language": {
|
||||||
|
"emptyTable": "<center> Data Not Found ! </center>"
|
||||||
|
},
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||||
@ -519,7 +522,117 @@ $(document).ready(function() {
|
|||||||
},
|
},
|
||||||
|
|
||||||
'colvis'
|
'colvis'
|
||||||
]
|
],
|
||||||
|
"footerCallback": function ( row, data, start, end, display ) {
|
||||||
|
var api = this.api(), data;
|
||||||
|
|
||||||
|
// Remove the formatting to get integer data for summation
|
||||||
|
var intVal = function ( i ) {
|
||||||
|
return typeof i === 'string' ?
|
||||||
|
parseFloat(i.replace(/[^0.00-9.00]+/g,"")*1) :
|
||||||
|
typeof i === 'number' ?
|
||||||
|
parseFloat(i) : 0;
|
||||||
|
};
|
||||||
|
|
||||||
|
TotalQTY = api
|
||||||
|
.column( 4, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 4 ).footer() ).html( TotalQTY.toFixed().bold() );
|
||||||
|
|
||||||
|
TotalVALUE = api
|
||||||
|
.column( 7, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 7 ).footer() ).html( TotalVALUE.toFixed(2).bold() );
|
||||||
|
|
||||||
|
TotalExRATE = api
|
||||||
|
.column( 8, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 8 ).footer() ).html( TotalExRATE.toFixed().bold() );
|
||||||
|
|
||||||
|
TotalSGST = api
|
||||||
|
.column( 9, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 9 ).footer() ).html( TotalSGST.toFixed(2).bold() );
|
||||||
|
|
||||||
|
TotalCGST = api
|
||||||
|
.column( 10, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 10 ).footer() ).html( TotalCGST.toFixed(2).bold() );
|
||||||
|
|
||||||
|
TotalIGST = api
|
||||||
|
.column( 11, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 11 ).footer() ).html( TotalIGST.toFixed(2).bold() );
|
||||||
|
|
||||||
|
TotalDISCOUNT = api
|
||||||
|
.column( 12, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 12 ).footer() ).html( TotalDISCOUNT.toFixed(2).bold() );
|
||||||
|
|
||||||
|
TotalFRIGEHT = api
|
||||||
|
.column( 13, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 13 ).footer() ).html( TotalFRIGEHT.toFixed(2).bold() );
|
||||||
|
|
||||||
|
TotalPACKAGE = api
|
||||||
|
.column( 14, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 14 ).footer() ).html( TotalPACKAGE.toFixed(2).bold() );
|
||||||
|
|
||||||
|
TotalINSURANCES = api
|
||||||
|
.column( 15, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 15 ).footer() ).html( TotalINSURANCES.toFixed(2).bold() );
|
||||||
|
|
||||||
|
FinalTotal = api
|
||||||
|
.column( 16, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 16 ).footer() ).html( FinalTotal.toFixed(2).bold() );
|
||||||
|
}
|
||||||
} );
|
} );
|
||||||
} );
|
} );
|
||||||
$('#mySelect').on('change',function(){
|
$('#mySelect').on('change',function(){
|
||||||
|
|||||||
@ -274,16 +274,16 @@ table.dataTable thead > tr > td.sorting {
|
|||||||
<th>Supplier Name</th>
|
<th>Supplier Name</th>
|
||||||
<th>Qty</th>
|
<th>Qty</th>
|
||||||
<th>UOM</th>
|
<th>UOM</th>
|
||||||
<th>Rate (<i class="fa fa-rupee "></i>)</th>
|
<th>Rate (₹)</th>
|
||||||
<th>Value (<i class="fa fa-rupee " ></i>)</th>
|
<th>Value (₹)</th>
|
||||||
<th>Exchange Rate</th>
|
<th>Exchange Rate</th>
|
||||||
<th>SGST (<i class="fa fa-rupee " ></i>)</th>
|
<th>SGST (₹)</th>
|
||||||
<th>CGST (<i class="fa fa-rupee " ></i>)</th>
|
<th>CGST (₹)</th>
|
||||||
<th>IGST (<i class="fa fa-rupee " ></i>)</th>
|
<th>IGST (₹)</th>
|
||||||
<th>Discount (<i class="fa fa-rupee " ></i>)</th>
|
<th>Discount (₹)</th>
|
||||||
<th>Freight (<i class="fa fa-rupee " ></i>)</th>
|
<th>Freight (₹)</th>
|
||||||
<th>Package (<i class="fa fa-rupee " ></i>)</th>
|
<th>Package (₹)</th>
|
||||||
<th>Total (<i class="fa fa-rupee "></i>)</th>
|
<th>Total (₹)</th>
|
||||||
<th>Attachments</th>
|
<th>Attachments</th>
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
@ -524,6 +524,8 @@ table.dataTable thead > tr > td.sorting {
|
|||||||
// Set up your table
|
// Set up your table
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
|
||||||
|
$('[data-toggle="tooltip"]').tooltip();
|
||||||
|
/** On click for Displaying File MOdal***/
|
||||||
$('.splpofile').click(function() {
|
$('.splpofile').click(function() {
|
||||||
var id = $(this).attr('id');
|
var id = $(this).attr('id');
|
||||||
$("#Fileshow").modal("show");
|
$("#Fileshow").modal("show");
|
||||||
@ -557,18 +559,16 @@ $('.splpofile').click(function() {
|
|||||||
/******************** Datatable codes starts here **************************/
|
/******************** Datatable codes starts here **************************/
|
||||||
$.fn.dataTable.moment( 'DD-MM-YYYY' );
|
$.fn.dataTable.moment( 'DD-MM-YYYY' );
|
||||||
table = $('#cc').DataTable( {
|
table = $('#cc').DataTable( {
|
||||||
|
"language": {
|
||||||
|
"emptyTable": "<center> Data Not Found ! </center>"
|
||||||
|
},
|
||||||
"aaSorting": [[ 3, "asc" ]],
|
"aaSorting": [[ 3, "asc" ]],
|
||||||
"autoWidth": false,
|
"autoWidth": false,
|
||||||
orderCellsTop: true,
|
orderCellsTop: true,
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-2'i><'col-md-10'p>>",
|
"<'row'<'col-md-12't>><'row'<'col-md-2'i><'col-md-10'p>>",
|
||||||
buttons: [
|
buttons: [
|
||||||
|
|
||||||
{
|
{
|
||||||
extend: 'excelHtml5',
|
extend: 'excelHtml5',
|
||||||
footer: 'true',
|
footer: 'true',
|
||||||
@ -581,19 +581,114 @@ $('.splpofile').click(function() {
|
|||||||
},
|
},
|
||||||
|
|
||||||
'colvis'
|
'colvis'
|
||||||
]
|
],
|
||||||
|
"footerCallback": function ( row, data, start, end, display ) {
|
||||||
|
var api = this.api(), data;
|
||||||
|
|
||||||
|
// Remove the formatting to get integer data for summation
|
||||||
|
var intVal = function ( i ) {
|
||||||
|
return typeof i === 'string' ?
|
||||||
|
parseFloat(i.replace(/[^0.00-9.00]+/g,"")*1) :
|
||||||
|
typeof i === 'number' ?
|
||||||
|
parseFloat(i) : 0;
|
||||||
|
};
|
||||||
|
|
||||||
|
TotalQTY = api
|
||||||
|
.column( 7, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 7 ).footer() ).html( TotalQTY );
|
||||||
|
|
||||||
|
TotalVALUE = api
|
||||||
|
.column( 10, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
console.log(parseFloat(TotalVALUE));
|
||||||
|
$( api.column( 10 ).footer() ).html( TotalVALUE.toFixed(2) );
|
||||||
|
|
||||||
|
TotalExRATE = api
|
||||||
|
.column( 11, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 11 ).footer() ).html( TotalExRATE.toFixed(2) );
|
||||||
|
|
||||||
|
TotalSGST = api
|
||||||
|
.column( 12, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 12 ).footer() ).html( TotalSGST.toFixed(2) );
|
||||||
|
|
||||||
|
TotalCGST = api
|
||||||
|
.column( 13, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 13 ).footer() ).html( TotalCGST.toFixed(2) );
|
||||||
|
|
||||||
|
TotalIGST = api
|
||||||
|
.column( 14, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 14 ).footer() ).html( TotalIGST.toFixed(2) );
|
||||||
|
|
||||||
|
TotalDISCOUNT = api
|
||||||
|
.column( 15, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 15 ).footer() ).html( TotalDISCOUNT.toFixed(2) );
|
||||||
|
|
||||||
|
TotalFRIGEHT = api
|
||||||
|
.column( 16, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 16 ).footer() ).html( TotalFRIGEHT.toFixed(2) );
|
||||||
|
|
||||||
|
TotalPACKAGE = api
|
||||||
|
.column( 17, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 17 ).footer() ).html( TotalPACKAGE.toFixed(2) );
|
||||||
|
|
||||||
|
FinalTotal = api
|
||||||
|
.column( 18, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 18 ).footer() ).html( FinalTotal.toFixed(2) );
|
||||||
|
}
|
||||||
|
|
||||||
} );
|
} );
|
||||||
|
|
||||||
} );
|
} ); //on ready function Closed
|
||||||
$('#mySelect').on('change',function(){
|
|
||||||
|
|
||||||
table
|
|
||||||
.column(4)
|
|
||||||
.search(this.value)
|
|
||||||
.draw();
|
|
||||||
});
|
|
||||||
|
|
||||||
|
/** jquery on ready for DataPicker. */
|
||||||
$( function() {
|
$( function() {
|
||||||
//var dateFormat = "mm/dd/yy",
|
//var dateFormat = "mm/dd/yy",
|
||||||
from = $( "#min-date" )
|
from = $( "#min-date" )
|
||||||
@ -632,13 +727,4 @@ $('.splpofile').click(function() {
|
|||||||
}
|
}
|
||||||
} );
|
} );
|
||||||
|
|
||||||
function Reset()
|
|
||||||
{
|
|
||||||
$('#mySelect').val('');
|
|
||||||
|
|
||||||
}
|
|
||||||
$(document).ready(function(){
|
|
||||||
$('[data-toggle="tooltip"]').tooltip();
|
|
||||||
});
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
@ -1,11 +1,4 @@
|
|||||||
|
|
||||||
|
|
||||||
<?php
|
|
||||||
if(!empty($mms))
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
<script>
|
<script>
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
|
|
||||||
@ -196,7 +189,7 @@ if(!empty($mms))
|
|||||||
<th style="text-align:center">Supplier Name</th>
|
<th style="text-align:center">Supplier Name</th>
|
||||||
<th style="text-align:center">PO Count</th>
|
<th style="text-align:center">PO Count</th>
|
||||||
<th style="text-align:center">Quantity</th>
|
<th style="text-align:center">Quantity</th>
|
||||||
<th style="text-align:center">Value (<i class="fa fa-rupee "></i>)</th>
|
<th style="text-align:center">Value (₹)</th>
|
||||||
|
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
@ -308,6 +301,9 @@ if(!empty($mms))
|
|||||||
// Set up your table
|
// Set up your table
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
table = $('#cc').DataTable( {
|
table = $('#cc').DataTable( {
|
||||||
|
"language": {
|
||||||
|
"emptyTable": "<center> Data Not Found ! </center>"
|
||||||
|
},
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||||
@ -325,7 +321,46 @@ $(document).ready(function() {
|
|||||||
},
|
},
|
||||||
|
|
||||||
'colvis'
|
'colvis'
|
||||||
]
|
],
|
||||||
|
"footerCallback": function ( row, data, start, end, display ) {
|
||||||
|
var api = this.api(), data;
|
||||||
|
|
||||||
|
// Remove the formatting to get integer data for summation
|
||||||
|
var intVal = function ( i ) {
|
||||||
|
return typeof i === 'string' ?
|
||||||
|
parseFloat(i.replace(/[^0.00-9.00]+/g,"")*1) :
|
||||||
|
typeof i === 'number' ?
|
||||||
|
parseFloat(i) : 0;
|
||||||
|
};
|
||||||
|
|
||||||
|
TotalPOCount = api
|
||||||
|
.column( 1, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 1 ).footer() ).html( TotalPOCount.toFixed().bold() );
|
||||||
|
|
||||||
|
TotalQTY = api
|
||||||
|
.column( 2, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 2 ).footer() ).html( TotalQTY.toFixed().bold() );
|
||||||
|
|
||||||
|
TotalVALUE = api
|
||||||
|
.column( 3, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 3 ).footer() ).html( TotalVALUE.toFixed(2).bold() );
|
||||||
|
|
||||||
|
}
|
||||||
} );
|
} );
|
||||||
} );
|
} );
|
||||||
$('#mySelect').on('change',function(){
|
$('#mySelect').on('change',function(){
|
||||||
|
|||||||
@ -1,11 +1,4 @@
|
|||||||
|
|
||||||
|
|
||||||
<?php
|
|
||||||
if(!empty($mms))
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
<script>
|
<script>
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
|
|
||||||
@ -194,7 +187,7 @@ if(!empty($mms))
|
|||||||
<th style="text-align:center">Supplier Name</th>
|
<th style="text-align:center">Supplier Name</th>
|
||||||
<th style="text-align:center">PO Count</th>
|
<th style="text-align:center">PO Count</th>
|
||||||
<th style="text-align:center">Quantity</th>
|
<th style="text-align:center">Quantity</th>
|
||||||
<th style="text-align:center">Value (<i class="fa fa-rupee "></i>)</th>
|
<th style="text-align:center">Value (₹)</th>
|
||||||
|
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
@ -307,6 +300,9 @@ if(!empty($mms))
|
|||||||
// Set up your table
|
// Set up your table
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
table = $('#cc').DataTable( {
|
table = $('#cc').DataTable( {
|
||||||
|
"language": {
|
||||||
|
"emptyTable": "<center> Data Not Found ! </center>"
|
||||||
|
},
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||||
@ -324,7 +320,46 @@ $(document).ready(function() {
|
|||||||
},
|
},
|
||||||
|
|
||||||
'colvis'
|
'colvis'
|
||||||
]
|
],
|
||||||
|
"footerCallback": function ( row, data, start, end, display ) {
|
||||||
|
var api = this.api(), data;
|
||||||
|
|
||||||
|
// Remove the formatting to get integer data for summation
|
||||||
|
var intVal = function ( i ) {
|
||||||
|
return typeof i === 'string' ?
|
||||||
|
parseFloat(i.replace(/[^0.00-9.00]+/g,"")*1) :
|
||||||
|
typeof i === 'number' ?
|
||||||
|
parseFloat(i) : 0;
|
||||||
|
};
|
||||||
|
|
||||||
|
TotalPOCount = api
|
||||||
|
.column( 1, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 1 ).footer() ).html( TotalPOCount.toFixed().bold() );
|
||||||
|
|
||||||
|
TotalQTY = api
|
||||||
|
.column( 2, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 2 ).footer() ).html( TotalQTY.toFixed().bold() );
|
||||||
|
|
||||||
|
TotalVALUE = api
|
||||||
|
.column( 3, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 3 ).footer() ).html( TotalVALUE.toFixed(2).bold() );
|
||||||
|
|
||||||
|
}
|
||||||
} );
|
} );
|
||||||
} );
|
} );
|
||||||
$('#mySelect').on('change',function(){
|
$('#mySelect').on('change',function(){
|
||||||
|
|||||||
@ -1,12 +1,4 @@
|
|||||||
|
|
||||||
|
|
||||||
<?php
|
|
||||||
if(!empty($Total))
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
<style>
|
<style>
|
||||||
.dataTables_filter input {padding: 4px;}
|
.dataTables_filter input {padding: 4px;}
|
||||||
@ -164,6 +156,9 @@ if(!empty($Total))
|
|||||||
// Set up your table
|
// Set up your table
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
table = $('#req').DataTable( {
|
table = $('#req').DataTable( {
|
||||||
|
"language": {
|
||||||
|
"emptyTable": "<center> Data Not Found ! </center>"
|
||||||
|
},
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||||
|
|||||||
@ -1,11 +1,5 @@
|
|||||||
|
|
||||||
|
|
||||||
<?php
|
|
||||||
if(!empty($mms))
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
<style>
|
<style>
|
||||||
@ -94,7 +88,7 @@ if(!empty($mms))
|
|||||||
<tr>
|
<tr>
|
||||||
<th style="text-align:center">Month-Year</th>
|
<th style="text-align:center">Month-Year</th>
|
||||||
<th style="text-align:center">Quantity</th>
|
<th style="text-align:center">Quantity</th>
|
||||||
<th style="text-align:center">Total Value (<i class="fa fa-rupee " ></i>)</th>
|
<th style="text-align:center">Total Value (₹)</th>
|
||||||
|
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
@ -211,6 +205,9 @@ if(!empty($mms))
|
|||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
$.fn.dataTable.moment( 'DD-MM-YYYY' );
|
$.fn.dataTable.moment( 'DD-MM-YYYY' );
|
||||||
table = $('#cc').DataTable( {
|
table = $('#cc').DataTable( {
|
||||||
|
"language": {
|
||||||
|
"emptyTable": "<center> Data Not Found ! </center>"
|
||||||
|
},
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||||
@ -231,7 +228,37 @@ $(document).ready(function() {
|
|||||||
],
|
],
|
||||||
columnDefs: [
|
columnDefs: [
|
||||||
{ type: 'date-range', targets: 0 }
|
{ type: 'date-range', targets: 0 }
|
||||||
]
|
],
|
||||||
|
"footerCallback": function ( row, data, start, end, display ) {
|
||||||
|
var api = this.api(), data;
|
||||||
|
|
||||||
|
// Remove the formatting to get integer data for summation
|
||||||
|
var intVal = function ( i ) {
|
||||||
|
return typeof i === 'string' ?
|
||||||
|
parseFloat(i.replace(/[^0.00-9.00]+/g,"")*1) :
|
||||||
|
typeof i === 'number' ?
|
||||||
|
parseFloat(i) : 0;
|
||||||
|
};
|
||||||
|
|
||||||
|
TotalQTY = api
|
||||||
|
.column( 1, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 1 ).footer() ).html( TotalQTY.toFixed().bold() );
|
||||||
|
|
||||||
|
TotalVALUE = api
|
||||||
|
.column( 2, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
console.log(parseFloat(TotalVALUE));
|
||||||
|
$( api.column( 2 ).footer() ).html( TotalVALUE.toFixed(2).bold() );
|
||||||
|
|
||||||
|
}
|
||||||
} );
|
} );
|
||||||
} );
|
} );
|
||||||
$('#mySelect').on('change',function(){
|
$('#mySelect').on('change',function(){
|
||||||
|
|||||||
@ -1,12 +1,3 @@
|
|||||||
|
|
||||||
|
|
||||||
<?php
|
|
||||||
if(!empty($mms))
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
<style>
|
<style>
|
||||||
.dataTables_filter input {padding: 4px;}
|
.dataTables_filter input {padding: 4px;}
|
||||||
@ -94,7 +85,7 @@ if(!empty($mms))
|
|||||||
<tr>
|
<tr>
|
||||||
<th style="text-align:center">Month-Year</th>
|
<th style="text-align:center">Month-Year</th>
|
||||||
<th style="text-align:center">Quantity</th>
|
<th style="text-align:center">Quantity</th>
|
||||||
<th style="text-align:center">Total Value (<i class="fa fa-rupee " ></i>)</th>
|
<th style="text-align:center">Total Value (₹)</th>
|
||||||
|
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
@ -110,7 +101,7 @@ if(!empty($mms))
|
|||||||
|
|
||||||
<td style="text-align:center"><span>
|
<td style="text-align:center"><span>
|
||||||
<?php
|
<?php
|
||||||
$da = strtotime($rel->CreatedDate);
|
$da = strtotime($rel->materialrcvddate);
|
||||||
$new = date('M-y', $da);
|
$new = date('M-y', $da);
|
||||||
$pass = date('Y-m-d',$da);
|
$pass = date('Y-m-d',$da);
|
||||||
$ab=$this->input->post('financialyear');
|
$ab=$this->input->post('financialyear');
|
||||||
@ -210,6 +201,9 @@ jQuery.extend( jQuery.fn.dataTableExt.oSort, {
|
|||||||
// Set up your table
|
// Set up your table
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
table = $('#cc').DataTable( {
|
table = $('#cc').DataTable( {
|
||||||
|
"language": {
|
||||||
|
"emptyTable":"<center> Data Not Found ! </center>"
|
||||||
|
},
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||||
@ -230,7 +224,37 @@ $(document).ready(function() {
|
|||||||
],
|
],
|
||||||
columnDefs: [
|
columnDefs: [
|
||||||
{ type: 'date-range', targets: 0 }
|
{ type: 'date-range', targets: 0 }
|
||||||
]
|
],
|
||||||
|
"footerCallback": function ( row, data, start, end, display ) {
|
||||||
|
var api = this.api(), data;
|
||||||
|
|
||||||
|
// Remove the formatting to get integer data for summation
|
||||||
|
var intVal = function ( i ) {
|
||||||
|
return typeof i === 'string' ?
|
||||||
|
parseFloat(i.replace(/[^0.00-9.00]+/g,"")*1) :
|
||||||
|
typeof i === 'number' ?
|
||||||
|
parseFloat(i) : 0;
|
||||||
|
};
|
||||||
|
|
||||||
|
TotalQTY = api
|
||||||
|
.column( 1, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 1 ).footer() ).html( TotalQTY.toFixed().bold() );
|
||||||
|
|
||||||
|
TotalVALUE = api
|
||||||
|
.column( 2, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 2 ).footer() ).html( TotalVALUE.toFixed(2).bold() );
|
||||||
|
|
||||||
|
}
|
||||||
} );
|
} );
|
||||||
} );
|
} );
|
||||||
$('#mySelect').on('change',function(){
|
$('#mySelect').on('change',function(){
|
||||||
|
|||||||
@ -1,12 +1,5 @@
|
|||||||
|
|
||||||
|
|
||||||
<?php
|
|
||||||
if(!empty($mms))
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
<style>
|
<style>
|
||||||
.dataTables_filter input {padding: 4px;}
|
.dataTables_filter input {padding: 4px;}
|
||||||
@ -51,7 +44,7 @@ if(!empty($mms))
|
|||||||
<th style="text-align:center">Supplier Name</th>
|
<th style="text-align:center">Supplier Name</th>
|
||||||
<th style="text-align:center">Material Name</th>
|
<th style="text-align:center">Material Name</th>
|
||||||
<th style="text-align:center">Quantity</th>
|
<th style="text-align:center">Quantity</th>
|
||||||
<th style="text-align:center">Total Value (<i class="fa fa-rupee "></i>)</th>
|
<th style="text-align:center">Total Value (₹)</th>s
|
||||||
|
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
@ -147,6 +140,9 @@ if(!empty($mms))
|
|||||||
// Set up your table
|
// Set up your table
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
table = $('#cc').DataTable( {
|
table = $('#cc').DataTable( {
|
||||||
|
"language": {
|
||||||
|
"emptyTable": "<center> Data Not Found ! </center>"
|
||||||
|
},
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||||
@ -164,7 +160,37 @@ $(document).ready(function() {
|
|||||||
},
|
},
|
||||||
|
|
||||||
'colvis'
|
'colvis'
|
||||||
]
|
],
|
||||||
|
"footerCallback": function ( row, data, start, end, display ) {
|
||||||
|
var api = this.api(), data;
|
||||||
|
|
||||||
|
// Remove the formatting to get integer data for summation
|
||||||
|
var intVal = function ( i ) {
|
||||||
|
return typeof i === 'string' ?
|
||||||
|
parseFloat(i.replace(/[^0.00-9.00]+/g,"")*1) :
|
||||||
|
typeof i === 'number' ?
|
||||||
|
parseFloat(i) : 0;
|
||||||
|
};
|
||||||
|
|
||||||
|
TotalQTY = api
|
||||||
|
.column( 2, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 2 ).footer() ).html( TotalQTY.toFixed().bold() );
|
||||||
|
|
||||||
|
TotalVALUE = api
|
||||||
|
.column( 3, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 3 ).footer() ).html( TotalVALUE.toFixed(2).bold() );
|
||||||
|
|
||||||
|
}
|
||||||
} );
|
} );
|
||||||
} );
|
} );
|
||||||
$('#mySelect').on('change',function(){
|
$('#mySelect').on('change',function(){
|
||||||
|
|||||||
@ -1,11 +1,5 @@
|
|||||||
|
|
||||||
|
|
||||||
<?php
|
|
||||||
if(!empty($mms))
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
<style>
|
<style>
|
||||||
@ -51,7 +45,7 @@ if(!empty($mms))
|
|||||||
<th style="text-align:center">Supplier Name</th>
|
<th style="text-align:center">Supplier Name</th>
|
||||||
<th style="text-align:center">Material Name</th>
|
<th style="text-align:center">Material Name</th>
|
||||||
<th style="text-align:center">Quantity</th>
|
<th style="text-align:center">Quantity</th>
|
||||||
<th style="text-align:center">Total Value (<i class="fa fa-rupee "></i>)</th>
|
<th style="text-align:center">Total Value (₹)</th>
|
||||||
|
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
@ -147,6 +141,9 @@ if(!empty($mms))
|
|||||||
// Set up your table
|
// Set up your table
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
table = $('#cc').DataTable( {
|
table = $('#cc').DataTable( {
|
||||||
|
"language": {
|
||||||
|
"emptyTable": "<center> Data Not Found ! </center>"
|
||||||
|
},
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||||
@ -164,7 +161,37 @@ $(document).ready(function() {
|
|||||||
},
|
},
|
||||||
|
|
||||||
'colvis'
|
'colvis'
|
||||||
]
|
],
|
||||||
|
"footerCallback": function ( row, data, start, end, display ) {
|
||||||
|
var api = this.api(), data;
|
||||||
|
|
||||||
|
// Remove the formatting to get integer data for summation
|
||||||
|
var intVal = function ( i ) {
|
||||||
|
return typeof i === 'string' ?
|
||||||
|
parseFloat(i.replace(/[^0.00-9.00]+/g,"")*1) :
|
||||||
|
typeof i === 'number' ?
|
||||||
|
parseFloat(i) : 0;
|
||||||
|
};
|
||||||
|
|
||||||
|
TotalQTY = api
|
||||||
|
.column( 2, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 2 ).footer() ).html( TotalQTY.toFixed().bold() );
|
||||||
|
|
||||||
|
TotalVALUE = api
|
||||||
|
.column( 3, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 3 ).footer() ).html( TotalVALUE.toFixed(2).bold() );
|
||||||
|
|
||||||
|
}
|
||||||
} );
|
} );
|
||||||
} );
|
} );
|
||||||
$('#mySelect').on('change',function(){
|
$('#mySelect').on('change',function(){
|
||||||
|
|||||||
@ -9,14 +9,7 @@ if(!empty($debitmapping))
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// $inrsymbol='';
|
foreach($financialyear as $item)
|
||||||
// if(!empty($Indiancurrency))
|
|
||||||
// {
|
|
||||||
// foreach ($Indiancurrency as $inr)
|
|
||||||
// {
|
|
||||||
// $inrsymbol = $inr->FontCode2000;
|
|
||||||
// }}
|
|
||||||
foreach($financialyear as $item)
|
|
||||||
|
|
||||||
{
|
{
|
||||||
$finyear = $item->financial_year;
|
$finyear = $item->financial_year;
|
||||||
@ -48,29 +41,15 @@ if(!empty($debitmapping))
|
|||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
<div class="content-wrapper">
|
||||||
|
|
||||||
|
|
||||||
<!--<div class="row">
|
|
||||||
<div class="col-md-12">
|
|
||||||
<div id="container"></div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>-->
|
|
||||||
|
|
||||||
|
|
||||||
<div class="content-wrapper">
|
|
||||||
<section class="content">
|
<section class="content">
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
|
||||||
<!-- Left col -->
|
<!-- Left col -->
|
||||||
<div class="col-md-12" >
|
<div class="col-md-12" >
|
||||||
<!-- TABLE: LATEST ORDERS -->
|
<!-- TABLE: LATEST ORDERS -->
|
||||||
<div class="box box-info">
|
<div class="box box-info">
|
||||||
<!--<div class="box-header with-border">-->
|
|
||||||
<!--<center><h3 class="box-title"><p style="color:#3c8dbc"><b>Cashbook Reports</b></p></h3></center>-->
|
|
||||||
<!--</div>-->
|
|
||||||
<!-- /.box-header -->
|
|
||||||
<?php
|
<?php
|
||||||
if(!empty($mappingiv)){
|
if(!empty($mappingiv)){
|
||||||
foreach($mappingiv as $ap)
|
foreach($mappingiv as $ap)
|
||||||
@ -109,13 +88,13 @@ if(!empty($debitmapping))
|
|||||||
|
|
||||||
|
|
||||||
$totalamount=$pcamount+$inamount;
|
$totalamount=$pcamount+$inamount;
|
||||||
//echo $totalamount;
|
|
||||||
?>
|
?>
|
||||||
<form method="post" action="<?php echo base_url($this->uri->uri_string()); ?>">
|
<form method="post" action="<?php echo base_url($this->uri->uri_string()); ?>">
|
||||||
<center><h3 class="box-title"><p style="color:#3c8dbc"><b>Bank Credit Amount Paid Report</b></p></h3></center>
|
<center><h3 class="box-title"><p style="color:#3c8dbc"><b>Bank Credit Amount Paid Report</b></p></h3></center>
|
||||||
<br>
|
<br>
|
||||||
<br>
|
<br>
|
||||||
<div class="row">
|
|
||||||
|
|
||||||
<div class="box-body">
|
<div class="box-body">
|
||||||
<table class="table table-bordered table-hover" style="table-layout:auto;">
|
<table class="table table-bordered table-hover" style="table-layout:auto;">
|
||||||
@ -126,7 +105,6 @@ if(!empty($debitmapping))
|
|||||||
<th>Payment Mode</th>
|
<th>Payment Mode</th>
|
||||||
<th>Payment Amount (₹)</th>
|
<th>Payment Amount (₹)</th>
|
||||||
|
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
</thead>
|
</thead>
|
||||||
@ -134,68 +112,16 @@ if(!empty($debitmapping))
|
|||||||
<tr>
|
<tr>
|
||||||
<td><?php echo $ap->bankid?></td>
|
<td><?php echo $ap->bankid?></td>
|
||||||
<td>Bank</td>
|
<td>Bank</td>
|
||||||
|
<td><?php echo $totalamount ?></td>
|
||||||
<td><?php echo $totalamount ?></p></td>
|
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<!-- <div class="col-md-3 col-md-offset-9">
|
|
||||||
<div style=" border: 2px solid black;margin-left:0%;margin-top: -55px;font-size:14px;background-color:#ccc;">
|
|
||||||
<p style="margin-left:62px;padding-top:30px;">Payment ID: <b><?php echo $ap->bankid?></b></p>
|
|
||||||
<p style="margin-left:41px;">Payment Mode: <b>Bank</b></p>
|
|
||||||
<p style="margin-left:41px;">Payment Amount: <b><?php echo $totalamount ?></b></p>
|
|
||||||
</div>
|
|
||||||
</div> -->
|
|
||||||
</div>
|
</div>
|
||||||
<br>
|
<br>
|
||||||
<br>
|
<br>
|
||||||
<!--<div class="row">
|
|
||||||
<div class="col-md-3">
|
|
||||||
<label for="from_date">
|
|
||||||
<?php echo 'From Date'; ?>
|
|
||||||
</label>
|
|
||||||
<div class="input-group">
|
|
||||||
<input name="from_date" id="max-date" class="form-control datepicker">
|
|
||||||
<span class="input-group-addon">
|
|
||||||
<i class="fa fa-calendar fa-fw"></i>
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
<div class="col-md-3">
|
|
||||||
<label for="to_date">
|
|
||||||
<?php echo 'To Date'; ?>
|
|
||||||
</label>
|
|
||||||
<div class="input-group">
|
|
||||||
<input name="to_date" id="min-date" class="form-control datepicker">
|
|
||||||
<span class="input-group-addon">
|
|
||||||
<i class="fa fa-calendar fa-fw"></i>
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-md-3" >
|
|
||||||
<label for="from_date">
|
|
||||||
<?php echo 'Customer'; ?>
|
|
||||||
</label>
|
|
||||||
<select class="form-control" id="SupplierName" name="SupplierName">
|
|
||||||
<option value="">Select Supplier</option>
|
|
||||||
<?php
|
|
||||||
foreach($supplier as $gs):
|
|
||||||
|
|
||||||
{?>
|
|
||||||
|
|
||||||
<option value="<?php echo $gs->SupplierName;?>"><?php echo $gs->SupplierName ; ?></option>
|
|
||||||
|
|
||||||
|
|
||||||
<?php } endforeach; ?>
|
|
||||||
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
</div>-->
|
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<table class="table table-bordered table-hover" id="req" style="table-layout:auto;">
|
<table class="table table-bordered table-hover" id="req" style="table-layout:auto;">
|
||||||
@ -223,25 +149,13 @@ if(!empty($debitmapping))
|
|||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<td align="left" id="tov"><span><?php echo date_format(date_create($ap->indate),'d-m-Y');?></span></td>
|
<td align="left" id="tov"><span><?php echo date_format(date_create($ap->indate),'d-m-Y');?></span></td>
|
||||||
<td align="left" id="invno"><?php echo $ap->invoiceno?></span></td>
|
<td align="left" id="invno"><span><?php echo $ap->invoiceno?></span></td>
|
||||||
<td align="left" id="aa"><span><?php echo $ap->customername?></span></td>
|
<td align="left" id="aa"><span><?php echo $ap->customername?></span></td>
|
||||||
<td align="left" id="aa"><span><?php echo $ap->totinvoiceamount?></span></td>
|
<td align="left" id="aa"><span><?php echo $ap->totinvoiceamount?></span></td>
|
||||||
<td align="left" id="aa"><span><?php echo $ap->balancetoreceived?></span></td>
|
<td align="left" id="aa"><span><?php echo $ap->balancetoreceived?></span></td>
|
||||||
<td align="left" id="aa"><span><?php echo $ap->amountreceived?></span></td>
|
<td align="left" id="aa"><span><?php echo $ap->amountreceived?></span></td>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
<?php
|
<?php
|
||||||
$i++;
|
$i++;
|
||||||
@ -250,40 +164,7 @@ if(!empty($debitmapping))
|
|||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</tbody>
|
</tbody>
|
||||||
<!--<tfoot width="100%">
|
|
||||||
<tr>
|
|
||||||
<td style="text-align:left;"><strong>Total</strong></td>
|
|
||||||
<td> </td>
|
|
||||||
<td> </td>
|
|
||||||
<td> </td>
|
|
||||||
<td> </td>
|
|
||||||
<td style="text-align:right"><strong>
|
|
||||||
<?php
|
|
||||||
{
|
|
||||||
echo number_format($ti,2,'.','');
|
|
||||||
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</strong>
|
|
||||||
</td>
|
|
||||||
<td style="text-align:right"><strong>
|
|
||||||
<?php
|
|
||||||
{
|
|
||||||
echo number_format($tvt,2,'.','');
|
|
||||||
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</strong>
|
|
||||||
</td>
|
|
||||||
|
|
||||||
<td> </td>
|
|
||||||
<td> </td>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
</tfoot>-->
|
|
||||||
</table>
|
</table>
|
||||||
<center><h3 class="box-title"><p style="color:#3c8dbc"><b>Cashbook Reports</b></p></h3></center>
|
<center><h3 class="box-title"><p style="color:#3c8dbc"><b>Cashbook Reports</b></p></h3></center>
|
||||||
<br>
|
<br>
|
||||||
@ -296,12 +177,9 @@ if(!empty($debitmapping))
|
|||||||
<th>Bankid</th>
|
<th>Bankid</th>
|
||||||
<th>Amount Type</th>
|
<th>Amount Type</th>
|
||||||
<th>Total Amount (₹)</th>
|
<th>Total Amount (₹)</th>
|
||||||
<!--<th>Advance PO Amount (₹)</th>-->
|
|
||||||
<th>Option (₹)</th>
|
<th>Option (₹)</th>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
@ -316,14 +194,8 @@ if(!empty($debitmapping))
|
|||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<td align="left" id="date"><span><?php echo $mc->date?></span></td>
|
<td align="left" id="date"><span><?php echo $mc->date?></span></td>
|
||||||
<td align="left" id="date"><span><?php echo $mc->name?></span></td>
|
<td align="left" id="date"><span><?php echo $mc->name?></span></td>
|
||||||
<!--<td align="left" id="pono"><a href="<?= base_url() ?>cashbook/receipt?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>-->
|
|
||||||
|
|
||||||
<td align="left" id="sn"><span><?php echo $mc->bankid?></span></td>
|
<td align="left" id="sn"><span><?php echo $mc->bankid?></span></td>
|
||||||
<td align="left" id="tov"><span><?php echo $mc->amounttype?></span></td>
|
<td align="left" id="tov"><span><?php echo $mc->amounttype?></span></td>
|
||||||
@ -331,13 +203,6 @@ if(!empty($debitmapping))
|
|||||||
<td align="left" id="aa"><span><?php echo $mc->cashtype?></span></td>
|
<td align="left" id="aa"><span><?php echo $mc->cashtype?></span></td>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
<?php
|
<?php
|
||||||
$i++;
|
$i++;
|
||||||
@ -353,28 +218,23 @@ if(!empty($debitmapping))
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
<!-- /.box -->
|
<!-- /.box -->
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<!-- /.col -->
|
<!-- /.col -->
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- <script src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"></script> -->
|
<!-- <script src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"></script> -->
|
||||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
|
<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.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/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
table = $('#req').DataTable( {
|
table = $('#req').DataTable( {
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||||
@ -393,10 +253,6 @@ if(!empty($debitmapping))
|
|||||||
|
|
||||||
'colvis'
|
'colvis'
|
||||||
]
|
]
|
||||||
} );
|
} );
|
||||||
} );
|
} );
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -142,32 +142,32 @@ if (date('m') >= 4) {
|
|||||||
<th style="text-align:center" colspan="2">Total</th>
|
<th style="text-align:center" colspan="2">Total</th>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th style="text-align:center">Receipt (<i class="fa fa-rupee "></i>)</th>
|
<th style="text-align:center">Receipt (₹)</th>
|
||||||
<th style="text-align:center">Payment (<i class="fa fa-rupee "></i>)</th>
|
<th style="text-align:center">Payment (₹)</th>
|
||||||
<th style="text-align:center">Receipt (<i class="fa fa-rupee "></i>)</th>
|
<th style="text-align:center">Receipt (₹)</th>
|
||||||
<th style="text-align:center">Payment (<i class="fa fa-rupee "></i>)</th>
|
<th style="text-align:center">Payment (₹)</th>
|
||||||
<th style="text-align:center">Recepit (<i class="fa fa-rupee "></i>)</th>
|
<th style="text-align:center">Recepit (₹)</th>
|
||||||
<th style="text-align:center">Payment (<i class="fa fa-rupee "></i>)</th>
|
<th style="text-align:center">Payment (₹)</th>
|
||||||
<th style="text-align:center">Receipt (<i class="fa fa-rupee "></i>)</th>
|
<th style="text-align:center">Receipt (₹)</th>
|
||||||
<th style="text-align:center">Payment (<i class="fa fa-rupee "></i>)</th>
|
<th style="text-align:center">Payment (₹)</th>
|
||||||
<th style="text-align:center">Receipt (<i class="fa fa-rupee "></i>)</th>
|
<th style="text-align:center">Receipt (₹)</th>
|
||||||
<th style="text-align:center">Payment (<i class="fa fa-rupee "></i>)</th>
|
<th style="text-align:center">Payment (₹)</th>
|
||||||
<th style="text-align:center">Recepit (<i class="fa fa-rupee "></i>)</th>
|
<th style="text-align:center">Recepit (₹)</th>
|
||||||
<th style="text-align:center">Payment (<i class="fa fa-rupee "></i>)</th>
|
<th style="text-align:center">Payment (₹)</th>
|
||||||
<th style="text-align:center">Receipt (<i class="fa fa-rupee "></i>)</th>
|
<th style="text-align:center">Receipt (₹)</th>
|
||||||
<th style="text-align:center">Payment (<i class="fa fa-rupee "></i>)</th>
|
<th style="text-align:center">Payment (₹)</th>
|
||||||
<th style="text-align:center">Receipt (<i class="fa fa-rupee "></i>)</th>
|
<th style="text-align:center">Receipt (₹)</th>
|
||||||
<th style="text-align:center">Payment (<i class="fa fa-rupee "></i>)</th>
|
<th style="text-align:center">Payment (₹)</th>
|
||||||
<th style="text-align:center">Recepit (<i class="fa fa-rupee "></i>)</th>
|
<th style="text-align:center">Recepit (₹)</th>
|
||||||
<th style="text-align:center">Payment (<i class="fa fa-rupee "></i>)</th>
|
<th style="text-align:center">Payment (₹)</th>
|
||||||
<th style="text-align:center">Receipt (<i class="fa fa-rupee "></i>)</th>
|
<th style="text-align:center">Receipt (₹)</th>
|
||||||
<th style="text-align:center">Payment (<i class="fa fa-rupee "></i>)</th>
|
<th style="text-align:center">Payment (₹)</th>
|
||||||
<th style="text-align:center">Receipt (<i class="fa fa-rupee "></i>)</th>
|
<th style="text-align:center">Receipt (₹)</th>
|
||||||
<th style="text-align:center">Payment (<i class="fa fa-rupee "></i>)</th>
|
<th style="text-align:center">Payment (₹)</th>
|
||||||
<th style="text-align:center">Recepit (<i class="fa fa-rupee "></i>)</th>
|
<th style="text-align:center">Recepit (₹)</th>
|
||||||
<th style="text-align:center">Payment (<i class="fa fa-rupee "></i>)</th>
|
<th style="text-align:center">Payment (₹)</th>
|
||||||
<th style="text-align:center">Recepit (<i class="fa fa-rupee "></i>)</th>
|
<th style="text-align:center">Recepit (₹)</th>
|
||||||
<th style="text-align:center">Payment (<i class="fa fa-rupee "></i>)</th>
|
<th style="text-align:center">Payment (₹)</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
@ -267,6 +267,9 @@ if (date('m') >= 4) {
|
|||||||
// Set up your table
|
// Set up your table
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
table = $('#ccmonthwise').DataTable( {
|
table = $('#ccmonthwise').DataTable( {
|
||||||
|
"language": {
|
||||||
|
"emptyTable": "<center> Data Not Found ! </center>"
|
||||||
|
},
|
||||||
"dom": "<'row'<'col-md-3'l><'col-md-9'Bf>>" +
|
"dom": "<'row'<'col-md-3'l><'col-md-9'Bf>>" +
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||||
|
|||||||
@ -54,12 +54,12 @@
|
|||||||
<th style="text-align:center" colspan="2"><?php echo $ab; ?></th>
|
<th style="text-align:center" colspan="2"><?php echo $ab; ?></th>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th style="text-align:center">Receipt (<i class="fa fa-rupee "></i>)</th>
|
<th style="text-align:center">Receipt (₹)</th>
|
||||||
<th style="text-align:center">Payment (<i class="fa fa-rupee "></i>)</th>
|
<th style="text-align:center">Payment (₹)</th>
|
||||||
<th style="text-align:center">Receipt (<i class="fa fa-rupee "></i>)</th>
|
<th style="text-align:center">Receipt (₹)</th>
|
||||||
<th style="text-align:center">Payment (<i class="fa fa-rupee "></i>)</th>
|
<th style="text-align:center">Payment (₹)</th>
|
||||||
<th style="text-align:center">Recepit (<i class="fa fa-rupee "></i>)</th>
|
<th style="text-align:center">Recepit (₹)</th>
|
||||||
<th style="text-align:center">Payment (<i class="fa fa-rupee "></i>)</th>
|
<th style="text-align:center">Payment (₹)</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<?php
|
<?php
|
||||||
@ -122,6 +122,9 @@
|
|||||||
// Set up your table
|
// Set up your table
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
table = $('#ccr').DataTable( {
|
table = $('#ccr').DataTable( {
|
||||||
|
"language": {
|
||||||
|
"emptyTable":"<center> Data Not Found ! </center>"
|
||||||
|
},
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||||
@ -139,7 +142,73 @@ $(document).ready(function() {
|
|||||||
},
|
},
|
||||||
|
|
||||||
'colvis'
|
'colvis'
|
||||||
]
|
],
|
||||||
|
"footerCallback": function ( row, data, start, end, display ) {
|
||||||
|
var api = this.api(), data;
|
||||||
|
|
||||||
|
// Remove the formatting to get integer data for summation
|
||||||
|
var intVal = function ( i ) {
|
||||||
|
return typeof i === 'string' ?
|
||||||
|
parseFloat(i.replace(/[^0.00-9.00]+/g,"")*1) :
|
||||||
|
typeof i === 'number' ?
|
||||||
|
parseFloat(i) : 0;
|
||||||
|
};
|
||||||
|
|
||||||
|
TotalDailyRcpt = api
|
||||||
|
.column( 1, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 1 ).footer() ).html( TotalDailyRcpt.toFixed(2).bold() );
|
||||||
|
|
||||||
|
TotalDailyPmt = api
|
||||||
|
.column( 2, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 2 ).footer() ).html( TotalDailyPmt.toFixed(2).bold() );
|
||||||
|
|
||||||
|
TotalMthyRcpt = api
|
||||||
|
.column( 3, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 3 ).footer() ).html( TotalMthyRcpt.toFixed(2).bold() );
|
||||||
|
|
||||||
|
TotalMthyPmt = api
|
||||||
|
.column( 4, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 4 ).footer() ).html( TotalMthyPmt.toFixed(2).bold() );
|
||||||
|
|
||||||
|
TotalYrlyRcpt = api
|
||||||
|
.column( 5, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 5 ).footer() ).html( TotalYrlyRcpt.toFixed(2).bold() );
|
||||||
|
|
||||||
|
TotalYrlyPmt = api
|
||||||
|
.column( 6, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 6 ).footer() ).html( TotalYrlyPmt.toFixed(2).bold() );
|
||||||
|
|
||||||
|
}
|
||||||
} );
|
} );
|
||||||
} );
|
} );
|
||||||
$('#mySelect').on('change',function(){
|
$('#mySelect').on('change',function(){
|
||||||
|
|||||||
@ -59,17 +59,14 @@ if(!empty($Indiancurrency))
|
|||||||
<div class="btn-group btn-group-justified no-margin">
|
<div class="btn-group btn-group-justified no-margin">
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<table class="table table-bordered table-hover" id="req" style="font-size:13px;">
|
<table class="table table-bordered table-hover" id="cb" style="font-size:13px;">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
||||||
<th>Date</th>
|
<th>Date</th>
|
||||||
|
|
||||||
<th>Account Name</th>
|
<th>Account Name</th>
|
||||||
<th>Type</th>
|
<th>Type</th>
|
||||||
|
|
||||||
<th>Paid To</th>
|
<th>Paid To</th>
|
||||||
|
|
||||||
<th style="text-align:right;"> Payment <?php echo '('.$inrsymbol.')' ?></th>
|
<th style="text-align:right;"> Payment <?php echo '('.$inrsymbol.')' ?></th>
|
||||||
<th>Description</th>
|
<th>Description</th>
|
||||||
<th>Action</th>
|
<th>Action</th>
|
||||||
@ -176,8 +173,12 @@ if(!empty($Indiancurrency))
|
|||||||
// Bootstrap datepicker
|
// Bootstrap datepicker
|
||||||
// Set up your table
|
// Set up your table
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
table = $('#req').DataTable( {
|
|
||||||
$.fn.dataTable.moment( 'DD-MM-YYYY' );
|
$.fn.dataTable.moment( 'DD-MM-YYYY' );
|
||||||
|
|
||||||
|
table = $('#cb').DataTable( {
|
||||||
|
"language": {
|
||||||
|
"emptyTable":"<center> Data Not Found ! </center>"
|
||||||
|
},
|
||||||
"dom": "<'row'<'col-md-3'l><'col-md-9'Bf>>" +
|
"dom": "<'row'<'col-md-3'l><'col-md-9'Bf>>" +
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||||
@ -195,10 +196,29 @@ $(document).ready(function() {
|
|||||||
},
|
},
|
||||||
|
|
||||||
'colvis'
|
'colvis'
|
||||||
]
|
],
|
||||||
|
"footerCallback": function ( row, data, start, end, display ) {
|
||||||
|
var api = this.api(), data;
|
||||||
|
|
||||||
|
// Remove the formatting to get integer data for summation
|
||||||
|
var intVal = function ( i ) {
|
||||||
|
return typeof i === 'string' ?
|
||||||
|
parseFloat(i.replace(/[^0.00-9.00]+/g,"")*1) :
|
||||||
|
typeof i === 'number' ?
|
||||||
|
parseFloat(i) : 0;
|
||||||
|
};
|
||||||
|
|
||||||
|
TotalPmt = api
|
||||||
|
.column( 4, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 4 ).footer() ).html( TotalPmt.toFixed(2).bold() );
|
||||||
|
}
|
||||||
|
|
||||||
} );
|
} );
|
||||||
} );
|
} );
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
@ -183,6 +183,9 @@ if(!empty($Indiancurrency))
|
|||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
$.fn.dataTable.moment( 'DD-MM-YYYY' );
|
$.fn.dataTable.moment( 'DD-MM-YYYY' );
|
||||||
table = $('#req').DataTable( {
|
table = $('#req').DataTable( {
|
||||||
|
"language": {
|
||||||
|
"emptyTable":"<center> Data Not Found ! </center>"
|
||||||
|
},
|
||||||
"dom": "<'row'<'col-md-3'l><'col-md-9'Bf>>" +
|
"dom": "<'row'<'col-md-3'l><'col-md-9'Bf>>" +
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||||
@ -200,10 +203,29 @@ $(document).ready(function() {
|
|||||||
},
|
},
|
||||||
|
|
||||||
'colvis'
|
'colvis'
|
||||||
]
|
],
|
||||||
|
"footerCallback": function ( row, data, start, end, display ) {
|
||||||
|
var api = this.api(), data;
|
||||||
|
|
||||||
|
// Remove the formatting to get integer data for summation
|
||||||
|
var intVal = function ( i ) {
|
||||||
|
return typeof i === 'string' ?
|
||||||
|
parseFloat(i.replace(/[^0.00-9.00]+/g,"")*1) :
|
||||||
|
typeof i === 'number' ?
|
||||||
|
parseFloat(i) : 0;
|
||||||
|
};
|
||||||
|
|
||||||
|
TotalPmt = api
|
||||||
|
.column( 4, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 4 ).footer() ).html( TotalPmt.toFixed(2).bold() );
|
||||||
|
}
|
||||||
} );
|
} );
|
||||||
} );
|
} );
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
@ -1,15 +1,3 @@
|
|||||||
|
|
||||||
<?php
|
|
||||||
|
|
||||||
$inrsymbol='';
|
|
||||||
if(!empty($Indiancurrency))
|
|
||||||
{
|
|
||||||
foreach ($Indiancurrency as $inr)
|
|
||||||
{
|
|
||||||
$inrsymbol = $inr->FontCode2000;
|
|
||||||
}}
|
|
||||||
?>
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
<style>
|
<style>
|
||||||
.dataTables_filter input {padding: 4px;}
|
.dataTables_filter input {padding: 4px;}
|
||||||
@ -53,8 +41,8 @@ if(!empty($Indiancurrency))
|
|||||||
<th>Paid Type</th>
|
<th>Paid Type</th>
|
||||||
<!--<th>Received From</th>
|
<!--<th>Received From</th>
|
||||||
<th>Paid To</th>-->
|
<th>Paid To</th>-->
|
||||||
<th style="text-align:right;"> Receipt (<i class="fa fa-rupee ">)</th>
|
<th style="text-align:right;"> Receipt (₹)</th>
|
||||||
<th style="text-align:right;"> Payment (<i class="fa fa-rupee ">)</th>
|
<th style="text-align:right;"> Payment (₹)</th>
|
||||||
|
|
||||||
<!--<th>Description</th>-->
|
<!--<th>Description</th>-->
|
||||||
|
|
||||||
@ -147,6 +135,9 @@ if(!empty($Indiancurrency))
|
|||||||
// Set up your table
|
// Set up your table
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
table = $('#req').DataTable( {
|
table = $('#req').DataTable( {
|
||||||
|
"language": {
|
||||||
|
"emptyTable":"<center> Data Not Found ! </center>"
|
||||||
|
},
|
||||||
"dom": "<'row'<'col-md-5'l><'col-md-7'Bf>>" +
|
"dom": "<'row'<'col-md-5'l><'col-md-7'Bf>>" +
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||||
@ -164,7 +155,37 @@ $(document).ready(function() {
|
|||||||
},
|
},
|
||||||
|
|
||||||
'colvis'
|
'colvis'
|
||||||
]
|
],
|
||||||
|
"footerCallback": function ( row, data, start, end, display ) {
|
||||||
|
var api = this.api(), data;
|
||||||
|
|
||||||
|
// Remove the formatting to get integer data for summation
|
||||||
|
var intVal = function ( i ) {
|
||||||
|
return typeof i === 'string' ?
|
||||||
|
parseFloat(i.replace(/[^0.00-9.00]+/g,"")*1) :
|
||||||
|
typeof i === 'number' ?
|
||||||
|
parseFloat(i) : 0;
|
||||||
|
};
|
||||||
|
|
||||||
|
TotalRcpt = api
|
||||||
|
.column( 2, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 2 ).footer() ).html( TotalRcpt.toFixed(2).bold() );
|
||||||
|
|
||||||
|
TotalPmt = api
|
||||||
|
.column( 3, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 3 ).footer() ).html( TotalPmt.toFixed(2).bold() );
|
||||||
|
|
||||||
|
}
|
||||||
} );
|
} );
|
||||||
} );
|
} );
|
||||||
|
|
||||||
|
|||||||
@ -1,8 +1,5 @@
|
|||||||
|
|
||||||
|
|
||||||
<?php
|
|
||||||
//print_r($fy);die();
|
|
||||||
?>
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
<style>
|
<style>
|
||||||
@ -264,6 +261,9 @@
|
|||||||
// Set up your table
|
// Set up your table
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
table = $('#cc').DataTable( {
|
table = $('#cc').DataTable( {
|
||||||
|
"language": {
|
||||||
|
"emptyTable": "<center> Data Not Found ! </center>"
|
||||||
|
},
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||||
@ -281,7 +281,37 @@ $(document).ready(function() {
|
|||||||
},
|
},
|
||||||
|
|
||||||
'colvis'
|
'colvis'
|
||||||
]
|
],
|
||||||
|
"footerCallback": function ( row, data, start, end, display ) {
|
||||||
|
var api = this.api(), data;
|
||||||
|
|
||||||
|
// Remove the formatting to get integer data for summation
|
||||||
|
var intVal = function ( i ) {
|
||||||
|
return typeof i === 'string' ?
|
||||||
|
parseFloat(i.replace(/[^0-9]+/g,"")*1) :
|
||||||
|
typeof i === 'number' ?
|
||||||
|
parseFloat(i) : 0;
|
||||||
|
};
|
||||||
|
|
||||||
|
TotalPOCount = api
|
||||||
|
.column( 5, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 5 ).footer() ).html( TotalPOCount.toFixed().bold() );
|
||||||
|
|
||||||
|
TotalQTY = api
|
||||||
|
.column( 6, { search:'applied' } )
|
||||||
|
.data()
|
||||||
|
.reduce( function (a, b) {
|
||||||
|
return intVal(a) + intVal(b);
|
||||||
|
}, 0 );
|
||||||
|
|
||||||
|
$( api.column( 6 ).footer() ).html( TotalQTY.toFixed().bold() );
|
||||||
|
|
||||||
|
}
|
||||||
} );
|
} );
|
||||||
} );
|
} );
|
||||||
$('#mySelect').on('change',function(){
|
$('#mySelect').on('change',function(){
|
||||||
|
|||||||
@ -1,9 +1,5 @@
|
|||||||
|
|
||||||
|
|
||||||
<?php
|
|
||||||
//print_r($fy);die();
|
|
||||||
?>
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
<style>
|
<style>
|
||||||
.dataTables_filter input {padding: 4px;}
|
.dataTables_filter input {padding: 4px;}
|
||||||
@ -226,6 +222,9 @@
|
|||||||
// Set up your table
|
// Set up your table
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
table = $('#cc').DataTable( {
|
table = $('#cc').DataTable( {
|
||||||
|
"language": {
|
||||||
|
"emptyTable": "<center> Data Not Found ! </center>"
|
||||||
|
},
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||||
|
|||||||
@ -1,12 +1,5 @@
|
|||||||
|
|
||||||
|
|
||||||
<?php
|
|
||||||
if(!empty($pending_list))
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||||
<style>
|
<style>
|
||||||
.dataTables_filter input {padding: 4px;}
|
.dataTables_filter input {padding: 4px;}
|
||||||
@ -243,6 +236,9 @@ if(!empty($pending_list))
|
|||||||
// Set up your table
|
// Set up your table
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
table = $('#req').DataTable( {
|
table = $('#req').DataTable( {
|
||||||
|
"language": {
|
||||||
|
"emptyTable": "<center> Data Not Found ! </center>"
|
||||||
|
},
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user