cashbook report issues fixed

This commit is contained in:
venbatechnologies@gmail.com 2018-03-02 14:17:33 +05:30
parent a2a8032058
commit c669e3af7f
8 changed files with 111 additions and 125 deletions

View File

@ -2137,7 +2137,8 @@ if ($cname!= ''){
sum(total) as total sum(total) as total
from t_income_expense from t_income_expense
where date >= '".$fa."-04-01' and date <= '".$aa."-03-31' where date >= '".$fa."-04-01' and date <= '".$aa."-03-31'
group by month "; group by month
ORDER BY FIELD(month,'April','May','June','July','August','September','October','November','December','January', 'February', 'March')";
$query = $this->db->query($sql); $query = $this->db->query($sql);
return $query->result(); return $query->result();
@ -2154,7 +2155,8 @@ if ($cname!= ''){
function monthwise_data($value='') function monthwise_data($value='')
{ {
$sql="SELECT type,Sum(total) as monthlydata FROM t_income_expense WHERE type = ? AND MONTH(date) = MONTH(curdate())"; $sql="SELECT type,Sum(total) as monthlydata FROM t_income_expense WHERE type = ? AND MONTH(date) = MONTH(curdate()) AND YEAR(date) = YEAR(curdate())";
//$sql="SELECT type,Sum(total) as monthlydata FROM resicoin_RIADev.t_income_expense WHERE type = ? AND MONTH(date) = MONTH(curdate()) And YEAR(date) = YEAR(curdate())"
$query = $this->db->query($sql,array($value)); $query = $this->db->query($sql,array($value));
return $query->result(); return $query->result();

View File

@ -16,7 +16,6 @@ if(!empty($departmentwise))
?> ?>
<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"> <link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
<style> <style>
@ -130,9 +129,6 @@ if(!empty($departmentwise))
</section><!-- /. content --> </section><!-- /. content -->
</div><!-- /. content-wrapper --> </div><!-- /. content-wrapper -->
<script src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"></script>
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script> <script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>

View File

@ -15,7 +15,7 @@ foreach($departmentwise as $dw)
?> ?>
<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"> <link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
<style> <style>
.dataTables_filter input {padding: 4px;} .dataTables_filter input {padding: 4px;}
@ -138,7 +138,7 @@ foreach($departmentwise as $dw)
<script src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"></script>
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script> <script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>

View File

@ -37,7 +37,7 @@ $monthName = $dateObj->format('F');
// }} // }}
?> ?>
<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"> <link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
<style> <style>
.dataTables_filter input {padding: 4px;} .dataTables_filter input {padding: 4px;}
@ -135,8 +135,10 @@ $(function() {
<th style="text-align:right;"> Payment (&#8377;)</th> <th style="text-align:right;"> Payment (&#8377;)</th>
<th style="text-align:right;"> Current Balances(&#8377;)</th> <th style="text-align:right;"> Current Balances(&#8377;)</th>
</tr> </tr>
</thead>
</thead>
<tbody>
<tr> <tr>
<td style="text-align:left;"><strong>Previous Month Balance(Opening Balances)</strong></td> <td style="text-align:left;"><strong>Previous Month Balance(Opening Balances)</strong></td>
<td>&nbsp;</td> <td>&nbsp;</td>
@ -145,8 +147,9 @@ $(function() {
<td style="text-align:right"><strong><?php echo number_format($zero,2,'.','');?></strong></td> <td style="text-align:right"><strong><?php echo number_format($zero,2,'.','');?></strong></td>
<td>&nbsp;</td> <td>&nbsp;</td>
</tr> </tr>
<tbody>
<?php
<?php
if(!empty($monthlyreport)){ if(!empty($monthlyreport)){
foreach($monthlyreport as $mr) foreach($monthlyreport as $mr)
{ {
@ -167,16 +170,15 @@ $(function() {
} }
?> ?>
</tbody> <tr>
<tfoot width="100%">
<tr>
<td style="text-align:left;"><strong>Total</strong></td> <td style="text-align:left;"><strong>Total</strong></td>
<td>&nbsp;</td> <td>&nbsp;</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($ti,2,'.','');?></strong></td>
<td style="text-align:right"><strong><?php echo number_format($tvt,2,'.','');?></strong></td> <td style="text-align:right"><strong><?php echo number_format($tvt,2,'.','');?></strong></td>
<td style="text-align:right"><strong><?php $curr_balances = $in+$ti-$tvt; echo number_format($curr_balances,2,'.','');?></strong></td> <td style="text-align:right"><strong><?php $curr_balances = $in+$ti-$tvt; echo number_format($curr_balances,2,'.','');?></strong></td>
</tr> </tr>
</tbody>
<tfoot>
<tr> <tr>
<td style="text-align:left;"><strong>Current Month Closing Balances</strong></td> <td style="text-align:left;"><strong>Current Month Closing Balances</strong></td>
<td>&nbsp;</td> <td>&nbsp;</td>
@ -194,12 +196,6 @@ $(function() {
</section> </section>
</div> </div>
<script src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"></script>
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script> <script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
@ -209,32 +205,31 @@ $(function() {
<script> <script>
// Bootstrap datepicker // Bootstrap datepicker
// Set up your table // Set up your table
$(document).ready(function() { $(document).ready(function() {
table = $('#cbmthly').DataTable( { table = $('#cbmthly').DataTable( {
"dom": "<'row'<'col-md-3'l><'col-md-9'Bf>>" + "dom": "<'row'<'col-md-3'l><'col-md-9'Bf>>" +
"<'row'<'col-md-6'><'col-md-6'>>" + "<'row'<'col-md-6'><'col-md-6'>>" +
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>", "<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
buttons: [ "bSort": false,
buttons: [
{ {
extend: 'excelHtml5', extend: 'excelHtml5',
footer: 'true', footer: 'true',
//messageTop: $('h3').text(), //messageTop: $('h3').text(),
title: $('h3').text(), title: $('h3').text(),
exportOptions: { exportOptions: {
columns: ':visible' columns: ':visible'
} }
}, },
'colvis'
]
} );
} );
'colvis'
]
} );
} );
$('#monthly').click(function() { $('#monthly').click(function() {

View File

@ -18,7 +18,6 @@ $tvt=0.00;
}} }}
?> ?>
<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"> <link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
<style> <style>
.dataTables_filter input {padding: 4px;} .dataTables_filter input {padding: 4px;}
@ -64,9 +63,11 @@ $tvt=0.00;
<th style="text-align:right;"> Payment (&#8377;)</th> <th style="text-align:right;"> Payment (&#8377;)</th>
<th>Description</th> <th>Description</th>
<th>Action</th> <th>Action</th>
<th>Current Balances</th> <th>Current Balances (&#8377;)</th>
</tr> </tr>
</thead> </thead>
<tbody>
<tr> <tr>
<td style="text-align:left;"><strong>Yesterday Balances (opening balances)</strong></td> <td style="text-align:left;"><strong>Yesterday Balances (opening balances)</strong></td>
<td>&nbsp;</td> <td>&nbsp;</td>
@ -78,8 +79,8 @@ $tvt=0.00;
<td style="text-align:right"><strong><?php echo number_format($zero,2,'.','');?></strong></td> <td style="text-align:right"><strong><?php echo number_format($zero,2,'.','');?></strong></td>
<td>&nbsp;</td> <td>&nbsp;</td>
<td>&nbsp;</td> <td>&nbsp;</td>
<td>&nbsp;</td>
</tr> </tr>
<tbody>
<?php <?php
if(!empty($tdy)){ if(!empty($tdy)){
foreach($tdy as $t) foreach($tdy as $t)
@ -111,9 +112,7 @@ $tvt=0.00;
} }
?> ?>
</tbody> <tr>
<tfoot width="100%">
<tr>
<td style="text-align:left;"><strong>Total</strong></td> <td style="text-align:left;"><strong>Total</strong></td>
<td>&nbsp;</td> <td>&nbsp;</td>
<td>&nbsp;</td> <td>&nbsp;</td>
@ -126,6 +125,9 @@ $tvt=0.00;
<td style="text-align:right"><strong><?php $curr_balances = $in+$ti-$tvt; echo number_format($curr_balances,2,'.','');?></strong></td> <td style="text-align:right"><strong><?php $curr_balances = $in+$ti-$tvt; echo number_format($curr_balances,2,'.','');?></strong></td>
</tr> </tr>
</tbody>
<tfoot width="100%">
<tr> <tr>
<td style="text-align:left;"><strong>Today Closing Balances</strong></td> <td style="text-align:left;"><strong>Today Closing Balances</strong></td>
<td>&nbsp;</td> <td>&nbsp;</td>
@ -146,7 +148,7 @@ $tvt=0.00;
</div> </div>
</section> </section>
</div> </div>
<script src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"></script>
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script> <script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
@ -161,6 +163,7 @@ $tvt=0.00;
"dom": "<'row'<'col-md-3'l><'col-md-9'Bf>>" + "dom": "<'row'<'col-md-3'l><'col-md-9'Bf>>" +
"<'row'<'col-md-6'><'col-md-6'>>" + "<'row'<'col-md-6'><'col-md-6'>>" +
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>", "<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
"bSort": false,
buttons: [ buttons: [
{ {

View File

@ -10,7 +10,6 @@ $zero=0.00;
$curr_balances=0.00; $curr_balances=0.00;
//print_r($fyears); //print_r($fyears);
if(!empty($Indiancurrency)) if(!empty($Indiancurrency))
{ {
foreach ($Indiancurrency as $inr) foreach ($Indiancurrency as $inr)
@ -31,9 +30,7 @@ if(!empty($Indiancurrency))
?> ?>
<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"> <link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
<style> <style>
.dataTables_filter input {padding: 4px;} .dataTables_filter input {padding: 4px;}
.dataTables_filter { .dataTables_filter {
@ -61,15 +58,6 @@ if(!empty($Indiancurrency))
</style> </style>
<div class="content-wrapper"> <div class="content-wrapper">
<section class="content"> <section class="content">
<div class="box"> <div class="box">
@ -117,9 +105,11 @@ if(!empty($Indiancurrency))
<th>Month</th> <th>Month</th>
<th style="text-align:right;"> Receipt (&#8377;)</th> <th style="text-align:right;"> Receipt (&#8377;)</th>
<th style="text-align:right;"> Payment (&#8377;)</th> <th style="text-align:right;"> Payment (&#8377;)</th>
<th>Current Balances</th> <th>Current Balances (&#8377;)</th>
</tr> </tr>
</thead> </thead>
<tbody>
<tr> <tr>
<td style="text-align:left;"><strong>Previous Year Balance(opening balances)</strong></td> <td style="text-align:left;"><strong>Previous Year Balance(opening balances)</strong></td>
<?php $in = $recamt-$payamt;?> <?php $in = $recamt-$payamt;?>
@ -128,7 +118,6 @@ if(!empty($Indiancurrency))
<td></td> <td></td>
</tr> </tr>
<tbody>
<?php <?php
if(!empty($yearlyreport)){ if(!empty($yearlyreport)){
foreach($yearlyreport as $yr) foreach($yearlyreport as $yr)
@ -150,14 +139,14 @@ if(!empty($Indiancurrency))
} }
?> ?>
</tbody>
<tfoot width="100%">
<tr> <tr>
<td style="text-align:left;"><strong>Total</strong></td> <td style="text-align:left;"><strong>Total</strong></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($ti,2,'.','');?> </strong> </td>
<td style="text-align:right"><strong> <?php echo number_format($tvt,2,'.','');?> </strong> </td> <td style="text-align:right"><strong> <?php echo number_format($tvt,2,'.','');?> </strong> </td>
<td style="text-align:right"><strong><?php $curr_balances = $in+$ti-$tvt; echo number_format($curr_balances,2,'.','');?></strong></td> <td style="text-align:right"><strong><?php $curr_balances = $in+$ti-$tvt; echo number_format($curr_balances,2,'.','');?></strong></td>
</tr> </tr>
</tbody>
<tfoot width="100%">
<tr> <tr>
<td style="text-align:left;"><strong>Current Year Closing Balances</strong></td> <td style="text-align:left;"><strong>Current Year Closing Balances</strong></td>
<td style="text-align:right"><strong><?php echo number_format($curr_balances,2,'.','');?></strong></td> <td style="text-align:right"><strong><?php echo number_format($curr_balances,2,'.','');?></strong></td>
@ -174,13 +163,13 @@ if(!empty($Indiancurrency))
</section> </section>
</div><!-- content-wrapper --> </div><!-- content-wrapper -->
<script src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"></script>
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script> <script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script> <script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.html5.min.js"></script>
<script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script> <script src="https://cdn.datatables.net/buttons/1.4.2/js/buttons.colVis.min.js"></script>
<script> <script>
@ -189,28 +178,28 @@ if(!empty($Indiancurrency))
// Set up your table // Set up your table
$(document).ready(function() { $(document).ready(function() {
table = $('#yearlypayment').DataTable( { table = $('#yearlypayment').DataTable( {
"dom": "<'row'<'col-md-3'l><'col-md-9'Bf>>" + "dom": "<'row'<'col-md-3'l><'col-md-9'Bf>>" +
"<'row'<'col-md-6'><'col-md-6'>>" + "<'row'<'col-md-6'><'col-md-6'>>" +
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>", "<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
buttons: [ "bSort": false,
buttons: [
{ {
extend: 'excelHtml5', extend: 'excelHtml5',
footer: 'true', footer: 'true',
//messageTop: $('h3').text(), //messageTop: $('h3').text(),
title: $('h3').text(), title: $('h3').text(),
exportOptions: { exportOptions: {
columns: ':visible' columns: ':visible'
} }
}, },
'colvis' 'colvis'
] ]
} );
} );
<?php if(!empty ($fyears) ){ ?> <?php if(!empty ($fyears) ){ ?>
$('#financialyear option[value="<?php echo $fyears ?>"]').attr("selected", "selected"); $('#financialyear option[value="<?php echo $fyears ?>"]').attr("selected", "selected");
<?php } ?> <?php } ?>

View File

@ -1,4 +1,4 @@
<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"> <link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
<style> <style>
.dataTables_filter input {padding: 4px;} .dataTables_filter input {padding: 4px;}
@ -84,8 +84,6 @@
</section><!-- /. content --> </section><!-- /. content -->
</div><!-- /. content-wrapper --> </div><!-- /. content-wrapper -->
<script src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"></script>
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script> <script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
@ -103,6 +101,7 @@ $(document).ready(function() {
"dom": "<'row'<'col-md-5'l><'col-md-7'Bf>>" + "dom": "<'row'<'col-md-5'l><'col-md-7'Bf>>" +
"<'row'<'col-md-6'><'col-md-6'>>" + "<'row'<'col-md-6'><'col-md-6'>>" +
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>", "<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
"bSort": false,
buttons: [ buttons: [
{ {

View File

@ -1,5 +1,4 @@
<?php <?php
$today_in=''; $today_in='';
$today_ex=''; $today_ex='';
@ -26,7 +25,7 @@ if(!empty($monthlywiseincome))
{ {
foreach ($monthlywiseincome as $mi) foreach ($monthlywiseincome as $mi)
{ {
$month_in = $mi->monthlydata; $month_in = $mi->monthlydata;
}} }}
if(!empty($monthlywiseexpense)) if(!empty($monthlywiseexpense))
@ -78,7 +77,6 @@ if(!empty($yearincome))
<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"> <link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.4.2/css/buttons.dataTables.min.css">
<style> <style>
.dataTables_filter input {padding: 4px;} .dataTables_filter input {padding: 4px;}
@ -120,7 +118,7 @@ div.dt-buttons {
<div class="info-box"> <div class="info-box">
<span class="info-box-icon bg-red" style="height: 90px;padding:25px;"><i class="fa fa-hourglass-end"></i></span> <span class="info-box-icon bg-red" style="height: 90px;padding:25px;"><i class="fa fa-hourglass-end"></i></span>
<div class="info-box-content"> <div class="info-box-content">
<span class="info-box-number" ><a href="<?php echo base_url().'report/daily_incexp' ?>" data-toggle="tooltip" title="Click here to View Today's payments" ><?php echo "Today" ?></a></span> <span class="info-box-number" ><a href="<?php echo base_url().'report/daily_incexp' ?>" data-toggle="tooltip" title="Click here to View Today's Reports" ><?php echo "Today" ?></a></span>
<span class="info-box-text text-center"><strong>Receipt :</strong>&#8377;<?php echo number_format($today_in,2,'.',''); ?> </span> <span class="info-box-text text-center"><strong>Receipt :</strong>&#8377;<?php echo number_format($today_in,2,'.',''); ?> </span>
<span class="info-box-text text-center"><strong>Payment :</strong>&#8377;<?php echo number_format($today_ex,2,'.',''); ?> </span> <span class="info-box-text text-center"><strong>Payment :</strong>&#8377;<?php echo number_format($today_ex,2,'.',''); ?> </span>
@ -135,7 +133,7 @@ div.dt-buttons {
<div class="info-box"> <div class="info-box">
<span class="info-box-icon bg-aqua" style="height: 90px;padding:25px;"><i<i class="fa fa-spinner"></span> <span class="info-box-icon bg-aqua" style="height: 90px;padding:25px;"><i<i class="fa fa-spinner"></span>
<div class="info-box-content"> <div class="info-box-content">
<span class="info-box-number"><a href="<?php echo base_url().'report/monthly_incexp' ?>" data-toggle="tooltip" title="Click here to View Monthly payments"><?php echo "This Month" ?></a></span> <span class="info-box-number"><a href="<?php echo base_url().'report/monthly_incexp' ?>" data-toggle="tooltip" title="Click here to View Monthly Reports"><?php echo "This Month" ?></a></span>
<span class="info-box-text text-center"><strong>Receipt :</strong>&#8377;<?php echo number_format($month_in,2,'.',''); ?></span> <span class="info-box-text text-center"><strong>Receipt :</strong>&#8377;<?php echo number_format($month_in,2,'.',''); ?></span>
<span class="info-box-text text-center"><strong>Payment :</strong>&#8377;<?php echo number_format($month_ex,2,'.',''); ?></span> <span class="info-box-text text-center"><strong>Payment :</strong>&#8377;<?php echo number_format($month_ex,2,'.',''); ?></span>
</div> </div>
@ -148,7 +146,7 @@ div.dt-buttons {
<div class="info-box"> <div class="info-box">
<span class="info-box-icon bg-green" style="height: 90px;padding:25;"><i class="fa fa-industry" style="padding: 5px;"></i></span> <span class="info-box-icon bg-green" style="height: 90px;padding:25;"><i class="fa fa-industry" style="padding: 5px;"></i></span>
<div class="info-box-content"> <div class="info-box-content">
<span class="info-box-number"><a href="<?php echo base_url().'report/yearly_incexp' ?>" data-toggle="tooltip" title="Click here to View Yearly payments"><?php echo "This Year" ?></a></span> <span class="info-box-number"><a href="<?php echo base_url().'report/yearly_incexp' ?>" data-toggle="tooltip" title="Click here to View Yearly Reports"><?php echo "This Year" ?></a></span>
<span class="info-box-text text-center"><strong>Receipt :</strong>&#8377;<?php echo number_format($year_in,2,'.',''); ?></span> <span class="info-box-text text-center"><strong>Receipt :</strong>&#8377;<?php echo number_format($year_in,2,'.',''); ?></span>
<span class="info-box-text text-center"><strong>Payment :</strong>&#8377;<?php echo number_format($year_ex,2,'.',''); ?></span> <span class="info-box-text text-center"><strong>Payment :</strong>&#8377;<?php echo number_format($year_ex,2,'.',''); ?></span>
</div> </div>
@ -181,14 +179,15 @@ div.dt-buttons {
<th>Type</th> <th>Type</th>
<th>Received From</th> <th>Received From</th>
<th>Paid To</th> <th>Paid To</th>
<th style="text-align:right;"> Receipt (&#8377;)</th> <th style="text-align:right;"> Receipt (&#8377;)</th>
<th style="text-align:right;"> Payment (&#8377;)</th> <th style="text-align:right;"> Payment (&#8377;)</th>
<th>Description</th> <th>Description</th>
<th>File</th> <th>File</th>
<th>Current Balances</th> <th>Current Balances(&#8377;)</th>
</tr> </tr>
</thead> </thead>
<tbody>
<tr> <tr>
<td style="text-align:left;"><strong>Yesterday Balances (opening balances)</strong></td> <td style="text-align:left;"><strong>Yesterday Balances (opening balances)</strong></td>
<td>&nbsp;</td> <td>&nbsp;</td>
@ -202,7 +201,7 @@ div.dt-buttons {
<td>&nbsp;</td> <td>&nbsp;</td>
<td>&nbsp;</td> <td>&nbsp;</td>
</tr> </tr>
<tbody>
<?php <?php
$ti=0.00; $ti=0.00;
$tvt=0.00; $tvt=0.00;
@ -213,19 +212,19 @@ div.dt-buttons {
<tr> <tr>
<td><span><?php echo $t->date?></span></td> <td><span><?php echo $t->date?></span></td>
<td align="left"><span><?php echo $t->name?></span></td> <td align="left"><span><?php echo $t->name?></span></td>
<td align="left"><span><?php echo $t->type?></span></td> <td align="left"><span><?php echo $t->type?></span></td>
<td align="left"><span><?php echo $t->receiptname?></span></td> <td align="left"><span><?php echo $t->receiptname?></span></td>
<td align="left"><span><?php echo $t->paymentname?></span></td> <td align="left"><span><?php echo $t->paymentname?></span></td>
<td align="right"><span><?php <td align="right"><span><?php
$ti= $ti + number_format($t->income,2,'.',''); $ti= $ti + number_format($t->income,2,'.','');
echo number_format($t->income,2,'.','');?></span></td> echo number_format($t->income,2,'.','');?></span></td>
<td align="right"><span><?php <td align="right"><span><?php
$tvt= $tvt + number_format($t->expense,2,'.',''); $tvt= $tvt + number_format($t->expense,2,'.','');
echo number_format($t->expense,2,'.','');?></span></td> echo number_format($t->expense,2,'.','');?></span></td>
<td align="left"><span><?php echo $t->description?></span></td> <td align="left"><span><?php echo $t->description?></span></td>
<td><?php <td><?php
if(!empty($t->document)) if(!empty($t->document))
{ {
?> ?>
@ -244,9 +243,7 @@ div.dt-buttons {
} }
} }
?> ?>
</tbody> <tr>
<tfoot width="100%">
<tr>
<td style="text-align:left;"><strong>Total</strong></td> <td style="text-align:left;"><strong>Total</strong></td>
<td>&nbsp;</td> <td>&nbsp;</td>
<td>&nbsp;</td> <td>&nbsp;</td>
@ -258,7 +255,11 @@ div.dt-buttons {
<td>&nbsp;</td> <td>&nbsp;</td>
<td style="text-align:right"><strong><?php $curr_balances = $in+$ti-$tvt; echo number_format($curr_balances,2,'.','');?></strong></td> <td style="text-align:right"><strong><?php $curr_balances = $in+$ti-$tvt; echo number_format($curr_balances,2,'.','');?></strong></td>
</tr> </tr>
<tr>
</tbody>
<tfoot width="100%">
<tr>
<td style="text-align:left;"><strong>Today Closing Balances</strong></td> <td style="text-align:left;"><strong>Today Closing Balances</strong></td>
<td>&nbsp;</td> <td>&nbsp;</td>
<td>&nbsp;</td> <td>&nbsp;</td>
@ -282,7 +283,7 @@ div.dt-buttons {
</div><!-- /.content wrapper --> </div><!-- /.content wrapper -->
<script src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"></script>
<script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script> <script src="https://cdn.datatables.net/buttons/1.4.2/js/dataTables.buttons.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
@ -297,6 +298,7 @@ $(document).ready(function() {
"dom": "<'row'<'col-md-3'l><'col-md-9'Bf>>" + "dom": "<'row'<'col-md-3'l><'col-md-9'Bf>>" +
"<'row'<'col-md-6'><'col-md-6'>>" + "<'row'<'col-md-6'><'col-md-6'>>" +
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>", "<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
"bSort": false,
buttons: [ buttons: [
{ {