bank book-bala
This commit is contained in:
parent
c571d6a19f
commit
f0380c03bd
1
application/config/routes.php
Executable file → Normal file
1
application/config/routes.php
Executable file → Normal file
@ -236,6 +236,7 @@ $route['BankingFile']= "cashbook/bankfileupload";
|
|||||||
//$route['Filelist']="cashbook/filelist";
|
//$route['Filelist']="cashbook/filelist";
|
||||||
//$route['Bankingrecord']= "cashbook/bankdata";
|
//$route['Bankingrecord']= "cashbook/bankdata";
|
||||||
$route['Bankamountpaid']= "cashbook/amountpaid";
|
$route['Bankamountpaid']= "cashbook/amountpaid";
|
||||||
|
$route['Bankamountunpaid']= "cashbook/amountunpaid";
|
||||||
$route['Bankamountreceived']= "cashbook/amountreceived";
|
$route['Bankamountreceived']= "cashbook/amountreceived";
|
||||||
$route['Receipt']= "cashbook/cashreceipt";
|
$route['Receipt']= "cashbook/cashreceipt";
|
||||||
$route['Payment']= "cashbook/cashpayment";
|
$route['Payment']= "cashbook/cashpayment";
|
||||||
|
|||||||
24
application/controllers/cashbook.php
Executable file → Normal file
24
application/controllers/cashbook.php
Executable file → Normal file
@ -1095,12 +1095,12 @@ class cashbook extends BaseController
|
|||||||
|
|
||||||
|
|
||||||
// $this->global['pageTitle'] = 'Siddharth : mappingdebit';
|
// $this->global['pageTitle'] = 'Siddharth : mappingdebit';
|
||||||
$this->global['pageTitle'] = 'Siddharth : Bank Report - Debited Details';
|
$this->global['pageTitle'] = 'Siddharth : Bank Report - Debited Details';
|
||||||
$SupplierName = $this->input->post('SupplierName');
|
$SupplierName = $this->input->post('SupplierName');
|
||||||
$fdate = $this->input->post('from_date');
|
$fdate = $this->input->post('from_date');
|
||||||
$tdate = $this->input->post('to_date');
|
$tdate = $this->input->post('to_date');
|
||||||
$pono= $_GET['sid'];
|
$pono= $_GET['sid'];
|
||||||
$data['debitmapping'] = $this->cashbook_model->debitlistpo($SupplierName,$fdate,$tdate,$pono);
|
$data['debitmapping'] = $this->cashbook_model->debitlistpo($pono);
|
||||||
$this->loadViews("bankposettlement", $this->global,$data,NULL);
|
$this->loadViews("bankposettlement", $this->global,$data,NULL);
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -1390,6 +1390,26 @@ class cashbook extends BaseController
|
|||||||
$data['supplier'] = $this->cashbook_model->getsupplier();
|
$data['supplier'] = $this->cashbook_model->getsupplier();
|
||||||
$this->loadViews("bankamountpaid", $this->global,$data, NULL);
|
$this->loadViews("bankamountpaid", $this->global,$data, NULL);
|
||||||
|
|
||||||
|
}
|
||||||
|
public function amountunpaid()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->global['pageTitle'] = 'Siddharth : Bank Debit Report';
|
||||||
|
if ($this->input->post('btn_submit'))
|
||||||
|
{
|
||||||
|
$Supplierid = $this->input->post('SupplierName');
|
||||||
|
$fdate = $this->input->post('from_date');
|
||||||
|
$tdate = $this->input->post('to_date');
|
||||||
|
//$data['cash'] = $_GET['sid'];
|
||||||
|
//$data['bankid'] = $_GET['d'];
|
||||||
|
$data['bankdepit'] = $this->cashbook_model->debitbankstatemet($Supplierid,$fdate,$tdate);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
$data['getsupplier'] = $this->cashbook_model->getsupplier();
|
||||||
|
$this->loadViews("bankamountunpaid",$this->global,$data,NULL);
|
||||||
|
//die();
|
||||||
|
|
||||||
}
|
}
|
||||||
public function amountreceived()
|
public function amountreceived()
|
||||||
{
|
{
|
||||||
|
|||||||
1094
application/controllers/cashbook_model.php
Normal file
1094
application/controllers/cashbook_model.php
Normal file
File diff suppressed because it is too large
Load Diff
@ -201,7 +201,7 @@ if(!empty($amountpaid))
|
|||||||
<td align="left" id="igritemno<?php echo $i ?>"><span><?php echo $ap->IGRLineItemNo?></span></td>
|
<td align="left" id="igritemno<?php echo $i ?>"><span><?php echo $ap->IGRLineItemNo?></span></td>
|
||||||
<td align="left" id="sn<?php echo $i ?>"><span><?php echo $ap->Suppliername?></span></td>
|
<td align="left" id="sn<?php echo $i ?>"><span><?php echo $ap->Suppliername?></span></td>
|
||||||
<td align="left" id="tpoa<?php echo $i ?>"><span><?php echo $ap->Totalpoamount?></span></td>
|
<td align="left" id="tpoa<?php echo $i ?>"><span><?php echo $ap->Totalpoamount?></span></td>
|
||||||
<td align="left" id="btp<?php echo $i ?>"><span><?php echo $ap->Totalpoamount-$ap->Amountpaid?></span></td>
|
<td align="left" id="btp<?php echo $i ?>"><span><?php echo $ap->Balancetopay?></span></td>
|
||||||
<td align="left" id="ap<?php echo $i ?>"><span><?php echo $ap->Amountpaid?></span></td>
|
<td align="left" id="ap<?php echo $i ?>"><span><?php echo $ap->Amountpaid?></span></td>
|
||||||
<?php
|
<?php
|
||||||
if($ap->file !='')
|
if($ap->file !='')
|
||||||
|
|||||||
228
application/views/bankamountunpaid.php
Normal file
228
application/views/bankamountunpaid.php
Normal file
@ -0,0 +1,228 @@
|
|||||||
|
<?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">
|
||||||
|
<br>
|
||||||
|
<div class="col-md-1 col-md-offset-11">
|
||||||
|
<a href="<?php base_url() ?>Bankingstatement" class="btn btn-primary" 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:#3c8dbc"><b>Un Paid Reports</b></p></h3></center>
|
||||||
|
<div class="box-body">
|
||||||
|
|
||||||
|
<br>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<!-- <div class="col-md-3" style=" border: 2px solid black;font-size:14px;background-color:#ccc;">-->
|
||||||
|
|
||||||
|
|
||||||
|
<input type="hidden" id="debitamount" placeholder="Debit Amount" readonly>
|
||||||
|
|
||||||
|
<input type="hidden" id="bankid" value="" placeholder="Bank Id" readonly>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<!-- <div style=" ;margin-left:0%;margin-top: -55px;"> -->
|
||||||
|
<!-- <p style="margin-left:25px;" id="bid" value="">Payment ID: </p> -->
|
||||||
|
<!--<p style="margin-left:25px;" id="debit1amount" value="">Total Amount: </p>-->
|
||||||
|
<!-- <p style="margin-left:25px;">Payment Mode: Bank</p>
|
||||||
|
<p style="margin-left:25px;" id="bamount" </p>
|
||||||
|
<p style="margin-left:25px;" id="bdate" value="">Payment Amount Date: </p> -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- </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-3" >
|
||||||
|
<label for="customer">
|
||||||
|
<?php echo 'Supplier'; ?>
|
||||||
|
</label>
|
||||||
|
<select class="form-control" id="SupplierName" name="SupplierName">
|
||||||
|
<option value="">Select Supplier</option>
|
||||||
|
<?php foreach($getsupplier as $gs):
|
||||||
|
{?>
|
||||||
|
<option value="<?php echo $gs->SupplierID;?>"><?php echo $gs->SupplierName ; ?></option>
|
||||||
|
<?php } endforeach; ?>
|
||||||
|
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-3" 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 Purchase">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<br>
|
||||||
|
<br>
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</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>PONO</th>
|
||||||
|
<th>IGRNO</th>
|
||||||
|
<th>IGR Item No</th>
|
||||||
|
<th>Supplier Name</th>
|
||||||
|
<th>IGR Amount (₹)</th>
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<?php
|
||||||
|
$i=1;
|
||||||
|
$ti=0.00;
|
||||||
|
$tvt=0.00;
|
||||||
|
if(!empty($bankdepit)){
|
||||||
|
foreach($bankdepit as $t)
|
||||||
|
{
|
||||||
|
|
||||||
|
$status=$t->Paymentstatus;
|
||||||
|
$balancetopay=$t->Balancetopay;
|
||||||
|
$ReceivedQuantity=$t->ReceivedQuantity;
|
||||||
|
$rate=$t->finalamount;
|
||||||
|
|
||||||
|
|
||||||
|
if($status !='ST057')
|
||||||
|
{
|
||||||
|
?>
|
||||||
|
<tr>
|
||||||
|
|
||||||
|
|
||||||
|
<td align="left" id="date<?php echo $i ?>"><span><?php echo date_format(date_create($t->CreatedDate),'d-m-Y');?></span></td>
|
||||||
|
<td align="left" id="pono"><span><?php echo $t->PONO?></span></a></td>
|
||||||
|
<td align="left" id="igrno"><span><?php echo $t->IGRNO?></span></a></td>
|
||||||
|
<td align="left" id="igrlineitem<?php echo $i ?>" ><span><?php echo $t->IGRItemNo?></span></td>
|
||||||
|
<td align="left" id="sn<?php echo $i ?>" ><span><?php echo $t->SupplierName?></span></td>
|
||||||
|
<td align="left" id="tov<?php echo $i ?>" ><span><?php echo round($rate,2)?></span></td>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
<?php
|
||||||
|
$i++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</tbody>
|
||||||
|
|
||||||
|
<?php } ?>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div><!-- /.box -->
|
||||||
|
</div><!-- /.col -->
|
||||||
|
|
||||||
|
</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 src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.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>
|
||||||
|
|
||||||
|
|
||||||
12
application/views/includes/header.php
Executable file → Normal file
12
application/views/includes/header.php
Executable file → Normal file
@ -1511,6 +1511,12 @@ else{
|
|||||||
<span>Amount Paid Reports(PO)</span>
|
<span>Amount Paid Reports(PO)</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="<?php echo base_url(); ?>Bankamountunpaid">
|
||||||
|
<i class="fa fa-credit-card"></i>
|
||||||
|
<span>Amount UnPaid Reports(PO)</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href="<?php echo base_url(); ?>Bankamountreceived">
|
<a href="<?php echo base_url(); ?>Bankamountreceived">
|
||||||
<i class="fa fa-credit-card"></i>
|
<i class="fa fa-credit-card"></i>
|
||||||
@ -1615,6 +1621,12 @@ else{
|
|||||||
<span>Amount Paid Reports(PO)</span>
|
<span>Amount Paid Reports(PO)</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="<?php echo base_url(); ?>Bankamountunpaid">
|
||||||
|
<i class="fa fa-credit-card"></i>
|
||||||
|
<span>Amount UnPaid Reports(PO)</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href="<?php echo base_url(); ?>Bankamountreceived">
|
<a href="<?php echo base_url(); ?>Bankamountreceived">
|
||||||
<i class="fa fa-credit-card"></i>
|
<i class="fa fa-credit-card"></i>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user