siddharth_application/application/views/cashbook_cumulative_month_report.php
venbatechnologies@gmail.com 8e9daa9f1c temporary total
2018-07-12 17:43:07 +05:30

695 lines
37 KiB
PHP

<?php
$apr_rec=0;
$apr_pay=0;
$may_rec=0;
$may_pay=0;
$jun_rec=0;
$jun_pay=0;
$jul_rec=0;
$jul_pay=0;
$aug_rec=0;
$aug_pay=0;
$sep_rec=0;
$sep_pay=0;
$oct_rec=0;
$oct_pay=0;
$nov_rec=0;
$nov_pay=0;
$dec_rec=0;
$dec_pay=0;
$jan_rec=0;
$jan_pay=0;
$feb_rec=0;
$feb_pay=0;
$mar_rec=0;
$mar_pay=0;
$total_rec=0;
$total_pay=0;
if (date('m') >= 4) {
$yearl = date('Y').'-'.(date('Y')+1);
} else {
$yearl = (date('Y')-1).'-'.date('Y');
}
$ab=$yearl;
$fa=substr($ab,0,-5);
$aa=substr($ab,5,5);
?>
<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;
}
.btn-success {
background-color: #3c8dbc;
border-color: #3c8dbc;
}
</style>
<div class="content-wrapper">
<section class="content">
<div class="row" style="min-height: 600px;">
<div class="col-md-12">
<div class="box box-info">
<div class="box-header with-border">
<center><h3 class="box-title"><p style="color:#3c8dbc"><b>Cashbook - Cumulative Monthwise Report
<!-- ( <?php echo $fa.'-'.$aa; ?> ) -->
<?php
if($this->input->post('client_name')){
$cl=$this->input->post('client_name');
echo '('.$cl.')';
}
if($this->input->post('financialyear')){
$ab=$this->input->post('financialyear');
echo '('.$ab.')';
}
?></b></p></h3></center>
</div>
<div class="panel-body">
<form method="post" action="<?php echo base_url($this->uri->uri_string()); ?>">
<div class="form-group has-feedback">
<div class="col-md-4">
<label for="client_name">
<?php echo 'Account Name'; ?>
</label>
<div class="input-group">
<select class="form-control" id="client_name" name="client_name">
<option value="">Select Account Name</option>
<?php
foreach($accountname as $item):
{?>
<option value="<?php echo $item->name;?>"><?php echo $item->name ; ?></option>
<?php } endforeach; ?>
</select>
</div>
</div>
<div class="col-md-2">
<label for="to_date">
<?php echo 'year'; ?>
</label>
<div class="input-group">
<select class="form-control" id="financialyear" name="financialyear">
<option value="">Select Year</option>
<?php
foreach($finyear as $item):
{?>
<option value="<?php echo $item->financial_year;?>"><?php echo $item->financial_year ; ?></option>
<?php } endforeach; ?>
</select>
</div>
</div>
<div class="col-md-2"></div>
<!-- <div class="col-md-2">
<br>
<label><input type="radio" name="colorRadio" id="value" onclick="toggleTables('2')" value="tab" checked> Recepit</label>
<label><input type="radio" name="colorRadio" id="qty" onclick="toggleTables('1')" value="ta" > Payment</label>
</div> -->
<div class="col-md-2 "><br>
<input type="submit" class="btn btn-success" name="btn_submit"
value="View Report">
</div>
</div>
</form>
</div>
<div class="box-body">
<div class = "table-responsive">
<table class="table table-bordered table-hover table-responsive" id="ccmonthwise" style="font-size:14px;">
<thead>
<tr>
<th style="text-align:center" rowspan="2">Account Name</th>
<th style="text-align:center" colspan="2">April</th>
<th style="text-align:center" colspan="2">May</th>
<th style="text-align:center" colspan="2">June</th>
<th style="text-align:center" colspan="2">July</th>
<th style="text-align:center" colspan="2">August</th>
<th style="text-align:center" colspan="2">September</th>
<th style="text-align:center" colspan="2">October</th>
<th style="text-align:center" colspan="2">November</th>
<th style="text-align:center" colspan="2">December</th>
<th style="text-align:center" colspan="2">January</th>
<th style="text-align:center" colspan="2">February</th>
<th style="text-align:center" colspan="2">March</th>
<th style="text-align:center" colspan="2">Total</th>
</tr>
<tr>
<th style="text-align:center">Receipt &nbsp;(&#8377;)</th>
<th style="text-align:center">Payment &nbsp;(&#8377;)</th>
<th style="text-align:center">Receipt &nbsp;(&#8377;)</th>
<th style="text-align:center">Payment &nbsp;(&#8377;)</th>
<th style="text-align:center">Recepit &nbsp;(&#8377;)</th>
<th style="text-align:center">Payment &nbsp;(&#8377;)</th>
<th style="text-align:center">Receipt &nbsp;(&#8377;)</th>
<th style="text-align:center">Payment &nbsp;(&#8377;)</th>
<th style="text-align:center">Receipt &nbsp;(&#8377;)</th>
<th style="text-align:center">Payment &nbsp;(&#8377;)</th>
<th style="text-align:center">Recepit &nbsp;(&#8377;)</th>
<th style="text-align:center">Payment &nbsp;(&#8377;)</th>
<th style="text-align:center">Receipt &nbsp;(&#8377;)</th>
<th style="text-align:center">Payment &nbsp;(&#8377;)</th>
<th style="text-align:center">Receipt &nbsp;(&#8377;)</th>
<th style="text-align:center">Payment &nbsp;(&#8377;)</th>
<th style="text-align:center">Recepit &nbsp;(&#8377;)</th>
<th style="text-align:center">Payment &nbsp;(&#8377;)</th>
<th style="text-align:center">Receipt &nbsp;(&#8377;)</th>
<th style="text-align:center">Payment &nbsp;(&#8377;)</th>
<th style="text-align:center">Receipt &nbsp;(&#8377;)</th>
<th style="text-align:center">Payment &nbsp;(&#8377;)</th>
<th style="text-align:center">Recepit &nbsp;(&#8377;)</th>
<th style="text-align:center">Payment &nbsp;(&#8377;)</th>
<th style="text-align:center">Recepit &nbsp;(&#8377;)</th>
<th style="text-align:center">Payment &nbsp;(&#8377;)</th>
</tr>
</thead>
<tbody>
<?php
if(!empty($datas)){
// $apr_rec=0;
// $apr_pay=0;
// $may_rec=0;
// $may_pay=0;
// $jun_rec=0;
// $jun_pay=0;
// $jul_rec=0;
// $jul_pay=0;
// $aug_rec=0;
// $aug_pay=0;
// $sep_rec=0;
// $sep_pay=0;
// $oct_rec=0;
// $oct_pay=0;
// $nov_rec=0;
// $nov_pay=0;
// $dec_rec=0;
// $dec_pay=0;
// $jan_rec=0;
// $jan_pay=0;
// $feb_rec=0;
// $feb_pay=0;
// $mar_rec=0;
// $mar_pay=0;
foreach($datas as $index=> $d)
{
?>
<tr>
<td><?php echo $d->name; ?></td>
<td id ="aprin<?= $index ?>"><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'April' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><?php echo number_format($d->AprilIncome,2,'.',''); ?></span></a></td>
<td id ="aprex<?= $index ?>"><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'April' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><?php echo number_format($d->AprilExpense,2,'.',''); ?></span></a></td>
<td id ="mayin<?= $index ?>"><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'May' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><?php echo number_format($d->MayIncome,2,'.',''); ?></span></td>
<td id ="mayex<?= $index ?>"><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'May' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><?php echo number_format($d->MayExpense,2,'.',''); ?></span></td>
<td id ="junin<?= $index ?>"><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'June' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><?php echo number_format($d->JuneIncome,2,'.',''); ?></span></td>
<td id ="junex<?= $index ?>"><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'June' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><?php echo number_format($d->JuneExpense,2,'.',''); ?></span></td>
<td id ="jlyin<?= $index ?>"><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'July' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><?php echo number_format($d->JulyIncome,2,'.',''); ?></span></td>
<td id ="jlyex<?= $index ?>"><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'July' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><?php echo number_format($d->JulyExpense,2,'.',''); ?></span></td>
<td id ="augin<?= $index ?>"><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'August' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><?php echo number_format($d->AugustIncome,2,'.',''); ?></span></td>
<td id ="augex<?= $index ?>"><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'August' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><?php echo number_format($d->AugustExpense,2,'.',''); ?></span></td>
<td id ="sepin<?= $index ?>"><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'September' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><?php echo number_format($d->SepIncome,2,'.',''); ?></span></td>
<td id ="sepex<?= $index ?>"><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'September' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><?php echo number_format($d->SepExpense,2,'.',''); ?></span></td>
<td id ="octin<?= $index ?>"><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'October' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><?php echo number_format($d->OctIncome,2,'.',''); ?></span></td>
<td id ="octex<?= $index ?>"><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'October' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><?php echo number_format($d->OctExpense,2,'.',''); ?></span></td>
<td id ="novin<?= $index ?>"><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'November' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><?php echo number_format($d->NovIncome,2,'.',''); ?></span></td>
<td id ="novex<?= $index ?>"><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'November' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><?php echo number_format($d->NovExpense,2,'.',''); ?></span></td>
<td id ="decin<?= $index ?>"><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'December' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><?php echo number_format($d->DecIncome,2,'.',''); ?></span></td>
<td id ="decex<?= $index ?>"><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'December' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><?php echo number_format($d->DecExpense,2,'.',''); ?></span></td>
<td id ="janin<?= $index ?>"><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'January' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><?php echo number_format($d->JanIncome,2,'.',''); ?></span></td>
<td id ="janex<?= $index ?>"><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'January' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><?php echo number_format($d->JanExpense,2,'.',''); ?></span></td>
<td id ="febin<?= $index ?>"><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'February' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><?php echo number_format($d->FebIncome,2,'.',''); ?></span></td>
<td id ="febex<?= $index ?>"><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'February' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><?php echo number_format($d->FebExpense,2,'.',''); ?></span></td>
<td id ="marin<?= $index ?>"><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'March' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><?php echo number_format($d->MarIncome,2,'.',''); ?></span></td>
<td id ="marex<?= $index ?>"><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&d=<?php echo 'March' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><?php echo number_format($d->MarExpense,2,'.',''); ?></span></td>
<td id ="totalincome<?= $index ?>"><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>"><span><?php echo number_format($d->receiptoverall,2,'.',''); ?></span></td>
<td id ="totalexpense<?= $index ?>"><a href="<?php echo base_url(); ?>report/cashbookdepartment?sid=<?php echo $d->account_code;?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>"><span><?php echo number_format($d->paymentoverall,2,'.',''); ?></span></td>
</tr>
<?php
$apr_rec= $apr_rec + $d->AprilIncome;
$apr_pay= $apr_pay + $d->AprilExpense;
$may_rec=$may_rec + $d->MayIncome;
$may_pay=$may_pay + $d->MayExpense;
$jun_rec=$jun_rec + $d->JuneIncome;
$jun_pay=$jun_pay +$d->JuneExpense;
$jul_rec=$jul_rec + $d->JulyIncome;
$jul_pay=$jul_pay +$d->JulyExpense;
$aug_rec=$aug_rec +$d->AugustIncome;
$aug_pay=$aug_pay +$d->AugustExpense;
$sep_rec=$sep_rec +$d->SepIncome;
$sep_pay=$sep_pay +$d->SepExpense;
$oct_rec=$oct_rec+$d->OctIncome;
$oct_pay=$oct_pay+$d->OctExpense;
$nov_rec=$nov_rec+$d->NovIncome;
$nov_pay=$nov_pay+$d->NovExpense;
$dec_rec=$dec_rec+$d->DecIncome;
$dec_pay=$dec_pay+$d->DecExpense;
$jan_rec=$jan_rec+$d->JanIncome;
$jan_pay=$jan_pay+$d->JanExpense;
$feb_rec=$feb_rec+$d->FebIncome;
$feb_pay=$feb_pay+$d->FebExpense;
$mar_rec=$mar_rec+$d->MarIncome;
$mar_pay=$mar_pay+$d->MarExpense;
$total_rec=$total_rec+$d->receiptoverall;
$total_pay=$total_pay+$d->paymentoverall;
?>
<?php } ?>
</tbody>
<tfoot width="100%">
<tr>
<td><b><?php echo "TOTAL" ?></b></td>
<td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td>
<td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td>
<td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td>
<td></td><td></td>
</tr>
</tfoot>
<?php } echo $apr_pay; ?>
</table>
</div>
</div>
</div><!-- /.box -->
</div><!-- /.col -->
</div>
</section>
</div>
<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>
// Bootstrap datepicker
// Set up your table
$(document).ready(function() {
var vtxt_count = 0;
$('#ccmonthwise').on('search.dt', function() {
var vvalue = $('#ccmonthwise_filter input').val();
if(vvalue !=''){
vtxt_count = 1;
}else{
vtxt_count = 0;
}
});
var capril_income_sum ="<?php echo json_encode($apr_rec)?>";
var capril_expense_sum= "<?php echo json_encode($apr_pay)?>";
var cmay_income_sum ="<?php echo json_encode($may_rec)?>";
var cmay_expense_sum= "<?php echo json_encode($may_pay)?>";
var cjune_income_sum ="<?php echo json_encode($jun_rec)?>";
var cjune_expense_sum= "<?php echo json_encode($jun_pay)?>";
var cjuly_income_sum ="<?php echo json_encode($jul_rec)?>";
var cjuly_expense_sum= "<?php echo json_encode($jul_pay)?>";
var caugust_income_sum ="<?php echo json_encode($aug_rec)?>";
var caugust_expense_sum= "<?php echo json_encode($aug_pay)?>";
var cseptember_income_sum ="<?php echo json_encode($sep_rec)?>";
var cseptember_expense_sum= "<?php echo json_encode($sep_pay)?>";
var coctober_income_sum ="<?php echo json_encode($oct_rec)?>";
var coctober_expense_sum= "<?php echo json_encode($oct_pay)?>";
var cnovember_income_sum ="<?php echo json_encode($nov_rec)?>";
var cnovember_expense_sum= "<?php echo json_encode($nov_pay)?>";
var cdecember_income_sum ="<?php echo json_encode($dec_rec)?>";
var cdecember_expense_sum= "<?php echo json_encode($dec_pay)?>";
var cjanuary_income_sum ="<?php echo json_encode($jan_rec)?>";
var cjanuary_expense_sum= "<?php echo json_encode($jan_pay)?>";
var cfebruary_income_sum ="<?php echo json_encode($feb_rec)?>";
var cfebruary_expense_sum= "<?php echo json_encode($feb_pay)?>";
var cmarch_income_sum ="<?php echo json_encode($mar_rec)?>";
var cmarch_expense_sum= "<?php echo json_encode($mar_pay)?>";
var cfinalTotal_income_sum ="<?php echo json_encode($total_rec)?>";
var cfinalTotal_expense_sum= "<?php echo json_encode($total_pay)?>";
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>>",
buttons: [
{
extend: 'excelHtml5',
footer: 'true',
//messageTop: $('h3').text(),
title: $('h3').text(),
exportOptions: {
columns: ':visible'
}
},
'colvis'
],
"footerCallback": function ( row, data, start, end, display )
{
var april_income_sum =0;
var april_expense_sum= 0;
var may_income_sum =0;
var may_expense_sum= 0;
var june_income_sum =0;
var june_expense_sum= 0;
var july_income_sum =0;
var july_expense_sum= 0;
var august_income_sum =0;
var august_expense_sum= 0;
var september_income_sum =0;
var september_expense_sum= 0;
var october_income_sum =0;
var october_expense_sum= 0;
var november_income_sum =0;
var november_expense_sum= 0;
var december_income_sum =0;
var december_expense_sum= 0;
var january_income_sum =0;
var january_expense_sum= 0;
var february_income_sum =0;
var february_expense_sum= 0;
var march_income_sum =0;
var march_expense_sum= 0;
var finalTotal_income_sum =0;
var finalTotal_expense_sum= 0;
if(vtxt_count !=0)
{
for(var j = 0;j<=display.length-1;j++)
{
var count = display[j];
var april_income_value = $('#aprin'+count).text();
var april_expense_value= $('#aprex'+count).text();
var may_income_value = $('#mayin'+count).text();
var may_expense_value= $('#mayex'+count).text();
var june_income_value = $('#junin'+count).text();
var june_expense_value= $('#junex'+count).text();
var july_income_value = $('#jlyin'+count).text();
var july_expense_value= $('#jlyex'+count).text();
var august_income_value = $('#augin'+count).text();
var august_expense_value= $('#augex'+count).text();
var september_income_value = $('#sepin'+count).text();
var september_expense_value= $('#sepex'+count).text();
var october_income_value = $('#octin'+count).text();
var october_expense_value= $('#octex'+count).text();
var november_income_value = $('#novin'+count).text();
var november_expense_value= $('#novex'+count).text();
var december_income_value = $('#decin'+count).text();
var december_expense_value= $('#decex'+count).text();
var january_income_value = $('#janin'+count).text();
var january_expense_value= $('#janex'+count).text();
var february_income_value = $('#febin'+count).text();
var february_expense_value= $('#febex'+count).text();
var march_income_value = $('#marin'+count).text();
var march_expense_value= $('#marex'+count).text();
var finalTotal_income_value = $('#totalincome'+count).text();
var finalTotal_expense_value= $('#totalexpense'+count).text();
april_income_sum += +april_income_value;
april_expense_sum += +april_expense_value;
may_income_sum += +may_income_value;
may_expense_sum += +may_expense_value;
june_income_sum += +june_income_value;
june_expense_sum += +june_expense_value;
july_income_sum += +july_income_value;
july_expense_sum += +july_expense_value;
august_income_sum += +august_income_value;
august_expense_sum += +august_expense_value;
september_income_sum += +september_income_value;
september_expense_sum += +september_expense_value;
october_income_sum += +october_income_value;
october_expense_sum += +october_expense_value;
november_income_sum += +november_income_value;
november_expense_sum += +november_expense_value;
december_income_sum += +december_income_value;
december_expense_sum += +december_expense_value;
january_income_sum += +january_income_value;
january_expense_sum += +january_expense_value;
february_income_sum += +february_income_value;
february_expense_sum += +february_expense_value;
march_income_sum += +march_income_value;
march_expense_sum += +march_expense_value;
finalTotal_income_sum += +finalTotal_income_value;
finalTotal_expense_sum += +finalTotal_expense_value;
}
var api = this.api(), data;
$( api.column( 1 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'April' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(april_income_sum).toFixed(2).bold()+'</a>' );
$( api.column( 2 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'April' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(april_expense_sum).toFixed(2).bold()+'</a>' );
$( api.column( 3 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'May' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(may_income_sum).toFixed(2).bold()+'</a>' );
$( api.column( 4 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'May' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(may_expense_sum).toFixed(2).bold()+'</a>' );
$( api.column( 5 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'June' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(june_income_sum).toFixed(2).bold()+'</a>' );
$( api.column( 6 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'June' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(june_expense_sum).toFixed(2).bold()+'</a>' );
$( api.column( 7 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'July' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(july_income_sum).toFixed(2).bold()+'</a>' );
$( api.column( 8 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'July' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(july_expense_sum).toFixed(2).bold()+'</a>' );
$( api.column( 9 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'August' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(august_income_sum).toFixed(2).bold()+'</a>' );
$( api.column( 10 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'August' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(august_expense_sum).toFixed(2).bold()+'</a>' );
$( api.column( 11 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'September' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(september_income_sum).toFixed(2).bold()+'</a>' );
$( api.column( 12 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'September' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(september_expense_sum).toFixed(2).bold()+'</a>' );
$( api.column( 13 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'October' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(october_income_sum).toFixed(2).bold()+'</a>' );
$( api.column( 14 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'October' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(october_expense_sum).toFixed(2).bold()+'</a>' );
$( api.column( 15 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'November' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(november_income_sum).toFixed(2).bold()+'</a>' );
$( api.column( 16 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'November' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(november_expense_sum).toFixed(2).bold()+'</a>' );
$( api.column( 17 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'December' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(december_income_sum).toFixed(2).bold()+'</a>' );
$( api.column( 18 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'December' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(december_expense_sum).toFixed(2).bold()+'</a>' );
$( api.column( 19 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'January' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(january_income_sum).toFixed(2).bold()+'</a>' );
$( api.column( 20 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'January' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(january_expense_sum).toFixed(2).bold()+'</a>' );
$( api.column( 21 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'February' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(february_income_sum).toFixed(2).bold()+'</a>' );
$( api.column( 22 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'February' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(february_expense_sum).toFixed(2).bold()+'</a>' );
$( api.column( 23 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'March' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(march_income_sum).toFixed(2).bold()+'</a>' );
$( api.column( 24 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'March' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(march_expense_sum).toFixed(2).bold()+'</a>' );
$( api.column( 25 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(finalTotal_income_sum).toFixed(2).bold()+'</a>' );
$( api.column( 26 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(finalTotal_expense_sum).toFixed(2).bold()+'</a>' );
}
else
{
var api = this.api(), data;
$( api.column( 1 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'April' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(capril_income_sum).toFixed(2).bold()+'</a>' );
$( api.column( 2 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'April' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(capril_expense_sum).toFixed(2).bold()+'</a>' );
$( api.column( 3 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'May' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(cmay_income_sum).toFixed(2).bold()+'</a>' );
$( api.column( 4 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'May' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(cmay_expense_sum).toFixed(2).bold()+'</a>' );
$( api.column( 5 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'June' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(cjune_income_sum).toFixed(2).bold()+'</a>' );
$( api.column( 6 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'June' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(cjune_expense_sum).toFixed(2).bold()+'</a>' );
$( api.column( 7 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'July' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(cjuly_income_sum).toFixed(2).bold()+'</a>' );
$( api.column( 8 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'July' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(cjuly_expense_sum).toFixed(2).bold()+'</a>' );
$( api.column( 9 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'August' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(caugust_income_sum).toFixed(2).bold()+'</a>' );
$( api.column( 10 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'August' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(caugust_expense_sum).toFixed(2).bold()+'</a>' );
$( api.column( 11 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'September' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(cseptember_income_sum).toFixed(2).bold()+'</a>' );
$( api.column( 12 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'September' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(cseptember_expense_sum).toFixed(2).bold()+'</a>' );
$( api.column( 13 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'October' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(coctober_income_sum).toFixed(2).bold()+'</a>' );
$( api.column( 14 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'October' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(coctober_expense_sum).toFixed(2).bold()+'</a>' );
$( api.column( 15 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'November' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(november_income_sum).toFixed(2).bold()+'</a>' );
$( api.column( 16 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'November' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(cnovember_expense_sum).toFixed(2).bold()+'</a>' );
$( api.column( 17 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'December' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(cdecember_income_sum).toFixed(2).bold()+'</a>' );
$( api.column( 18 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'December' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(cdecember_expense_sum).toFixed(2).bold()+'</a>' );
$( api.column( 19 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'January' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(cjanuary_income_sum).toFixed(2).bold()+'</a>' );
$( api.column( 20 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'January' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(cjanuary_expense_sum).toFixed(2).bold()+'</a>' );
$( api.column( 21 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'February' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(cfebruary_income_sum).toFixed(2).bold()+'</a>' );
$( api.column( 22 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'February' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(cfebruary_expense_sum).toFixed(2).bold()+'</a>' );
$( api.column( 23 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'March' ?>&c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(cmarch_income_sum).toFixed(2).bold()+'</a>' );
$( api.column( 24 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?d=<?php echo 'March' ?>&c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(cmarch_expense_sum).toFixed(2).bold()+'</a>' );
$( api.column( 25 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?c=<?php echo 'RECEIPT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(cfinalTotal_income_sum).toFixed(2).bold()+'</a>' );
$( api.column( 26 ).footer() ).html( "<a href=<?php echo base_url(); ?>report/cashbookdepartment?c=<?php echo 'PAYMENT'; ?>&finyear=<?php echo $ab ?>>"+parseInt(cfinalTotal_expense_sum).toFixed(2).bold()+'</a>' );
}
}
} );
} );
</script>