diff --git a/application/models/dahsboard_model.php b/application/models/dahsboard_model.php
index a41f5676..0e5a0e1b 100755
--- a/application/models/dahsboard_model.php
+++ b/application/models/dahsboard_model.php
@@ -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)";
diff --git a/application/views/Report_Material_Master_ReceiptValue.php b/application/views/Report_Material_Master_ReceiptValue.php
index 3d4571ae..fbeaf6d8 100755
--- a/application/views/Report_Material_Master_ReceiptValue.php
+++ b/application/views/Report_Material_Master_ReceiptValue.php
@@ -1,12 +1,5 @@
-
-
-
+
+
@@ -58,7 +50,7 @@ if(!empty($mms))
Quantity
-
Value ()
+
Value (₹)
@@ -168,6 +160,9 @@ if(!empty($mms))
// Set up your table
$(document).ready(function() {
table = $('#cc').DataTable( {
+ "language": {
+ "emptyTable":"
Data Not Found !
"
+ },
"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(){
diff --git a/application/views/Report_consolidate_month.php b/application/views/Report_consolidate_month.php
index 2a75a21e..07262730 100755
--- a/application/views/Report_consolidate_month.php
+++ b/application/views/Report_consolidate_month.php
@@ -1,12 +1,3 @@
-
-
-
-
-
-
-
-
-
-
-
-