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)
|
||||
// ";
|
||||
//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
|
||||
where status != 'ST030' and date(materialrcvddate) >= '$a-04-01' and date(materialrcvddate) <= '$b-03-31'
|
||||
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">
|
||||
<style>
|
||||
.dataTables_filter input {padding: 4px;}
|
||||
@ -143,7 +136,7 @@ if(!empty($mmr))
|
||||
<th>Material Code</th>
|
||||
<th>Material Name</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
|
||||
$(document).ready(function() {
|
||||
table = $('#cc').DataTable( {
|
||||
"language": {
|
||||
"emptyTable": "<center> Data Not Found ! </center>"
|
||||
},
|
||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||
@ -227,7 +223,29 @@ $(document).ready(function() {
|
||||
},
|
||||
|
||||
'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(){
|
||||
|
||||
@ -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">
|
||||
<style>
|
||||
.dataTables_filter input {padding: 4px;}
|
||||
@ -193,7 +185,7 @@ if(!empty($rel_po))
|
||||
<th>PO Date</th>
|
||||
<th>Released Date</th>
|
||||
<th>Requested Department</th>
|
||||
<th>Total Order Value ( <i class="fa fa-rupee "></i>)</th>
|
||||
<th>Total Order Value (₹)</th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
@ -259,6 +251,9 @@ if(!empty($rel_po))
|
||||
$(document).ready(function() {
|
||||
$.fn.dataTable.moment( 'DD-MM-YYYY' );
|
||||
table = $('#req').DataTable( {
|
||||
"language": {
|
||||
"emptyTable": "<center> Data Not Found ! </center>"
|
||||
},
|
||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||
@ -276,7 +271,27 @@ $(document).ready(function() {
|
||||
},
|
||||
|
||||
'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">Material Received Date</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>
|
||||
</tr>
|
||||
</thead>
|
||||
@ -361,7 +361,9 @@ $("#Fileshow").modal("show");
|
||||
|
||||
$.fn.dataTable.moment( 'DD-MM-YYYY' );
|
||||
table = $('#cc').DataTable( {
|
||||
|
||||
"language": {
|
||||
"emptyTable":"<center> Data Not Found ! </center>"
|
||||
},
|
||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||
@ -379,7 +381,30 @@ $.fn.dataTable.moment( 'DD-MM-YYYY' );
|
||||
},
|
||||
|
||||
'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">
|
||||
<style>
|
||||
.dataTables_filter input {padding: 4px;}
|
||||
@ -31,8 +23,8 @@ if(!empty($mms))
|
||||
}
|
||||
|
||||
|
||||
</style>
|
||||
<div class="content-wrapper">
|
||||
</style>
|
||||
<div class="content-wrapper">
|
||||
<section class="content">
|
||||
<div class="row" style="min-height: 600px;">
|
||||
<!-- Left col -->
|
||||
@ -58,7 +50,7 @@ if(!empty($mms))
|
||||
</tr>
|
||||
<tr>
|
||||
<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>
|
||||
@ -168,6 +160,9 @@ if(!empty($mms))
|
||||
// Set up your table
|
||||
$(document).ready(function() {
|
||||
table = $('#cc').DataTable( {
|
||||
"language": {
|
||||
"emptyTable":"<center> Data Not Found ! </center>"
|
||||
},
|
||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||
@ -185,7 +180,39 @@ $(document).ready(function() {
|
||||
},
|
||||
|
||||
'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(){
|
||||
|
||||
@ -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">
|
||||
<style>
|
||||
.dataTables_filter input {padding: 4px;}
|
||||
@ -59,7 +50,7 @@ if(!empty($mms))
|
||||
</tr>
|
||||
<tr>
|
||||
<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>
|
||||
@ -178,6 +169,9 @@ if(!empty($mms))
|
||||
// Set up your table
|
||||
$(document).ready(function() {
|
||||
table = $('#cc').DataTable( {
|
||||
"language": {
|
||||
"emptyTable":"<center> Data Not Found ! </center>"
|
||||
},
|
||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||
@ -195,7 +189,38 @@ $(document).ready(function() {
|
||||
},
|
||||
|
||||
'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(){
|
||||
|
||||
@ -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">
|
||||
<style>
|
||||
.dataTables_filter input {padding: 4px;}
|
||||
@ -58,7 +51,7 @@ if(!empty($mms))
|
||||
</tr>
|
||||
<tr>
|
||||
<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>
|
||||
@ -168,6 +161,9 @@ if(!empty($mms))
|
||||
// Set up your table
|
||||
$(document).ready(function() {
|
||||
table = $('#cc').DataTable( {
|
||||
"language": {
|
||||
"emptyTable":"<center> Data Not Found ! </center>"
|
||||
},
|
||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||
@ -185,7 +181,39 @@ $(document).ready(function() {
|
||||
},
|
||||
|
||||
'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(){
|
||||
|
||||
@ -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">
|
||||
<style>
|
||||
.dataTables_filter input {padding: 4px;}
|
||||
@ -58,7 +51,7 @@ if(!empty($mms))
|
||||
</tr>
|
||||
<tr>
|
||||
<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>
|
||||
@ -168,6 +161,9 @@ if(!empty($mms))
|
||||
// Set up your table
|
||||
$(document).ready(function() {
|
||||
table = $('#cc').DataTable( {
|
||||
"language": {
|
||||
"emptyTable":"<center> Data Not Found ! </center>"
|
||||
},
|
||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||
@ -185,7 +181,38 @@ $(document).ready(function() {
|
||||
},
|
||||
|
||||
'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(){
|
||||
|
||||
@ -59,7 +59,7 @@ if(!empty($mms))
|
||||
</tr>
|
||||
<tr>
|
||||
<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>
|
||||
@ -179,6 +179,9 @@ if(!empty($mms))
|
||||
// Set up your table
|
||||
$(document).ready(function() {
|
||||
table = $('#cc').DataTable( {
|
||||
"language": {
|
||||
"emptyTable":"<center> Data Not Found ! </center>"
|
||||
},
|
||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||
@ -196,7 +199,38 @@ $(document).ready(function() {
|
||||
},
|
||||
|
||||
'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(){
|
||||
|
||||
@ -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">
|
||||
<style>
|
||||
.dataTables_filter input {padding: 4px;}
|
||||
@ -60,7 +52,7 @@ if(!empty($mms))
|
||||
</tr>
|
||||
<tr>
|
||||
<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>
|
||||
@ -171,6 +163,9 @@ if(!empty($mms))
|
||||
// Set up your table
|
||||
$(document).ready(function() {
|
||||
table = $('#cc').DataTable( {
|
||||
"language": {
|
||||
"emptyTable":"<center> Data Not Found ! </center>"
|
||||
},
|
||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||
@ -188,7 +183,38 @@ $(document).ready(function() {
|
||||
},
|
||||
|
||||
'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(){
|
||||
|
||||
@ -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">
|
||||
<style>
|
||||
.dataTables_filter input {padding: 4px;}
|
||||
@ -104,8 +94,8 @@ if(!empty($ccrpt))
|
||||
<th>Department</th>
|
||||
<th>Budget Type</th>
|
||||
<th>Budget Year</th>
|
||||
<th>Utilized Amount ( <i class="fa fa-rupee " ></i>)</th>
|
||||
<th>Balance Amount ( <i class="fa fa-rupee " ></i>)</th>
|
||||
<th>Utilized Amount (₹)</th>
|
||||
<th>Balance Amount (₹)</th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
@ -159,6 +149,9 @@ if(!empty($ccrpt))
|
||||
// Set up your table
|
||||
$(document).ready(function() {
|
||||
table = $('#cc').DataTable( {
|
||||
"language": {
|
||||
"emptyTable":"<center> Data Not Found ! </center>"
|
||||
},
|
||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||
|
||||
@ -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">
|
||||
<style>
|
||||
.dataTables_filter input {padding: 4px;}
|
||||
@ -56,7 +47,7 @@ if(!empty($mms))
|
||||
</tr>
|
||||
<tr>
|
||||
<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>
|
||||
@ -160,6 +151,9 @@ if(!empty($mms))
|
||||
// Set up your table
|
||||
$(document).ready(function() {
|
||||
table = $('#cc').DataTable( {
|
||||
"language": {
|
||||
"emptyTable":"<center> Data Not Found ! </center>"
|
||||
},
|
||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||
@ -177,7 +171,37 @@ $(document).ready(function() {
|
||||
},
|
||||
|
||||
'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(){
|
||||
|
||||
@ -56,7 +56,7 @@ if(!empty($mms))
|
||||
</tr>
|
||||
<tr>
|
||||
<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>
|
||||
@ -160,6 +160,9 @@ if(!empty($mms))
|
||||
// Set up your table
|
||||
$(document).ready(function() {
|
||||
table = $('#cc').DataTable( {
|
||||
"language": {
|
||||
"emptyTable":"<center> Data Not Found ! </center>"
|
||||
},
|
||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||
@ -177,7 +180,37 @@ $(document).ready(function() {
|
||||
},
|
||||
|
||||
'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(){
|
||||
|
||||
@ -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">
|
||||
<style>
|
||||
.dataTables_filter input {padding: 4px;}
|
||||
@ -56,7 +48,7 @@ if(!empty($mms))
|
||||
</tr>
|
||||
<tr>
|
||||
<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>
|
||||
@ -170,6 +162,9 @@ if(!empty($mms))
|
||||
// Set up your table
|
||||
$(document).ready(function() {
|
||||
table = $('#cc').DataTable( {
|
||||
"language": {
|
||||
"emptyTable":"<center> Data Not Found ! </center>"
|
||||
},
|
||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||
@ -187,7 +182,37 @@ $(document).ready(function() {
|
||||
},
|
||||
|
||||
'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(){
|
||||
|
||||
@ -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">
|
||||
<style>
|
||||
.dataTables_filter input {padding: 4px;}
|
||||
@ -56,7 +47,7 @@ if(!empty($mms))
|
||||
</tr>
|
||||
<tr>
|
||||
<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>
|
||||
@ -166,6 +157,9 @@ if(!empty($mms))
|
||||
// Set up your table
|
||||
$(document).ready(function() {
|
||||
table = $('#cc').DataTable( {
|
||||
"language": {
|
||||
"emptyTable":"<center> Data Not Found ! </center>"
|
||||
},
|
||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||
@ -183,7 +177,38 @@ $(document).ready(function() {
|
||||
},
|
||||
|
||||
'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(){
|
||||
|
||||
@ -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">
|
||||
<style>
|
||||
.dataTables_filter input {padding: 4px;}
|
||||
@ -56,9 +47,8 @@ if(!empty($mms))
|
||||
</tr>
|
||||
<tr>
|
||||
<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>
|
||||
</thead>
|
||||
<tbody>
|
||||
@ -166,6 +156,9 @@ if(!empty($mms))
|
||||
// Set up your table
|
||||
$(document).ready(function() {
|
||||
table = $('#cc').DataTable( {
|
||||
"language": {
|
||||
"emptyTable":"<center> Data Not Found ! </center>"
|
||||
},
|
||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||
@ -183,7 +176,40 @@ $(document).ready(function() {
|
||||
},
|
||||
|
||||
'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(){
|
||||
|
||||
@ -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">
|
||||
<style>
|
||||
.dataTables_filter input {padding: 4px;}
|
||||
@ -56,9 +48,8 @@ if(!empty($mms))
|
||||
</tr>
|
||||
<tr>
|
||||
<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>
|
||||
</thead>
|
||||
<tbody>
|
||||
@ -177,6 +168,9 @@ if(!empty($mms))
|
||||
// Set up your table
|
||||
$(document).ready(function() {
|
||||
table = $('#cc').DataTable( {
|
||||
"language": {
|
||||
"emptyTable":"<center> Data Not Found ! </center>"
|
||||
},
|
||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||
@ -194,7 +188,37 @@ $(document).ready(function() {
|
||||
},
|
||||
|
||||
'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(){
|
||||
|
||||
@ -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">
|
||||
<style>
|
||||
.dataTables_filter input {padding: 4px;}
|
||||
@ -74,7 +67,7 @@ if(!empty($mms))
|
||||
</tr>
|
||||
<tr>
|
||||
<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>
|
||||
@ -183,6 +176,9 @@ if(!empty($mms))
|
||||
// Set up your table
|
||||
$(document).ready(function() {
|
||||
table = $('#cc').DataTable( {
|
||||
"language": {
|
||||
"emptyTable":"<center> Data Not Found ! </center>"
|
||||
},
|
||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||
@ -200,7 +196,37 @@ $(document).ready(function() {
|
||||
},
|
||||
|
||||
'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(){
|
||||
|
||||
@ -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">
|
||||
<style>
|
||||
.dataTables_filter input {padding: 4px;}
|
||||
@ -73,7 +65,7 @@ if(!empty($mms))
|
||||
</tr>
|
||||
<tr>
|
||||
<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>
|
||||
@ -192,6 +184,9 @@ if(!empty($mms))
|
||||
// Set up your table
|
||||
$(document).ready(function() {
|
||||
table = $('#cc').DataTable( {
|
||||
"language": {
|
||||
"emptyTable":"<center> Data Not Found ! </center>"
|
||||
},
|
||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||
@ -209,7 +204,37 @@ $(document).ready(function() {
|
||||
},
|
||||
|
||||
'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(){
|
||||
|
||||
@ -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">
|
||||
<style>
|
||||
.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">Material Name</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>
|
||||
@ -146,6 +139,9 @@ if(!empty($mms))
|
||||
// Set up your table
|
||||
$(document).ready(function() {
|
||||
table = $('#cc').DataTable( {
|
||||
"language": {
|
||||
"emptyTable": "<center> Data Not Found ! </center>"
|
||||
},
|
||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||
@ -163,7 +159,37 @@ $(document).ready(function() {
|
||||
},
|
||||
|
||||
'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(){
|
||||
|
||||
@ -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">
|
||||
<style>
|
||||
.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">Material Name</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>
|
||||
@ -146,6 +138,9 @@ if(!empty($mms))
|
||||
// Set up your table
|
||||
$(document).ready(function() {
|
||||
table = $('#cc').DataTable( {
|
||||
"language": {
|
||||
"emptyTable": "<center> Data Not Found ! </center>"
|
||||
},
|
||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||
@ -163,7 +158,38 @@ $(document).ready(function() {
|
||||
},
|
||||
|
||||
'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(){
|
||||
|
||||
@ -53,12 +53,12 @@
|
||||
<th style="text-align:center">Document Number</th>
|
||||
<th style="text-align:center">Document Type</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">Others (<i class="fa fa-rupee "></i>)</th>
|
||||
<th style="text-align:center">SGST (<i class="fa fa-rupee "></i>)</th>
|
||||
<th style="text-align:center">CGST (<i class="fa fa-rupee "></i>)</th>
|
||||
<th style="text-align:center">IGST (<i class="fa fa-rupee "></i>)</th>
|
||||
<th style="text-align:center">Total (<i class="fa fa-rupee "></i>)</th>
|
||||
<th style="text-align:center">Value (₹)</th>
|
||||
<th style="text-align:center">Others (₹)</th>
|
||||
<th style="text-align:center">SGST (₹)</th>
|
||||
<th style="text-align:center">CGST (₹)</th>
|
||||
<th style="text-align:center">IGST (₹)</th>
|
||||
<th style="text-align:center">Total (₹)</th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
@ -250,7 +250,9 @@
|
||||
$(document).ready(function() {
|
||||
$.fn.dataTable.moment( 'DD-MM-YYYY' );
|
||||
table = $('#cc').DataTable( {
|
||||
|
||||
"language": {
|
||||
"emptyTable":"<center> Data Not Found ! </center>"
|
||||
},
|
||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||
@ -267,7 +269,73 @@ $.fn.dataTable.moment( 'DD-MM-YYYY' );
|
||||
},
|
||||
|
||||
'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">
|
||||
<style>
|
||||
.dataTables_filter input {padding: 4px;}
|
||||
@ -192,7 +184,7 @@ if(!empty($open_po))
|
||||
<th>PO Date</th>
|
||||
<th>Approved Date</th>
|
||||
<th>Requested Department</th>
|
||||
<th>Total Order Value ( <i class="fa fa-rupee "></i>)</th>
|
||||
<th>Total Order Value (₹)</th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
@ -258,6 +250,9 @@ if(!empty($open_po))
|
||||
$(document).ready(function() {
|
||||
$.fn.dataTable.moment( 'DD-MM-YYYY' );
|
||||
table = $('#req').DataTable( {
|
||||
"language": {
|
||||
"emptyTable": "<center> Data Not Found ! </center>"
|
||||
},
|
||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||
@ -275,7 +270,27 @@ $(document).ready(function() {
|
||||
},
|
||||
|
||||
'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>
|
||||
$(document).ready(function () {
|
||||
|
||||
@ -401,6 +396,9 @@ if(!empty($mms))
|
||||
$(document).ready(function() {
|
||||
$.fn.dataTable.moment( 'DD-MM-YYYY' );
|
||||
table = $('#cc').DataTable( {
|
||||
"language": {
|
||||
"emptyTable": "<center> Data Not Found ! </center>"
|
||||
},
|
||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||
@ -418,7 +416,45 @@ $(document).ready(function() {
|
||||
},
|
||||
|
||||
'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(){
|
||||
|
||||
@ -240,17 +240,17 @@ table.dataTable thead > tr > td.sorting {
|
||||
<th style="text-align:center">Supplier Name</th>
|
||||
<th style="text-align:center">Quantity</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">Value (<i class="fa fa-rupee " ></i>)</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">CGST (<i class="fa fa-rupee " ></i>)</th>
|
||||
<th style="text-align:center">IGST (<i class="fa fa-rupee " ></i>)</th>
|
||||
<th style="text-align:center">Discount (<i class="fa fa-rupee " ></i>)</th>
|
||||
<th style="text-align:center">Freight (<i class="fa fa-rupee " ></i>)</th>
|
||||
<th style="text-align:center">Package (<i class="fa fa-rupee " ></i>)</th>
|
||||
<th style="text-align:center">Insurance (<i class="fa fa-rupee " ></i>)</th>
|
||||
<th style="text-align:center">Total (<i class="fa fa-rupee "></i>)</th>
|
||||
<th style="text-align:center">Rate (₹)</th>
|
||||
<th style="text-align:center">Value (₹)</th>
|
||||
<th style="text-align:center">Exchange Rate</th>
|
||||
<th style="text-align:center">SGST (₹)</th>
|
||||
<th style="text-align:center">CGST (₹)</th>
|
||||
<th style="text-align:center">IGST (₹)</th>
|
||||
<th style="text-align:center">Discount (₹)</th>
|
||||
<th style="text-align:center">Freight (₹)</th>
|
||||
<th style="text-align:center">Package (₹)</th>
|
||||
<th style="text-align:center">Insurance (₹)</th>
|
||||
<th style="text-align:center">Total (₹)</th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
@ -502,6 +502,9 @@ table.dataTable thead > tr > td.sorting {
|
||||
$(document).ready(function() {
|
||||
$.fn.dataTable.moment( 'DD-MM-YYYY' );
|
||||
table = $('#cc').DataTable( {
|
||||
"language": {
|
||||
"emptyTable": "<center> Data Not Found ! </center>"
|
||||
},
|
||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||
@ -519,7 +522,117 @@ $(document).ready(function() {
|
||||
},
|
||||
|
||||
'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(){
|
||||
|
||||
@ -274,16 +274,16 @@ table.dataTable thead > tr > td.sorting {
|
||||
<th>Supplier Name</th>
|
||||
<th>Qty</th>
|
||||
<th>UOM</th>
|
||||
<th>Rate (<i class="fa fa-rupee "></i>)</th>
|
||||
<th>Value (<i class="fa fa-rupee " ></i>)</th>
|
||||
<th>Rate (₹)</th>
|
||||
<th>Value (₹)</th>
|
||||
<th>Exchange Rate</th>
|
||||
<th>SGST (<i class="fa fa-rupee " ></i>)</th>
|
||||
<th>CGST (<i class="fa fa-rupee " ></i>)</th>
|
||||
<th>IGST (<i class="fa fa-rupee " ></i>)</th>
|
||||
<th>Discount (<i class="fa fa-rupee " ></i>)</th>
|
||||
<th>Freight (<i class="fa fa-rupee " ></i>)</th>
|
||||
<th>Package (<i class="fa fa-rupee " ></i>)</th>
|
||||
<th>Total (<i class="fa fa-rupee "></i>)</th>
|
||||
<th>SGST (₹)</th>
|
||||
<th>CGST (₹)</th>
|
||||
<th>IGST (₹)</th>
|
||||
<th>Discount (₹)</th>
|
||||
<th>Freight (₹)</th>
|
||||
<th>Package (₹)</th>
|
||||
<th>Total (₹)</th>
|
||||
<th>Attachments</th>
|
||||
|
||||
</tr>
|
||||
@ -523,7 +523,9 @@ table.dataTable thead > tr > td.sorting {
|
||||
// Bootstrap datepicker
|
||||
// Set up your table
|
||||
$(document).ready(function() {
|
||||
|
||||
|
||||
$('[data-toggle="tooltip"]').tooltip();
|
||||
/** On click for Displaying File MOdal***/
|
||||
$('.splpofile').click(function() {
|
||||
var id = $(this).attr('id');
|
||||
$("#Fileshow").modal("show");
|
||||
@ -557,18 +559,16 @@ $('.splpofile').click(function() {
|
||||
/******************** Datatable codes starts here **************************/
|
||||
$.fn.dataTable.moment( 'DD-MM-YYYY' );
|
||||
table = $('#cc').DataTable( {
|
||||
|
||||
"language": {
|
||||
"emptyTable": "<center> Data Not Found ! </center>"
|
||||
},
|
||||
"aaSorting": [[ 3, "asc" ]],
|
||||
"autoWidth": false,
|
||||
orderCellsTop: true,
|
||||
|
||||
|
||||
|
||||
orderCellsTop: true,
|
||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||
"<'row'<'col-md-12't>><'row'<'col-md-2'i><'col-md-10'p>>",
|
||||
buttons: [
|
||||
|
||||
buttons: [
|
||||
{
|
||||
extend: 'excelHtml5',
|
||||
footer: 'true',
|
||||
@ -581,20 +581,115 @@ $('.splpofile').click(function() {
|
||||
},
|
||||
|
||||
'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) );
|
||||
}
|
||||
|
||||
} );
|
||||
|
||||
} );
|
||||
$('#mySelect').on('change',function(){
|
||||
|
||||
table
|
||||
.column(4)
|
||||
.search(this.value)
|
||||
.draw();
|
||||
});
|
||||
|
||||
$( function() {
|
||||
} ); //on ready function Closed
|
||||
|
||||
/** jquery on ready for DataPicker. */
|
||||
$( function() {
|
||||
//var dateFormat = "mm/dd/yy",
|
||||
from = $( "#min-date" )
|
||||
.datepicker({
|
||||
@ -632,13 +727,4 @@ $('.splpofile').click(function() {
|
||||
}
|
||||
} );
|
||||
|
||||
function Reset()
|
||||
{
|
||||
$('#mySelect').val('');
|
||||
|
||||
}
|
||||
$(document).ready(function(){
|
||||
$('[data-toggle="tooltip"]').tooltip();
|
||||
});
|
||||
|
||||
</script>
|
||||
@ -1,11 +1,4 @@
|
||||
|
||||
|
||||
<?php
|
||||
if(!empty($mms))
|
||||
{
|
||||
|
||||
}
|
||||
?>
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
|
||||
@ -196,7 +189,7 @@ if(!empty($mms))
|
||||
<th style="text-align:center">Supplier Name</th>
|
||||
<th style="text-align:center">PO Count</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>
|
||||
@ -308,6 +301,9 @@ if(!empty($mms))
|
||||
// Set up your table
|
||||
$(document).ready(function() {
|
||||
table = $('#cc').DataTable( {
|
||||
"language": {
|
||||
"emptyTable": "<center> Data Not Found ! </center>"
|
||||
},
|
||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||
@ -325,7 +321,46 @@ $(document).ready(function() {
|
||||
},
|
||||
|
||||
'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(){
|
||||
|
||||
@ -1,11 +1,4 @@
|
||||
|
||||
|
||||
<?php
|
||||
if(!empty($mms))
|
||||
{
|
||||
|
||||
}
|
||||
?>
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
|
||||
@ -194,7 +187,7 @@ if(!empty($mms))
|
||||
<th style="text-align:center">Supplier Name</th>
|
||||
<th style="text-align:center">PO Count</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>
|
||||
@ -307,6 +300,9 @@ if(!empty($mms))
|
||||
// Set up your table
|
||||
$(document).ready(function() {
|
||||
table = $('#cc').DataTable( {
|
||||
"language": {
|
||||
"emptyTable": "<center> Data Not Found ! </center>"
|
||||
},
|
||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||
@ -324,7 +320,46 @@ $(document).ready(function() {
|
||||
},
|
||||
|
||||
'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(){
|
||||
|
||||
@ -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">
|
||||
<style>
|
||||
.dataTables_filter input {padding: 4px;}
|
||||
@ -164,6 +156,9 @@ if(!empty($Total))
|
||||
// Set up your table
|
||||
$(document).ready(function() {
|
||||
table = $('#req').DataTable( {
|
||||
"language": {
|
||||
"emptyTable": "<center> Data Not Found ! </center>"
|
||||
},
|
||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||
|
||||
@ -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">
|
||||
<style>
|
||||
@ -94,7 +88,7 @@ if(!empty($mms))
|
||||
<tr>
|
||||
<th style="text-align:center">Month-Year</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>
|
||||
@ -211,6 +205,9 @@ if(!empty($mms))
|
||||
$(document).ready(function() {
|
||||
$.fn.dataTable.moment( 'DD-MM-YYYY' );
|
||||
table = $('#cc').DataTable( {
|
||||
"language": {
|
||||
"emptyTable": "<center> Data Not Found ! </center>"
|
||||
},
|
||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||
@ -231,7 +228,37 @@ $(document).ready(function() {
|
||||
],
|
||||
columnDefs: [
|
||||
{ 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(){
|
||||
|
||||
@ -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">
|
||||
<style>
|
||||
.dataTables_filter input {padding: 4px;}
|
||||
@ -94,7 +85,7 @@ if(!empty($mms))
|
||||
<tr>
|
||||
<th style="text-align:center">Month-Year</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>
|
||||
@ -110,10 +101,10 @@ if(!empty($mms))
|
||||
|
||||
<td style="text-align:center"><span>
|
||||
<?php
|
||||
$da = strtotime($rel->CreatedDate);
|
||||
$da = strtotime($rel->materialrcvddate);
|
||||
$new = date('M-y', $da);
|
||||
$pass = date('Y-m-d',$da);
|
||||
$ab=$this->input->post('financialyear');
|
||||
$ab=$this->input->post('financialyear');
|
||||
//echo $rel->CreatedDate;
|
||||
?>
|
||||
|
||||
@ -210,6 +201,9 @@ jQuery.extend( jQuery.fn.dataTableExt.oSort, {
|
||||
// Set up your table
|
||||
$(document).ready(function() {
|
||||
table = $('#cc').DataTable( {
|
||||
"language": {
|
||||
"emptyTable":"<center> Data Not Found ! </center>"
|
||||
},
|
||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||
@ -230,7 +224,37 @@ $(document).ready(function() {
|
||||
],
|
||||
columnDefs: [
|
||||
{ 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(){
|
||||
|
||||
@ -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">
|
||||
<style>
|
||||
.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">Material Name</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>
|
||||
@ -147,6 +140,9 @@ if(!empty($mms))
|
||||
// Set up your table
|
||||
$(document).ready(function() {
|
||||
table = $('#cc').DataTable( {
|
||||
"language": {
|
||||
"emptyTable": "<center> Data Not Found ! </center>"
|
||||
},
|
||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||
@ -164,7 +160,37 @@ $(document).ready(function() {
|
||||
},
|
||||
|
||||
'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(){
|
||||
|
||||
@ -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">
|
||||
<style>
|
||||
@ -51,7 +45,7 @@ if(!empty($mms))
|
||||
<th style="text-align:center">Supplier Name</th>
|
||||
<th style="text-align:center">Material Name</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>
|
||||
@ -147,6 +141,9 @@ if(!empty($mms))
|
||||
// Set up your table
|
||||
$(document).ready(function() {
|
||||
table = $('#cc').DataTable( {
|
||||
"language": {
|
||||
"emptyTable": "<center> Data Not Found ! </center>"
|
||||
},
|
||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||
@ -164,7 +161,37 @@ $(document).ready(function() {
|
||||
},
|
||||
|
||||
'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(){
|
||||
|
||||
@ -9,394 +9,250 @@ if(!empty($debitmapping))
|
||||
}
|
||||
|
||||
|
||||
// $inrsymbol='';
|
||||
// if(!empty($Indiancurrency))
|
||||
// {
|
||||
// foreach ($Indiancurrency as $inr)
|
||||
// {
|
||||
// $inrsymbol = $inr->FontCode2000;
|
||||
// }}
|
||||
foreach($financialyear as $item)
|
||||
|
||||
{
|
||||
$finyear = $item->financial_year;
|
||||
|
||||
} ?>
|
||||
|
||||
foreach($financialyear as $item)
|
||||
|
||||
{
|
||||
$finyear = $item->financial_year;
|
||||
|
||||
} ?>
|
||||
|
||||
|
||||
<!-- <link rel="stylesheet" href="https://cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css"> -->
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
|
||||
<style>
|
||||
.dataTables_filter input {padding: 4px;}
|
||||
|
||||
.dataTables_filter {
|
||||
width: 50%;
|
||||
float: right;
|
||||
text-align: right;
|
||||
}
|
||||
.dataTables_paginate {
|
||||
width: 50%;
|
||||
float: right;
|
||||
text-align: right;
|
||||
}
|
||||
div.dt-buttons {
|
||||
position: relative;
|
||||
float: right;
|
||||
<style>
|
||||
.dataTables_filter input {padding: 4px;}
|
||||
|
||||
}
|
||||
|
||||
|
||||
</style>
|
||||
|
||||
|
||||
|
||||
|
||||
<!--<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div id="container"></div>
|
||||
|
||||
</div>
|
||||
</div>-->
|
||||
|
||||
|
||||
<div class="content-wrapper">
|
||||
<section class="content">
|
||||
|
||||
<div class="row">
|
||||
<!-- Left col -->
|
||||
<div class="col-md-12" >
|
||||
<!-- TABLE: LATEST ORDERS -->
|
||||
<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
|
||||
if(!empty($mappingiv)){
|
||||
foreach($mappingiv as $ap)
|
||||
{
|
||||
$bankid=$ap->id;
|
||||
|
||||
}
|
||||
}
|
||||
if(!empty($mappingcashbook))
|
||||
{
|
||||
foreach($mappingcashbook as $mc)
|
||||
{
|
||||
$bankid=$mc->bankid;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if(!empty($paidcbook)){
|
||||
|
||||
foreach($paidcbook as $pc)
|
||||
{
|
||||
$pcamount=$pc->total;
|
||||
|
||||
}
|
||||
.dataTables_filter {
|
||||
width: 50%;
|
||||
float: right;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
if(!empty($invoiceramount))
|
||||
{
|
||||
foreach($invoiceramount as $ia)
|
||||
{
|
||||
$inamount=$ia->amountreceived;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$totalamount=$pcamount+$inamount;
|
||||
//echo $totalamount;
|
||||
?>
|
||||
<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>
|
||||
<br>
|
||||
<br>
|
||||
<div class="row">
|
||||
|
||||
<div class="box-body">
|
||||
<table class="table table-bordered table-hover" style="table-layout:auto;">
|
||||
<thead>
|
||||
<tr>
|
||||
|
||||
<th>Payment ID</th>
|
||||
<th>Payment Mode</th>
|
||||
<th>Payment Amount (₹)</th>
|
||||
|
||||
|
||||
</tr>
|
||||
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><?php echo $ap->bankid?></td>
|
||||
<td>Bank</td>
|
||||
|
||||
<td><?php echo $totalamount ?></p></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</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>
|
||||
<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>
|
||||
.dataTables_paginate {
|
||||
width: 50%;
|
||||
float: right;
|
||||
text-align: right;
|
||||
}
|
||||
div.dt-buttons {
|
||||
position: relative;
|
||||
float: right;
|
||||
|
||||
|
||||
<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>
|
||||
|
||||
<table class="table table-bordered table-hover" id="req" style="table-layout:auto;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Date</th>
|
||||
<th>INVOICE NO</th>
|
||||
<th>Customer Name</th>
|
||||
<th>Total Amount (₹)</th>
|
||||
<th>Balance To Received</th>
|
||||
<th>Received Amount</th>
|
||||
|
||||
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$i=1;
|
||||
$ti=0.00;
|
||||
$tvt=0.00;
|
||||
if(!empty($mappingiv)){
|
||||
foreach($mappingiv as $ap)
|
||||
{
|
||||
?>
|
||||
<tr>
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
</style>
|
||||
|
||||
|
||||
|
||||
<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="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->balancetoreceived?></span></td>
|
||||
<td align="left" id="aa"><span><?php echo $ap->amountreceived?></span></td>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</tr>
|
||||
<?php
|
||||
$i++;
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
</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>
|
||||
<div class="content-wrapper">
|
||||
<section class="content">
|
||||
<div class="row">
|
||||
|
||||
<!-- Left col -->
|
||||
<div class="col-md-12" >
|
||||
<!-- TABLE: LATEST ORDERS -->
|
||||
<div class="box box-info">
|
||||
|
||||
<?php
|
||||
if(!empty($mappingiv)){
|
||||
foreach($mappingiv as $ap)
|
||||
{
|
||||
$bankid=$ap->id;
|
||||
|
||||
}
|
||||
}
|
||||
if(!empty($mappingcashbook))
|
||||
{
|
||||
foreach($mappingcashbook as $mc)
|
||||
{
|
||||
$bankid=$mc->bankid;
|
||||
|
||||
|
||||
|
||||
</tr>
|
||||
|
||||
</tfoot>-->
|
||||
</table>
|
||||
<center><h3 class="box-title"><p style="color:#3c8dbc"><b>Cashbook Reports</b></p></h3></center>
|
||||
<br>
|
||||
<table class="table table-bordered table-hover" id="req" style="table-layout:auto;">
|
||||
<thead>
|
||||
<tr>
|
||||
|
||||
<th>Date</th>
|
||||
<th>Account Name</th>
|
||||
<th>Bankid</th>
|
||||
<th>Amount Type</th>
|
||||
<th>Total Amount (₹)</th>
|
||||
<!--<th>Advance PO Amount (₹)</th>-->
|
||||
<th>Option (₹)</th>
|
||||
|
||||
|
||||
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$i=1;
|
||||
$ti=0.00;
|
||||
$tvt=0.00;
|
||||
if(!empty($mappingcashbook)){
|
||||
|
||||
foreach($mappingcashbook as $mc)
|
||||
{
|
||||
?>
|
||||
<tr>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<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="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="tov"><span><?php echo $mc->amounttype?></span></td>
|
||||
<td align="left" id="aa"><span><?php echo $mc->total?></span></td>
|
||||
<td align="left" id="aa"><span><?php echo $mc->cashtype?></span></td>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
</tr>
|
||||
<?php
|
||||
$i++;
|
||||
}
|
||||
if(!empty($paidcbook)){
|
||||
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
foreach($paidcbook as $pc)
|
||||
{
|
||||
$pcamount=$pc->total;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
if(!empty($invoiceramount))
|
||||
{
|
||||
foreach($invoiceramount as $ia)
|
||||
{
|
||||
$inamount=$ia->amountreceived;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
$totalamount=$pcamount+$inamount;
|
||||
|
||||
?>
|
||||
<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>
|
||||
<br>
|
||||
<br>
|
||||
|
||||
|
||||
<div class="box-body">
|
||||
<table class="table table-bordered table-hover" style="table-layout:auto;">
|
||||
<thead>
|
||||
<tr>
|
||||
|
||||
<th>Payment ID</th>
|
||||
<th>Payment Mode</th>
|
||||
<th>Payment Amount (₹)</th>
|
||||
|
||||
</tr>
|
||||
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><?php echo $ap->bankid?></td>
|
||||
<td>Bank</td>
|
||||
<td><?php echo $totalamount ?></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
</div>
|
||||
<!-- /.box -->
|
||||
<br>
|
||||
<br>
|
||||
|
||||
</form>
|
||||
|
||||
<table class="table table-bordered table-hover" id="req" style="table-layout:auto;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Date</th>
|
||||
<th>INVOICE NO</th>
|
||||
<th>Customer Name</th>
|
||||
<th>Total Amount (₹)</th>
|
||||
<th>Balance To Received</th>
|
||||
<th>Received Amount</th>
|
||||
|
||||
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$i=1;
|
||||
$ti=0.00;
|
||||
$tvt=0.00;
|
||||
if(!empty($mappingiv)){
|
||||
foreach($mappingiv as $ap)
|
||||
{
|
||||
?>
|
||||
<tr>
|
||||
|
||||
<td align="left" id="tov"><span><?php echo date_format(date_create($ap->indate),'d-m-Y');?></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->totinvoiceamount?></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>
|
||||
|
||||
</tr>
|
||||
<?php
|
||||
$i++;
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
<center><h3 class="box-title"><p style="color:#3c8dbc"><b>Cashbook Reports</b></p></h3></center>
|
||||
<br>
|
||||
<table class="table table-bordered table-hover" id="req" style="table-layout:auto;">
|
||||
<thead>
|
||||
<tr>
|
||||
|
||||
<th>Date</th>
|
||||
<th>Account Name</th>
|
||||
<th>Bankid</th>
|
||||
<th>Amount Type</th>
|
||||
<th>Total Amount (₹)</th>
|
||||
|
||||
<th>Option (₹)</th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$i=1;
|
||||
$ti=0.00;
|
||||
$tvt=0.00;
|
||||
if(!empty($mappingcashbook)){
|
||||
|
||||
foreach($mappingcashbook as $mc)
|
||||
{
|
||||
?>
|
||||
<tr>
|
||||
|
||||
<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="sn"><span><?php echo $mc->bankid?></span></td>
|
||||
<td align="left" id="tov"><span><?php echo $mc->amounttype?></span></td>
|
||||
<td align="left" id="aa"><span><?php echo $mc->total?></span></td>
|
||||
<td align="left" id="aa"><span><?php echo $mc->cashtype?></span></td>
|
||||
|
||||
|
||||
</tr>
|
||||
<?php
|
||||
$i++;
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
</section>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- /.box -->
|
||||
|
||||
<!-- /.col -->
|
||||
</section>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- <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://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/vfs_fonts.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
|
||||
|
||||
<script src="https://cdn.datatables.net/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/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://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>
|
||||
$(document).ready(function() {
|
||||
table = $('#req').DataTable( {
|
||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||
$(document).ready(function() {
|
||||
table = $('#req').DataTable( {
|
||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||
buttons: [
|
||||
|
||||
{
|
||||
extend: 'excelHtml5',
|
||||
footer: 'true',
|
||||
messageTop: $('h3').text(),
|
||||
title: 'cashbook Overall Report',
|
||||
exportOptions: {
|
||||
columns: ':visible'
|
||||
|
||||
}
|
||||
},
|
||||
|
||||
'colvis'
|
||||
]
|
||||
} );
|
||||
buttons: [
|
||||
|
||||
{
|
||||
extend: 'excelHtml5',
|
||||
footer: 'true',
|
||||
messageTop: $('h3').text(),
|
||||
title: 'cashbook Overall Report',
|
||||
exportOptions: {
|
||||
columns: ':visible'
|
||||
|
||||
}
|
||||
},
|
||||
|
||||
'colvis'
|
||||
]
|
||||
} );
|
||||
} );
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -142,32 +142,32 @@ if (date('m') >= 4) {
|
||||
<th style="text-align:center" colspan="2">Total</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="text-align:center">Receipt (<i class="fa fa-rupee "></i>)</th>
|
||||
<th style="text-align:center">Payment (<i class="fa fa-rupee "></i>)</th>
|
||||
<th style="text-align:center">Receipt (<i class="fa fa-rupee "></i>)</th>
|
||||
<th style="text-align:center">Payment (<i class="fa fa-rupee "></i>)</th>
|
||||
<th style="text-align:center">Recepit (<i class="fa fa-rupee "></i>)</th>
|
||||
<th style="text-align:center">Payment (<i class="fa fa-rupee "></i>)</th>
|
||||
<th style="text-align:center">Receipt (<i class="fa fa-rupee "></i>)</th>
|
||||
<th style="text-align:center">Payment (<i class="fa fa-rupee "></i>)</th>
|
||||
<th style="text-align:center">Receipt (<i class="fa fa-rupee "></i>)</th>
|
||||
<th style="text-align:center">Payment (<i class="fa fa-rupee "></i>)</th>
|
||||
<th style="text-align:center">Recepit (<i class="fa fa-rupee "></i>)</th>
|
||||
<th style="text-align:center">Payment (<i class="fa fa-rupee "></i>)</th>
|
||||
<th style="text-align:center">Receipt (<i class="fa fa-rupee "></i>)</th>
|
||||
<th style="text-align:center">Payment (<i class="fa fa-rupee "></i>)</th>
|
||||
<th style="text-align:center">Receipt (<i class="fa fa-rupee "></i>)</th>
|
||||
<th style="text-align:center">Payment (<i class="fa fa-rupee "></i>)</th>
|
||||
<th style="text-align:center">Recepit (<i class="fa fa-rupee "></i>)</th>
|
||||
<th style="text-align:center">Payment (<i class="fa fa-rupee "></i>)</th>
|
||||
<th style="text-align:center">Receipt (<i class="fa fa-rupee "></i>)</th>
|
||||
<th style="text-align:center">Payment (<i class="fa fa-rupee "></i>)</th>
|
||||
<th style="text-align:center">Receipt (<i class="fa fa-rupee "></i>)</th>
|
||||
<th style="text-align:center">Payment (<i class="fa fa-rupee "></i>)</th>
|
||||
<th style="text-align:center">Recepit (<i class="fa fa-rupee "></i>)</th>
|
||||
<th style="text-align:center">Payment (<i class="fa fa-rupee "></i>)</th>
|
||||
<th style="text-align:center">Recepit (<i class="fa fa-rupee "></i>)</th>
|
||||
<th style="text-align:center">Payment (<i class="fa fa-rupee "></i>)</th>
|
||||
<th style="text-align:center">Receipt (₹)</th>
|
||||
<th style="text-align:center">Payment (₹)</th>
|
||||
<th style="text-align:center">Receipt (₹)</th>
|
||||
<th style="text-align:center">Payment (₹)</th>
|
||||
<th style="text-align:center">Recepit (₹)</th>
|
||||
<th style="text-align:center">Payment (₹)</th>
|
||||
<th style="text-align:center">Receipt (₹)</th>
|
||||
<th style="text-align:center">Payment (₹)</th>
|
||||
<th style="text-align:center">Receipt (₹)</th>
|
||||
<th style="text-align:center">Payment (₹)</th>
|
||||
<th style="text-align:center">Recepit (₹)</th>
|
||||
<th style="text-align:center">Payment (₹)</th>
|
||||
<th style="text-align:center">Receipt (₹)</th>
|
||||
<th style="text-align:center">Payment (₹)</th>
|
||||
<th style="text-align:center">Receipt (₹)</th>
|
||||
<th style="text-align:center">Payment (₹)</th>
|
||||
<th style="text-align:center">Recepit (₹)</th>
|
||||
<th style="text-align:center">Payment (₹)</th>
|
||||
<th style="text-align:center">Receipt (₹)</th>
|
||||
<th style="text-align:center">Payment (₹)</th>
|
||||
<th style="text-align:center">Receipt (₹)</th>
|
||||
<th style="text-align:center">Payment (₹)</th>
|
||||
<th style="text-align:center">Recepit (₹)</th>
|
||||
<th style="text-align:center">Payment (₹)</th>
|
||||
<th style="text-align:center">Recepit (₹)</th>
|
||||
<th style="text-align:center">Payment (₹)</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@ -267,6 +267,9 @@ if (date('m') >= 4) {
|
||||
// Set up your table
|
||||
$(document).ready(function() {
|
||||
table = $('#ccmonthwise').DataTable( {
|
||||
"language": {
|
||||
"emptyTable": "<center> Data Not Found ! </center>"
|
||||
},
|
||||
"dom": "<'row'<'col-md-3'l><'col-md-9'Bf>>" +
|
||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||
"<'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>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="text-align:center">Receipt (<i class="fa fa-rupee "></i>)</th>
|
||||
<th style="text-align:center">Payment (<i class="fa fa-rupee "></i>)</th>
|
||||
<th style="text-align:center">Receipt (<i class="fa fa-rupee "></i>)</th>
|
||||
<th style="text-align:center">Payment (<i class="fa fa-rupee "></i>)</th>
|
||||
<th style="text-align:center">Recepit (<i class="fa fa-rupee "></i>)</th>
|
||||
<th style="text-align:center">Payment (<i class="fa fa-rupee "></i>)</th>
|
||||
<th style="text-align:center">Receipt (₹)</th>
|
||||
<th style="text-align:center">Payment (₹)</th>
|
||||
<th style="text-align:center">Receipt (₹)</th>
|
||||
<th style="text-align:center">Payment (₹)</th>
|
||||
<th style="text-align:center">Recepit (₹)</th>
|
||||
<th style="text-align:center">Payment (₹)</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<?php
|
||||
@ -122,6 +122,9 @@
|
||||
// Set up your table
|
||||
$(document).ready(function() {
|
||||
table = $('#ccr').DataTable( {
|
||||
"language": {
|
||||
"emptyTable":"<center> Data Not Found ! </center>"
|
||||
},
|
||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||
@ -139,7 +142,73 @@ $(document).ready(function() {
|
||||
},
|
||||
|
||||
'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(){
|
||||
|
||||
@ -59,18 +59,15 @@ if(!empty($Indiancurrency))
|
||||
<div class="btn-group btn-group-justified no-margin">
|
||||
|
||||
<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>
|
||||
<tr>
|
||||
|
||||
|
||||
<th>Date</th>
|
||||
|
||||
<th>Account Name</th>
|
||||
<th>Type</th>
|
||||
|
||||
<th>Account Name</th>
|
||||
<th>Type</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>Action</th>
|
||||
|
||||
@ -176,8 +173,12 @@ if(!empty($Indiancurrency))
|
||||
// Bootstrap datepicker
|
||||
// Set up your table
|
||||
$(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>>" +
|
||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||
@ -195,10 +196,29 @@ $(document).ready(function() {
|
||||
},
|
||||
|
||||
'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>
|
||||
|
||||
@ -183,6 +183,9 @@ if(!empty($Indiancurrency))
|
||||
$(document).ready(function() {
|
||||
$.fn.dataTable.moment( 'DD-MM-YYYY' );
|
||||
table = $('#req').DataTable( {
|
||||
"language": {
|
||||
"emptyTable":"<center> Data Not Found ! </center>"
|
||||
},
|
||||
"dom": "<'row'<'col-md-3'l><'col-md-9'Bf>>" +
|
||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||
@ -200,10 +203,29 @@ $(document).ready(function() {
|
||||
},
|
||||
|
||||
'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">
|
||||
<style>
|
||||
.dataTables_filter input {padding: 4px;}
|
||||
@ -53,8 +41,8 @@ if(!empty($Indiancurrency))
|
||||
<th>Paid Type</th>
|
||||
<!--<th>Received From</th>
|
||||
<th>Paid To</th>-->
|
||||
<th style="text-align:right;"> Receipt (<i class="fa fa-rupee ">)</th>
|
||||
<th style="text-align:right;"> Payment (<i class="fa fa-rupee ">)</th>
|
||||
<th style="text-align:right;"> Receipt (₹)</th>
|
||||
<th style="text-align:right;"> Payment (₹)</th>
|
||||
|
||||
<!--<th>Description</th>-->
|
||||
|
||||
@ -147,6 +135,9 @@ if(!empty($Indiancurrency))
|
||||
// Set up your table
|
||||
$(document).ready(function() {
|
||||
table = $('#req').DataTable( {
|
||||
"language": {
|
||||
"emptyTable":"<center> Data Not Found ! </center>"
|
||||
},
|
||||
"dom": "<'row'<'col-md-5'l><'col-md-7'Bf>>" +
|
||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||
@ -164,7 +155,37 @@ $(document).ready(function() {
|
||||
},
|
||||
|
||||
'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">
|
||||
<style>
|
||||
@ -264,6 +261,9 @@
|
||||
// Set up your table
|
||||
$(document).ready(function() {
|
||||
table = $('#cc').DataTable( {
|
||||
"language": {
|
||||
"emptyTable": "<center> Data Not Found ! </center>"
|
||||
},
|
||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||
@ -281,7 +281,37 @@ $(document).ready(function() {
|
||||
},
|
||||
|
||||
'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(){
|
||||
|
||||
@ -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">
|
||||
<style>
|
||||
.dataTables_filter input {padding: 4px;}
|
||||
@ -226,6 +222,9 @@
|
||||
// Set up your table
|
||||
$(document).ready(function() {
|
||||
table = $('#cc').DataTable( {
|
||||
"language": {
|
||||
"emptyTable": "<center> Data Not Found ! </center>"
|
||||
},
|
||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||
|
||||
@ -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">
|
||||
<style>
|
||||
.dataTables_filter input {padding: 4px;}
|
||||
@ -243,6 +236,9 @@ if(!empty($pending_list))
|
||||
// Set up your table
|
||||
$(document).ready(function() {
|
||||
table = $('#req').DataTable( {
|
||||
"language": {
|
||||
"emptyTable": "<center> Data Not Found ! </center>"
|
||||
},
|
||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user