306 lines
9.7 KiB
PHP
Executable File
306 lines
9.7 KiB
PHP
Executable File
<?php
|
|
foreach($financialyear as $item)
|
|
{
|
|
$finyear = $item->financial_year;
|
|
|
|
}
|
|
?>
|
|
|
|
<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="content-wrapper">
|
|
<section class="content">
|
|
<div class="row">
|
|
|
|
<!-- Left col -->
|
|
<div class="col-md-12">
|
|
<!-- TABLE:. LATEST ORDERS -->
|
|
<div class="box box-info" id="content">
|
|
|
|
<div class="col-md-1 col-md-offset-11">
|
|
<a href="<?php base_url() ?>bankunreceivedsupp" class="btn btn-success" value="Back"/>Back</a>
|
|
</div>
|
|
|
|
<form method="post" action="<?php echo base_url($this->uri->uri_string()); ?>">
|
|
<center><h3 class="box-title"><p style="color: #00d976;; font-size: 18px;">Receivable Invoice Report(<?php if(!empty($fa)){
|
|
echo $fa;
|
|
}
|
|
|
|
?>
|
|
<?php if(!empty($fa)){
|
|
echo '-';
|
|
echo $aa;
|
|
}
|
|
|
|
?>
|
|
<?php if(!empty($m))
|
|
{
|
|
echo '/';
|
|
echo $m;
|
|
}
|
|
?>
|
|
<?php if(!empty($fdate))
|
|
{
|
|
echo '/';
|
|
echo $fdate;
|
|
}
|
|
|
|
?><?php if(!empty($tdate)){
|
|
echo '/';
|
|
echo $tdate;
|
|
}
|
|
|
|
?>)</p></h3></center>
|
|
<?php
|
|
if(!empty($amountunreceived)){
|
|
foreach($amountunreceived as $t)
|
|
|
|
{
|
|
}
|
|
?>
|
|
<center><h4 style="color: #00d976;"><?php echo $t->client_name?></h4></center>
|
|
<?php
|
|
}
|
|
?>
|
|
<div class="row">
|
|
<div class="col-md-6 col-xs-6">
|
|
|
|
|
|
<input type="hidden" class="form-control required" id="client" name="client" value="<?php echo $client;?>"maxlength="250"></textarea>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="box-body">
|
|
|
|
|
|
|
|
<div class="row">
|
|
<!-- <div class="col-md-3" style=" border: 2px solid black;font-size:14px;background-color:#ccc;"> -->
|
|
|
|
<input type="hidden" id="debitamount" value="<?php echo $cash; ?>" placeholder="Debit Amount" readonly>
|
|
|
|
<input type="hidden" id="bankid" value="<?php echo $bankid; ?>" placeholder="Bank Id" readonly>
|
|
|
|
|
|
|
|
|
|
<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>
|
|
|
|
</div>
|
|
<div class="col-md-2">
|
|
<label for="to_date">
|
|
<?php echo 'Month'; ?>
|
|
</label>
|
|
<div class="input-group">
|
|
<select class="form-control" id="month" name="month">
|
|
<option value="">Select Month</option>
|
|
<option value="January">January</option>
|
|
<option value="February">February</option>
|
|
<option value="March">March</option>
|
|
<option value="April">April</option>
|
|
<option value="May">May</option>
|
|
<option value="June">June</option>
|
|
<option value="July">July</option>
|
|
<option value="August">August</option>
|
|
<option value="September">September</option>
|
|
<option value="October">October</option>
|
|
<option value="November">November</option>
|
|
<option value="December">December</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
|
|
<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-2" style="margin-top:20px;">
|
|
<!-- <div class="col-md-1 col-md-offset-10" style="margin-top:20px;"> -->
|
|
<input type="submit" class="btn btn-success" name="btn_submit" value="View Receivable">
|
|
</div>
|
|
</div>
|
|
|
|
<br>
|
|
<br>
|
|
|
|
</form>
|
|
<br>
|
|
<br>
|
|
<input type="hidden" name="Rowid" id="Rowid" placeholder="Row Id" readonly >
|
|
<table class="table table-bordered table-hover" id="req" style="table-layout:auto;">
|
|
<thead>
|
|
<tr>
|
|
|
|
<th>Date</th>
|
|
<th>Invoice Number</th>
|
|
<!--<th>Customer Name</th>-->
|
|
<th>Invoice Amount (₹)</th>
|
|
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php
|
|
$tot_amount=0;
|
|
$i=1;
|
|
$ti=0.00;
|
|
$tvt=0.00;
|
|
if(!empty($amountunreceived)){
|
|
foreach($amountunreceived as $t)
|
|
|
|
{
|
|
//print_r($bankinvoicedata);
|
|
$status=$t->Paymentstatus;
|
|
$balancetopay=$t->Balancetopay;
|
|
if($status !='ST057')
|
|
{
|
|
?>
|
|
<tr>
|
|
|
|
|
|
<td align="left" id="invoicedate<?php echo $i ?>"><span><?php echo format_date($t->invoice_date_created,0,'d-m-Y');?></span></td>
|
|
<td align="left" id="invoice_id<?php echo $i ?>"><span><?php echo $t->invoice_number?></span></td>
|
|
<!--<td align="left" id="client_name<?php echo $i ?>"><span><?php echo $t->client_name?></span></td>-->
|
|
<td align="left" id="invoice_paid<?php echo $i ?>"><span><?php $tot_amount=$tot_amount+$t->invoice_total?><?php echo $t->invoice_total?></span></td>
|
|
|
|
|
|
</tr>
|
|
<?php
|
|
$i++;
|
|
}
|
|
}
|
|
?>
|
|
</tbody>
|
|
<tfoot width="100%">
|
|
<tr>
|
|
<td style="text-align:left;"><strong>Total</strong></td>
|
|
<td> </td>
|
|
|
|
|
|
<td class="amount"><strong>
|
|
<?php echo $tot_amount; ?>
|
|
</strong></td>
|
|
</tr>
|
|
</tfoot>
|
|
|
|
<?php } ?>
|
|
</table>
|
|
|
|
|
|
|
|
</div><!-- / .box-body closed -->
|
|
</div><!-- /.box box-info closed-->
|
|
|
|
</div><!--/ .col (col-md-12)-->
|
|
|
|
</div><!-- /. 1st row closed -->
|
|
|
|
|
|
|
|
|
|
</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>
|
|
$(document).ready(function() {
|
|
|
|
|
|
$.fn.dataTable.moment( 'DD-MM-YYYY' );
|
|
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: 'Unpaid Purchase Order Report',
|
|
exportOptions: {
|
|
columns: ':visible'
|
|
}
|
|
},
|
|
|
|
'colvis'
|
|
]
|
|
} );/** datatable closed */
|
|
} );/** ready closed */
|
|
|
|
</script>
|
|
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|