bank latest
This commit is contained in:
parent
f17ed0260c
commit
b13c0cfbe9
@ -1038,6 +1038,14 @@ class cashbook extends BaseController
|
|||||||
|
|
||||||
|
|
||||||
$this->global['pageTitle'] = 'Siddharth : amountpaid';
|
$this->global['pageTitle'] = 'Siddharth : amountpaid';
|
||||||
|
if ($this->input->post('btn_submit'))
|
||||||
|
{
|
||||||
|
$SupplierName = $this->input->post('SupplierName');
|
||||||
|
$fdate = $this->input->post('from_date');
|
||||||
|
$tdate = $this->input->post('to_date');
|
||||||
|
|
||||||
|
$data['bankdebit'] = $this->cashbook_model->debitpolistfilter($SupplierName,$fdate,$tdate);
|
||||||
|
}
|
||||||
$data['amountpaid'] = $this->cashbook_model->paided();
|
$data['amountpaid'] = $this->cashbook_model->paided();
|
||||||
$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);
|
||||||
@ -1050,8 +1058,16 @@ class cashbook extends BaseController
|
|||||||
|
|
||||||
// $this->load->model('cashbook_model');
|
// $this->load->model('cashbook_model');
|
||||||
$this->global['pageTitle'] = 'Siddharth : Cashbook Listing';
|
$this->global['pageTitle'] = 'Siddharth : Cashbook Listing';
|
||||||
|
if ($this->input->post('btn_submit'))
|
||||||
|
{
|
||||||
|
$Customer = $this->input->post('Customer');
|
||||||
|
$fdate = $this->input->post('from_date');
|
||||||
|
$tdate = $this->input->post('to_date');
|
||||||
|
|
||||||
|
$data['bankcredit'] = $this->cashbook_model->creditinvoicelistfilter($Customer,$fdate,$tdate);
|
||||||
|
}
|
||||||
$data['getcustomer'] = $this->cashbook_model->getcustomer();
|
$data['getcustomer'] = $this->cashbook_model->getcustomer();
|
||||||
$data['amountreceived'] = $this->cashbook_model->received();
|
$data['amountreceived'] = $this->cashbook_model->received();
|
||||||
$this->loadViews("bankamountreceived", $this->global,$data, NULL);
|
$this->loadViews("bankamountreceived", $this->global,$data, NULL);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -202,6 +202,7 @@ class cashbook_model extends CI_Model
|
|||||||
return $query->result();
|
return $query->result();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function receiptdata()
|
function receiptdata()
|
||||||
{
|
{
|
||||||
|
|
||||||
@ -236,6 +237,27 @@ function debitpolist($bankid)
|
|||||||
$query = $this->db->get();
|
$query = $this->db->get();
|
||||||
return $query->result();
|
return $query->result();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
function debitpolistfilter($SupplierName,$fdate,$tdate)
|
||||||
|
{
|
||||||
|
$this->db->select('bm.mid,bm.Podate,bm.PONO,bm.Suppliername,bm.Totalpoamount,
|
||||||
|
bm.Balancetopay,bm.Amountpaid');
|
||||||
|
$this->db->from ('T_Bankmappingpo bm');
|
||||||
|
$this->db->join ('T_SupplierDetailsN sd','sd.SupplierName = bm.Suppliername','left');
|
||||||
|
if($fdate!='' && $tdate!='')
|
||||||
|
{
|
||||||
|
$this->db->where('bm.Podate BETWEEN "'. date('Y-m-d', strtotime($fdate)). '" and "'. date('Y-m-d', strtotime($tdate)).'"');
|
||||||
|
}
|
||||||
|
if($SupplierName!='')
|
||||||
|
{
|
||||||
|
$this->db->where('sd.SupplierID',$SupplierName);
|
||||||
|
}
|
||||||
|
// $this->db->where('mid',$bankid);
|
||||||
|
$this->db->group_by('PONO');
|
||||||
|
$query = $this->db->get();
|
||||||
|
return $query->result();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function creditinvoicelist($bankid)
|
function creditinvoicelist($bankid)
|
||||||
@ -248,6 +270,25 @@ function debitpolist($bankid)
|
|||||||
$query = $this->db->get();
|
$query = $this->db->get();
|
||||||
return $query->result();
|
return $query->result();
|
||||||
|
|
||||||
|
}
|
||||||
|
function creditinvoicelistfilter($Customer,$fdate,$tdate)
|
||||||
|
{
|
||||||
|
$this->db->select('bm.indate,bm.invoiceno,bm.customername,bm.totinvoiceamount,bm.bankid,
|
||||||
|
bm.balancetoreceived,bm.amountreceived');
|
||||||
|
$this->db->from ('T_Bankmappingiv bm');
|
||||||
|
$this->db->join ('ip_clients ic','ic.client_name = bm.customername','left');
|
||||||
|
if($fdate!='' && $tdate!='')
|
||||||
|
{
|
||||||
|
$this->db->where('bm.indate BETWEEN "'. date('Y-m-d', strtotime($fdate)). '" and "'. date('Y-m-d', strtotime($tdate)).'"');
|
||||||
|
}
|
||||||
|
if($Customer!='')
|
||||||
|
{
|
||||||
|
$this->db->where('ic.client_id',$Customer);
|
||||||
|
}
|
||||||
|
//$this->db->group_by('invoiceno');
|
||||||
|
$query = $this->db->get();
|
||||||
|
return $query->result();
|
||||||
|
|
||||||
}
|
}
|
||||||
//for cashbook edit screen and update bankreport//
|
//for cashbook edit screen and update bankreport//
|
||||||
function invoiceamonut($bankid)
|
function invoiceamonut($bankid)
|
||||||
|
|||||||
@ -24,7 +24,7 @@ if(!empty($amountpaid))
|
|||||||
} ?>
|
} ?>
|
||||||
|
|
||||||
|
|
||||||
<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;}
|
||||||
@ -73,11 +73,11 @@ if(!empty($amountpaid))
|
|||||||
|
|
||||||
|
|
||||||
<form method="post" action="<?php echo base_url($this->uri->uri_string()); ?>">
|
<form method="post" action="<?php echo base_url($this->uri->uri_string()); ?>">
|
||||||
<center><h3 class="box-title"><p style="color:#3c8dbc"><b>Bank Debit Amount Paid Report</b></p></h3></center>
|
<center><h3 class="box-title"><p style="color:#3c8dbc"><b>Bank Debit Amount Paid Reports</b></p></h3></center>
|
||||||
<div class="box-body">
|
<div class="box-body">
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-3">
|
<div class="col-md-2">
|
||||||
<label for="from_date">
|
<label for="from_date">
|
||||||
<?php echo 'From Date'; ?>
|
<?php echo 'From Date'; ?>
|
||||||
</label>
|
</label>
|
||||||
@ -110,16 +110,22 @@ if(!empty($amountpaid))
|
|||||||
<?php
|
<?php
|
||||||
foreach($supplier as $gs):
|
foreach($supplier as $gs):
|
||||||
|
|
||||||
{?>
|
{
|
||||||
|
print_r($gs->SupplierID);
|
||||||
|
?>
|
||||||
|
|
||||||
<option value="<?php echo $gs->SupplierName;?>"><?php echo $gs->SupplierName ; ?></option>
|
<option value="<?php echo $gs->SupplierID;?>"><?php echo $gs->SupplierName ; ?></option>
|
||||||
|
|
||||||
|
|
||||||
<?php } endforeach; ?>
|
<?php } endforeach; ?>
|
||||||
|
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</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>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
@ -146,8 +152,8 @@ if(!empty($amountpaid))
|
|||||||
$i=1;
|
$i=1;
|
||||||
$ti=0.00;
|
$ti=0.00;
|
||||||
$tvt=0.00;
|
$tvt=0.00;
|
||||||
if(!empty($amountpaid)){
|
if(!empty($bankdebit)){
|
||||||
foreach($amountpaid as $ap)
|
foreach($bankdebit as $ap)
|
||||||
{
|
{
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
@ -230,8 +236,7 @@ if(!empty($amountpaid))
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
<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>
|
||||||
@ -261,6 +266,45 @@ if(!empty($amountpaid))
|
|||||||
]
|
]
|
||||||
} );
|
} );
|
||||||
} );
|
} );
|
||||||
|
|
||||||
|
$( 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>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -108,7 +108,7 @@ if(!empty($amountpaid))
|
|||||||
<select class="form-control" id="Customer" name="Customer">
|
<select class="form-control" id="Customer" name="Customer">
|
||||||
<option value="">Select Customer</option>
|
<option value="">Select Customer</option>
|
||||||
<?php
|
<?php
|
||||||
foreach($customer as $gs):
|
foreach($getcustomer as $gs):
|
||||||
|
|
||||||
{?>
|
{?>
|
||||||
|
|
||||||
@ -119,7 +119,11 @@ if(!empty($amountpaid))
|
|||||||
|
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</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>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
@ -146,8 +150,8 @@ if(!empty($amountpaid))
|
|||||||
$i=1;
|
$i=1;
|
||||||
$ti=0.00;
|
$ti=0.00;
|
||||||
$tvt=0.00;
|
$tvt=0.00;
|
||||||
if(!empty($amountreceived)){
|
if(!empty($bankcredit)){
|
||||||
foreach($amountreceived as $ap)
|
foreach($bankcredit as $ap)
|
||||||
{
|
{
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
@ -261,6 +265,44 @@ if(!empty($amountpaid))
|
|||||||
]
|
]
|
||||||
} );
|
} );
|
||||||
} );
|
} );
|
||||||
|
|
||||||
|
$( 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>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -117,7 +117,7 @@ if(!empty($debitmapping))
|
|||||||
<div class="box-body">
|
<div class="box-body">
|
||||||
<div class="col-md-3 col-md-offset-9">
|
<div class="col-md-3 col-md-offset-9">
|
||||||
<div style=" border: 2px solid black;margin-left:0%;margin-top: -55px;font-size:14px;background-color:#ccc;">
|
<div style=" border: 2px solid black;margin-left:0%;margin-top: -55px;font-size:14px;background-color:#ccc;">
|
||||||
<p style="margin-left:62px;padding-top:30px;">Payment ID: <b><?php echo $bankid?></b></p>
|
<p style="margin-left:62px;padding-top:30px;">Payment ID: <b><?php echo $ap->bankid?></b></p>
|
||||||
<p style="margin-left:41px;">Payment Mode: <b>Bank</b></p>
|
<p style="margin-left:41px;">Payment Mode: <b>Bank</b></p>
|
||||||
<p style="margin-left:41px;">Payment Amount: <b><?php echo $totalamount ?></b></p>
|
<p style="margin-left:41px;">Payment Amount: <b><?php echo $totalamount ?></b></p>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -1238,7 +1238,7 @@ $(function() {
|
|||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="treeview">
|
<li class="treeview">
|
||||||
<a href="<?php echo base_url(); ?>Bankingstatement">
|
<a href="<?php echo base_url(); ?>Bankamountreceived">
|
||||||
<i class="fa fa-credit-card"></i>
|
<i class="fa fa-credit-card"></i>
|
||||||
<span>Amount Recived Reports(Inv)</span>
|
<span>Amount Recived Reports(Inv)</span>
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user