304 lines
8.2 KiB
PHP
304 lines
8.2 KiB
PHP
|
|
|
|
<?php
|
|
|
|
|
|
if(!empty($amountpaid))
|
|
{
|
|
|
|
}
|
|
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>
|
|
|
|
|
|
|
|
|
|
<!--<div class="row">
|
|
<div class="col-md-12">
|
|
<div id="container"></div>
|
|
|
|
</div>
|
|
</div>-->
|
|
|
|
|
|
|
|
|
|
<div class="content-wrapper">
|
|
<section class="content">
|
|
<!-- 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 -->
|
|
|
|
|
|
<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 Received Report</b></p></h3></center>
|
|
<div class="box-body">
|
|
|
|
<div class="row">
|
|
<div class="col-md-3">
|
|
<label for="from_date">
|
|
<?php echo 'From Date'; ?>
|
|
</label>
|
|
<div class="input-group">
|
|
<input name="from_date" id="max-date" class="form-control datepicker">
|
|
<span class="input-group-addon">
|
|
<i class="fa fa-calendar fa-fw"></i>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="col-md-3">
|
|
<label for="to_date">
|
|
<?php echo 'To Date'; ?>
|
|
</label>
|
|
<div class="input-group">
|
|
<input name="to_date" id="min-date" class="form-control datepicker">
|
|
<span class="input-group-addon">
|
|
<i class="fa fa-calendar fa-fw"></i>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-3" >
|
|
<label for="from_date">
|
|
<?php echo 'Customer'; ?>
|
|
</label>
|
|
<select class="form-control" id="Customer" name="Customer">
|
|
<option value="">Select Customer</option>
|
|
<?php
|
|
foreach($getcustomer as $gs):
|
|
|
|
{?>
|
|
|
|
<option value="<?php echo $gs->client_id;?>"><?php echo $gs->client_name ; ?></option>
|
|
|
|
|
|
<?php } endforeach; ?>
|
|
|
|
</select>
|
|
</div>
|
|
<div class="col-md-2" style="margin-top:24px;">
|
|
<input type="submit" class="btn btn-success" name="btn_submit"
|
|
value="View Report">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
</form>
|
|
<br>
|
|
<br>
|
|
<table class="table table-bordered table-hover" id="req" style="table-layout:auto;">
|
|
<thead>
|
|
<tr>
|
|
|
|
<th>Date</th>
|
|
<th>INVOICENO</th>
|
|
<th>Supplier Name</th>
|
|
<th>Total Invoice Amount (₹)</th>
|
|
<!--<th>Advance PO Amount (₹)</th>-->
|
|
<th>Balance To Received (₹)</th>
|
|
<th>Amount Received (₹)</th>
|
|
|
|
|
|
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php
|
|
$i=1;
|
|
$ti=0.00;
|
|
$tvt=0.00;
|
|
if(!empty($bankcredit)){
|
|
foreach($bankcredit as $ap)
|
|
{
|
|
?>
|
|
<tr>
|
|
|
|
|
|
|
|
|
|
|
|
<td align="left" id="date"><span><?php echo $ap->indate?></span></td>
|
|
<td align="left" id="pono"><a href="<?= base_url() ?>cashbook/mappingcredit?sid=<?php echo $ap->invoiceno;?>"><span><?php echo $ap->invoiceno?></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 $ap->customername?></span></td>
|
|
<td align="left" id="tov"><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>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
</tfoot>-->
|
|
</table>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<!-- /.box -->
|
|
</div>
|
|
<!-- /.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>
|
|
$(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'
|
|
]
|
|
} );
|
|
} );
|
|
|
|
$( function() {
|
|
//var dateFormat = "mm/dd/yy",
|
|
from = $( "#min-date" )
|
|
.datepicker({
|
|
dateFormat: "dd-mm-yy",
|
|
defaultDate: "+0d",
|
|
changeMonth: true,
|
|
//numberOfMonths: 1
|
|
|
|
})
|
|
.on( "change", function() {
|
|
to.datepicker("option", "minDate", getDate( this ) );
|
|
}),
|
|
to = $( "#max-date" ).datepicker({
|
|
dateFormat: "dd-mm-yy",
|
|
defaultDate: "+0d",
|
|
changeMonth: true,
|
|
//numberOfMonths: 1
|
|
|
|
})
|
|
.on( "change", function() {
|
|
from.datepicker( "option", "maxDate", getDate( this ) );
|
|
});
|
|
|
|
function getDate( element ) {
|
|
var date;
|
|
|
|
try {
|
|
date = $.datepicker.parseDate( dateFormat, element.value );
|
|
|
|
} catch( error ) {
|
|
date = null;
|
|
}
|
|
|
|
return date;
|
|
}
|
|
} );
|
|
</script>
|
|
|
|
|
|
|
|
|