need to single view for mapping amount
This commit is contained in:
parent
59b0f97640
commit
7279263985
@ -1407,6 +1407,77 @@ class cashbook extends BaseController
|
|||||||
$this->loadViews("bankamountpaid", $this->global,$data, NULL);
|
$this->loadViews("bankamountpaid", $this->global,$data, NULL);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
public function amountpaidcashbook()
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
$this->global['pageTitle'] = 'Siddharth : Bank Report - Amount Payment Details';
|
||||||
|
//$suppliername= $_GET['sid'];
|
||||||
|
if ($this->input->post('btn_submit'))
|
||||||
|
{
|
||||||
|
|
||||||
|
$ab=$this->input->post('financialyear');
|
||||||
|
$fa=substr($ab,0,-5);
|
||||||
|
$aa=substr($ab,5,5);
|
||||||
|
$m=$this->input->post('month');
|
||||||
|
$fdate = $this->input->post('from_date');
|
||||||
|
$tdate = $this->input->post('to_date');
|
||||||
|
$accountcode= $this->input->post('accountcode');
|
||||||
|
$data['accountcode']= $accountcode;
|
||||||
|
$accountname= $this->input->post('accountname');
|
||||||
|
$data['accountname']=$accountname;
|
||||||
|
|
||||||
|
$data['bankmappingcash'] = $this->cashbook_model->mappingcashfilter($accountcode,$fa,$aa,$m,$fdate,$tdate);
|
||||||
|
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$accountcode= $_GET['ac'];
|
||||||
|
$data['accountcode']= $accountcode;
|
||||||
|
$accountname= $_GET['an'];
|
||||||
|
$data['accountname']=$accountname;
|
||||||
|
$data['bankmappingcash'] = $this->cashbook_model->mappingcash($accountcode);
|
||||||
|
}
|
||||||
|
$data['finyear']=$this->cashbook_model->report_cashbook();
|
||||||
|
$this->loadViews("banksettlementcash", $this->global,$data, NULL);
|
||||||
|
|
||||||
|
}
|
||||||
|
public function amountreceivedcashbook()
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
$this->global['pageTitle'] = 'Siddharth : Bank Report - Amount Payment Details';
|
||||||
|
//$suppliername= $_GET['sid'];
|
||||||
|
if ($this->input->post('btn_submit'))
|
||||||
|
{
|
||||||
|
|
||||||
|
$ab=$this->input->post('financialyear');
|
||||||
|
$fa=substr($ab,0,-5);
|
||||||
|
$aa=substr($ab,5,5);
|
||||||
|
$m=$this->input->post('month');
|
||||||
|
$fdate = $this->input->post('from_date');
|
||||||
|
$tdate = $this->input->post('to_date');
|
||||||
|
$accountcode= $this->input->post('accountcode');
|
||||||
|
$data['accountcode']= $accountcode;
|
||||||
|
$accountname= $this->input->post('accountname');
|
||||||
|
$data['accountname']=$accountname;
|
||||||
|
|
||||||
|
$data['bankmappingcash'] = $this->cashbook_model->mappingcashreceivedfilter($accountcode,$fa,$aa,$m,$fdate,$tdate);
|
||||||
|
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$accountcode= $_GET['ac'];
|
||||||
|
$data['accountcode']= $accountcode;
|
||||||
|
$accountname= $_GET['an'];
|
||||||
|
$data['accountname']=$accountname;
|
||||||
|
$data['bankmappingcash'] = $this->cashbook_model->mappingcashreceived($accountcode);
|
||||||
|
}
|
||||||
|
$data['finyear']=$this->cashbook_model->report_cashbook();
|
||||||
|
$this->loadViews("banksettlementcredit", $this->global,$data, NULL);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
public function amountreceivednew()
|
public function amountreceivednew()
|
||||||
{
|
{
|
||||||
|
|
||||||
@ -1444,12 +1515,14 @@ class cashbook extends BaseController
|
|||||||
$fdate = $this->input->post('from_date');
|
$fdate = $this->input->post('from_date');
|
||||||
$tdate = $this->input->post('to_date');
|
$tdate = $this->input->post('to_date');
|
||||||
$data['bankdebitsupp'] = $this->cashbook_model->amountpaidsupplierwisefilter($fa,$aa,$m,$fdate,$tdate);
|
$data['bankdebitsupp'] = $this->cashbook_model->amountpaidsupplierwisefilter($fa,$aa,$m,$fdate,$tdate);
|
||||||
|
$data['amountpaidcashbook']=$this->cashbook_model->amountpaidcashbookfilter($fa,$aa,$m,$fdate,$tdate);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
||||||
$data['bankdebitsupp'] = $this->cashbook_model->amountpaidsupplierwise();
|
$data['bankdebitsupp'] = $this->cashbook_model->amountpaidsupplierwise();
|
||||||
//$data['bankcashbook'] =$this->cashbook_model->amountpaidcashbook();
|
$data['amountpaidcashbook']=$this->cashbook_model->amountpaidcashbook();
|
||||||
|
|
||||||
}
|
}
|
||||||
$data['finyear']=$this->cashbook_model->report_amountpaid();
|
$data['finyear']=$this->cashbook_model->report_amountpaid();
|
||||||
$data['supplier'] = $this->cashbook_model->getsupplier();
|
$data['supplier'] = $this->cashbook_model->getsupplier();
|
||||||
@ -1564,10 +1637,12 @@ class cashbook extends BaseController
|
|||||||
$tdate = $this->input->post('to_date');
|
$tdate = $this->input->post('to_date');
|
||||||
|
|
||||||
$data['amountreceivedsupplier'] = $this->cashbook_model->creditinvoicewisefilter($fdate,$tdate,$fa,$aa,$m);
|
$data['amountreceivedsupplier'] = $this->cashbook_model->creditinvoicewisefilter($fdate,$tdate,$fa,$aa,$m);
|
||||||
|
$data['amountpaidcashbook']=$this->cashbook_model->amountreceivedcashbookfilter($fa,$aa,$m,$fdate,$tdate);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$data['amountreceivedsupplier'] = $this->cashbook_model->creditinvoicesupplierwise();
|
$data['amountreceivedsupplier'] = $this->cashbook_model->creditinvoicesupplierwise();
|
||||||
|
$data['amountpaidcashbook']=$this->cashbook_model->amountreceivedcashbook();
|
||||||
}
|
}
|
||||||
$data['finyear']=$this->cashbook_model->report_finyearamountreceived();
|
$data['finyear']=$this->cashbook_model->report_finyearamountreceived();
|
||||||
$data['getcustomer'] = $this->cashbook_model->getcustomer();
|
$data['getcustomer'] = $this->cashbook_model->getcustomer();
|
||||||
|
|||||||
2353
application/logs/log-2018-10-30.php
Normal file
2353
application/logs/log-2018-10-30.php
Normal file
File diff suppressed because it is too large
Load Diff
@ -319,6 +319,21 @@ GROUP BY financial_year";
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
function report_cashbook(){
|
||||||
|
|
||||||
|
|
||||||
|
$sql="SELECT
|
||||||
|
CASE WHEN MONTH(date)>=4 THEN
|
||||||
|
concat(YEAR(date), '-',YEAR(date)+1)
|
||||||
|
ELSE concat(YEAR(date)-1,'-', YEAR(date)) END AS financial_year
|
||||||
|
FROM t_income_expense
|
||||||
|
GROUP BY financial_year";
|
||||||
|
$query = $this->db->query($sql);
|
||||||
|
return $query->result();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
function report_finyearunpaid(){
|
function report_finyearunpaid(){
|
||||||
|
|
||||||
@ -1220,18 +1235,98 @@ function receiptdata()
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function mappingcash($SupplierName,$fdate,$tdate,$bankid)
|
function mappingcash($accountcode)
|
||||||
{
|
{
|
||||||
$this->db->select('ie.id,ie.date,ie.bankid,ie.cashtype,ie.amounttype,ie.total,ac.name,totalbankamount,ie.id');
|
$this->db->select('ie.date,ie.bankid,ie.cashtype,ie.amounttype,ie.total,ac.name,totalbankamount,ie.id');
|
||||||
$this->db->from ('t_income_expense as ie');
|
$this->db->from ('t_income_expense as ie');
|
||||||
$this->db->join ('t_accountcode ac ','ac.code = ie.account_code','left');
|
$this->db->join ('t_accountcode ac ','ac.code = ie.account_code','left');
|
||||||
$this->db->where('bankid',$bankid);
|
$this->db->where('ie.account_code',$accountcode);
|
||||||
|
$this->db->where('ie.amounttype','DEBIT');
|
||||||
$this->db->where('IsActive',1);
|
$this->db->where('IsActive',1);
|
||||||
//$this->db->group_by('mid');
|
//$this->db->group_by('mid');
|
||||||
$query = $this->db->get();
|
$query = $this->db->get();
|
||||||
return $query->result();
|
return $query->result();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
function mappingcashreceived($accountcode)
|
||||||
|
{
|
||||||
|
$this->db->select('ie.date,ie.bankid,ie.cashtype,ie.amounttype,ie.total,ac.name,totalbankamount,ie.id');
|
||||||
|
$this->db->from ('t_income_expense as ie');
|
||||||
|
$this->db->join ('t_accountcode ac ','ac.code = ie.account_code','left');
|
||||||
|
$this->db->where('ie.account_code',$accountcode);
|
||||||
|
$this->db->where('ie.amounttype','CREDIT');
|
||||||
|
$this->db->where('IsActive',1);
|
||||||
|
//$this->db->group_by('mid');
|
||||||
|
$query = $this->db->get();
|
||||||
|
return $query->result();
|
||||||
|
|
||||||
|
}
|
||||||
|
function mappingcashfilter($accountcode,$fa,$aa,$m,$fdate,$tdate)
|
||||||
|
{
|
||||||
|
$this->db->select('ie.date,ie.bankid,ie.cashtype,ie.amounttype,ie.total,ac.name,totalbankamount,ie.id');
|
||||||
|
$this->db->from ('t_income_expense as ie');
|
||||||
|
$this->db->join ('t_accountcode ac ','ac.code = ie.account_code','left');
|
||||||
|
$this->db->where('ie.account_code',$accountcode);
|
||||||
|
$this->db->where('ie.amounttype','DEBIT');
|
||||||
|
$this->db->where('IsActive',1);
|
||||||
|
if ($fa and $aa != ''){
|
||||||
|
|
||||||
|
//$sql.=" and (im.CreatedDate >= '".$fa."-04-01' and im.CreatedDate <= '".$aa."-03-31')";
|
||||||
|
$year="(ie.date >= '".$fa."-04-01' and ie.date <= '".$aa."-03-31')";
|
||||||
|
$this->db->where($year);
|
||||||
|
}
|
||||||
|
if ($m!= ''){
|
||||||
|
//$this->db->where('MONTH(pel.tgl_pembelian)',$bulan);
|
||||||
|
$month="monthname(ie.date) = '".$m."'";
|
||||||
|
$this->db->where($month);
|
||||||
|
// $sql.="and monthname(bm.Podate) = '".$m."'";
|
||||||
|
|
||||||
|
}
|
||||||
|
if ($fdate and $tdate != ''){
|
||||||
|
$fromdate= date("Y-m-d",strtotime($fdate));
|
||||||
|
$todate=date("Y-m-d",strtotime($tdate));
|
||||||
|
$date = "date(ie.date) >= '".$fromdate."'
|
||||||
|
and date(ie.date) <= '".$todate."'";
|
||||||
|
$this->db->where($date);
|
||||||
|
}
|
||||||
|
|
||||||
|
$query = $this->db->get();
|
||||||
|
return $query->result();
|
||||||
|
|
||||||
|
}
|
||||||
|
function mappingcashreceivedfilter($accountcode,$fa,$aa,$m,$fdate,$tdate)
|
||||||
|
{
|
||||||
|
$this->db->select('ie.date,ie.bankid,ie.cashtype,ie.amounttype,ie.total,ac.name,totalbankamount,ie.id');
|
||||||
|
$this->db->from ('t_income_expense as ie');
|
||||||
|
$this->db->join ('t_accountcode ac ','ac.code = ie.account_code','left');
|
||||||
|
$this->db->where('ie.account_code',$accountcode);
|
||||||
|
$this->db->where('ie.amounttype','CREDIT');
|
||||||
|
$this->db->where('IsActive',1);
|
||||||
|
if ($fa and $aa != ''){
|
||||||
|
|
||||||
|
//$sql.=" and (im.CreatedDate >= '".$fa."-04-01' and im.CreatedDate <= '".$aa."-03-31')";
|
||||||
|
$year="(ie.date >= '".$fa."-04-01' and ie.date <= '".$aa."-03-31')";
|
||||||
|
$this->db->where($year);
|
||||||
|
}
|
||||||
|
if ($m!= ''){
|
||||||
|
//$this->db->where('MONTH(pel.tgl_pembelian)',$bulan);
|
||||||
|
$month="monthname(ie.date) = '".$m."'";
|
||||||
|
$this->db->where($month);
|
||||||
|
// $sql.="and monthname(bm.Podate) = '".$m."'";
|
||||||
|
|
||||||
|
}
|
||||||
|
if ($fdate and $tdate != ''){
|
||||||
|
$fromdate= date("Y-m-d",strtotime($fdate));
|
||||||
|
$todate=date("Y-m-d",strtotime($tdate));
|
||||||
|
$date = "date(ie.date) >= '".$fromdate."'
|
||||||
|
and date(ie.date) <= '".$todate."'";
|
||||||
|
$this->db->where($date);
|
||||||
|
}
|
||||||
|
|
||||||
|
$query = $this->db->get();
|
||||||
|
return $query->result();
|
||||||
|
|
||||||
|
}
|
||||||
function newcashbook()
|
function newcashbook()
|
||||||
{
|
{
|
||||||
$this->db->select('cdate,mid,btype,amount,boption,mappingamount,totalamount,amounttype,alreadycreditpaid');
|
$this->db->select('cdate,mid,btype,amount,boption,mappingamount,totalamount,amounttype,alreadycreditpaid');
|
||||||
@ -1499,6 +1594,67 @@ function receiptdata()
|
|||||||
return $query->result();
|
return $query->result();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
function amountpaidcashbook()
|
||||||
|
{
|
||||||
|
$this->db->select('tac.name,tie.total,tie.account_code');
|
||||||
|
$this->db->from ('t_income_expense tie');
|
||||||
|
$this->db->join('t_accountcode tac','tac.code=tie.account_code');
|
||||||
|
$this->db->where('tie.amounttype','DEBIT');
|
||||||
|
$this->db->where('tie.IsActive',1);
|
||||||
|
//$this->db->where('t_income_expense.account_code !=','ADV001');
|
||||||
|
$this->db->group_by('tie.account_code');
|
||||||
|
$query = $this->db->get();
|
||||||
|
return $query->result();
|
||||||
|
|
||||||
|
}
|
||||||
|
function amountreceivedcashbook()
|
||||||
|
{
|
||||||
|
$this->db->select('tac.name,tie.total,tie.account_code');
|
||||||
|
$this->db->from ('t_income_expense tie');
|
||||||
|
$this->db->join('t_accountcode tac','tac.code=tie.account_code');
|
||||||
|
$this->db->where('tie.amounttype','CREDIT');
|
||||||
|
$this->db->where('tie.IsActive',1);
|
||||||
|
//$this->db->where('t_income_expense.account_code !=','ADV001');
|
||||||
|
$this->db->group_by('tie.account_code');
|
||||||
|
$query = $this->db->get();
|
||||||
|
return $query->result();
|
||||||
|
|
||||||
|
}
|
||||||
|
function amountpaidcashbookfilter($fa,$aa,$m,$fdate,$tdate)
|
||||||
|
{
|
||||||
|
$this->db->select('tac.name,tie.total,tie.account_code');
|
||||||
|
$this->db->from ('t_income_expense tie');
|
||||||
|
$this->db->join('t_accountcode tac','tac.code=tie.account_code');
|
||||||
|
$this->db->where('tie.amounttype','CREDIT');
|
||||||
|
$this->db->where('tie.IsActive',1);
|
||||||
|
//$this->db->where('t_income_expense.account_code !=','ADV001');
|
||||||
|
if ($fa and $aa != ''){
|
||||||
|
|
||||||
|
//$sql.=" and (im.CreatedDate >= '".$fa."-04-01' and im.CreatedDate <= '".$aa."-03-31')";
|
||||||
|
$year="(tie.date >= '".$fa."-04-01' and tie.date <= '".$aa."-03-31')";
|
||||||
|
$this->db->where($year);
|
||||||
|
}
|
||||||
|
if ($m!= ''){
|
||||||
|
//$this->db->where('MONTH(pel.tgl_pembelian)',$bulan);
|
||||||
|
$month="monthname(tie.date) = '".$m."'";
|
||||||
|
$this->db->where($month);
|
||||||
|
// $sql.="and monthname(bm.Podate) = '".$m."'";
|
||||||
|
|
||||||
|
}
|
||||||
|
if ($fdate and $tdate != ''){
|
||||||
|
$fromdate= date("Y-m-d",strtotime($fdate));
|
||||||
|
$todate=date("Y-m-d",strtotime($tdate));
|
||||||
|
$date = "date(tie.date) >= '".$fromdate."'
|
||||||
|
and date(tie.date) <= '".$todate."'";
|
||||||
|
$this->db->where($date);
|
||||||
|
}
|
||||||
|
|
||||||
|
$this->db->group_by('tie.account_code');
|
||||||
|
$query = $this->db->get();
|
||||||
|
return $query->result();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
function amountpaidsupplierwisefilter($fa,$aa,$m,$fdate,$tdate)
|
function amountpaidsupplierwisefilter($fa,$aa,$m,$fdate,$tdate)
|
||||||
{
|
{
|
||||||
$this->db->select('bm.id,bm.mid,bm.PONO,bm.Suppliername,bm.SupplierID,sum(bm.Totalpoamount)as Totalpoamount,
|
$this->db->select('bm.id,bm.mid,bm.PONO,bm.Suppliername,bm.SupplierID,sum(bm.Totalpoamount)as Totalpoamount,
|
||||||
|
|||||||
@ -14,11 +14,12 @@ foreach($financialyear as $item)
|
|||||||
float: right;
|
float: right;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
}
|
}
|
||||||
.dataTables_paginate {
|
.dataTables_paginate
|
||||||
|
{
|
||||||
width: 50%;
|
width: 50%;
|
||||||
float: right;
|
float: right;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
}
|
}
|
||||||
div.dt-buttons {
|
div.dt-buttons {
|
||||||
position: relative;
|
position: relative;
|
||||||
float: right;
|
float: right;
|
||||||
@ -41,6 +42,35 @@ foreach($financialyear as $item)
|
|||||||
</div>
|
</div>
|
||||||
<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>Sundry Debitors</b></p></h3></center>
|
<center><h3 class="box-title"><p style="color:#3c8dbc"><b>Sundry Debitors</b></p></h3></center>
|
||||||
|
<?php
|
||||||
|
$totpo=0;
|
||||||
|
|
||||||
|
if(!empty($bankdebitsupp)){
|
||||||
|
foreach($bankdebitsupp as $t)
|
||||||
|
{
|
||||||
|
$potot=$t->Amountpaid;
|
||||||
|
$totpo=$potot+$totpo;
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$totcash=0;
|
||||||
|
|
||||||
|
if(!empty($amountpaidcashbook)){
|
||||||
|
foreach($amountpaidcashbook as $c)
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
$cashtot=$c->total;
|
||||||
|
$totcash=$cashtot+$totcash;
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
$totalmappedamount=$totpo+$totcash;
|
||||||
|
?>
|
||||||
|
|
||||||
|
<center class="box-title"><p style="color:#333FFF"><b>Mapped Amount : Rs <?php echo $totalmappedamount; ?></b></p></center>
|
||||||
<div class="box-body">
|
<div class="box-body">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<!-- <div class="col-md-3" style=" border: 2px solid black;font-size:14px;background-color:#ccc;">-->
|
<!-- <div class="col-md-3" style=" border: 2px solid black;font-size:14px;background-color:#ccc;">-->
|
||||||
@ -152,7 +182,7 @@ foreach($financialyear as $item)
|
|||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
||||||
<th>Supplier Name</th>
|
<th style="width:50%;">Supplier Name</th>
|
||||||
<th>Paid Amount (₹)</th>
|
<th>Paid Amount (₹)</th>
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
@ -202,70 +232,61 @@ foreach($financialyear as $item)
|
|||||||
|
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
</table>
|
</table>
|
||||||
|
<center><h3 class="box-title"><p style="color:#3c8dbc"><b>CashBook</b></p></h3></center>
|
||||||
|
<table class="table table-bordered table-hover" id="req1" style="table-layout:auto;">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
|
||||||
|
<th style="width:50%;">Account Name</th>
|
||||||
|
<th>Paid Amount(₹)</th>
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<?php
|
||||||
|
$tot_amountcash=0;
|
||||||
|
$ti=0.00;
|
||||||
|
$tvt=0.00;
|
||||||
|
if(!empty($amountpaidcashbook)){
|
||||||
|
foreach($amountpaidcashbook as $c)
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
$rate=$c->total;
|
||||||
|
$accountname=$c->name;
|
||||||
|
|
||||||
|
|
||||||
|
?>
|
||||||
|
<tr>
|
||||||
|
|
||||||
|
<td align="left" id="sn<?php echo $i ?>" ><a href="<?= base_url() ?>cashbook/amountpaidcashbook?ac=<?php echo $c->account_code;?>&an=<?php echo $accountname ?>"><span><?php echo $accountname?></span></a></td>
|
||||||
|
<td align="left" id="tov<?php echo $i ?>" ><span><?php $tot_amountcash=$tot_amountcash+round($rate)?><?php echo round($rate,2)?></span></td>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
<?php
|
||||||
|
$i++;
|
||||||
|
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</tbody>
|
||||||
|
<tfoot width="100%">
|
||||||
|
<tr>
|
||||||
|
<td style="text-align:left;"><strong>Total</strong></td>
|
||||||
|
|
||||||
|
|
||||||
|
<td class="amount"><strong>
|
||||||
|
<?php echo $tot_amountcash; ?>
|
||||||
|
</strong></td>
|
||||||
|
</tr>
|
||||||
|
</tfoot>
|
||||||
|
|
||||||
|
<?php } ?>
|
||||||
|
</table>
|
||||||
|
|
||||||
<!--<center><h3 class="box-title"><p style="color:#3c8dbc"><b>Cashbook</b></p></h3></center>
|
|
||||||
|
|
||||||
<br>
|
|
||||||
<br>
|
|
||||||
<table class="table table-bordered table-hover" id="req1" style="table-layout:auto;">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
|
|
||||||
<th>Supplier Name</th>
|
|
||||||
<th>Paid Amount (₹)</th>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
<?php
|
|
||||||
$tot_amount=0;
|
|
||||||
$ti=0.00;
|
|
||||||
$tvt=0.00;
|
|
||||||
if(!empty($bankdebitsupp)){
|
|
||||||
foreach($bankdebitsupp as $t)
|
|
||||||
{
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$rate=$t->Amountpaid;
|
|
||||||
$supplierid=$t->SupplierID;
|
|
||||||
|
|
||||||
|
|
||||||
?>
|
|
||||||
<tr>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<td align="left" id="sn<?php echo $i ?>" ><a href="<?= base_url() ?>cashbook/amountpaid?sid=<?php echo $t->SupplierID;?>&sn=<?php echo $t->Suppliername ?>"><span><?php echo $t->Suppliername?></span></a></td>
|
|
||||||
<td align="left" id="tov<?php echo $i ?>" ><span><?php $tot_amount=$tot_amount+round($rate)?><?php echo round($rate,2)?></span></td>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
<?php
|
|
||||||
$i++;
|
|
||||||
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</tbody>
|
|
||||||
<tfoot width="100%">
|
|
||||||
<tr>
|
|
||||||
<td style="text-align:left;"><strong>Total</strong></td>
|
|
||||||
|
|
||||||
|
|
||||||
<td class="amount"><strong>
|
|
||||||
<?php echo $tot_amount; ?>
|
|
||||||
</strong></td>
|
|
||||||
</tr>
|
|
||||||
</tfoot>
|
|
||||||
|
|
||||||
<?php } ?>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div><!-- /.box -->
|
|
||||||
</div><!-- /.col -->
|
</div><!-- /.col -->
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
@ -333,7 +354,7 @@ foreach($financialyear as $item)
|
|||||||
extend: 'excelHtml5',
|
extend: 'excelHtml5',
|
||||||
footer: 'true',
|
footer: 'true',
|
||||||
messageTop: $('h3').text(),
|
messageTop: $('h3').text(),
|
||||||
title: 'Unpaid Purchase Order Report',
|
title: 'paid Purchase Order Report',
|
||||||
exportOptions: {
|
exportOptions: {
|
||||||
columns: ':visible'
|
columns: ':visible'
|
||||||
}
|
}
|
||||||
@ -356,7 +377,7 @@ $(document).ready(function() {
|
|||||||
extend: 'excelHtml5',
|
extend: 'excelHtml5',
|
||||||
footer: 'true',
|
footer: 'true',
|
||||||
messageTop: $('h3').text(),
|
messageTop: $('h3').text(),
|
||||||
title: 'Unpaid Purchase Order Report',
|
title: 'paid Cashbook Report',
|
||||||
exportOptions: {
|
exportOptions: {
|
||||||
columns: ':visible'
|
columns: ':visible'
|
||||||
}
|
}
|
||||||
|
|||||||
@ -36,11 +36,44 @@ foreach($financialyear as $item)
|
|||||||
<!-- TABLE: LATEST ORDERS -->
|
<!-- TABLE: LATEST ORDERS -->
|
||||||
<div class="box box-info" id="content">
|
<div class="box box-info" id="content">
|
||||||
<br>
|
<br>
|
||||||
<div class="col-md-1 col-md-offset-11">
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<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>Sundry Debitors</b></p></h3></center>
|
<center><h3 class="box-title"><p style="color:#3c8dbc"><b>Sundry Debitors</b></p></h3></center>
|
||||||
|
<?php
|
||||||
|
$totiv=0;
|
||||||
|
|
||||||
|
if(!empty($amountreceivedsupplier)){
|
||||||
|
foreach($amountreceivedsupplier as $t)
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
$ivtot=$t->amountreceived;
|
||||||
|
$totiv=$ivtot+$totiv;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$totcash=0;
|
||||||
|
|
||||||
|
if(!empty($amountpaidcashbook)){
|
||||||
|
foreach($amountpaidcashbook as $c)
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
$ivcash=$c->total;
|
||||||
|
$totcash= $totcash+$ivcash;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
$totalmappedamount=$totiv+$totcash;
|
||||||
|
?>
|
||||||
|
|
||||||
|
<center class="box-title"><p style="color:#333FFF"><b>Mapped Amount : Rs <?php echo $totalmappedamount; ?></b></p></center>
|
||||||
|
|
||||||
<div class="box-body">
|
<div class="box-body">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<!-- <div class="col-md-3" style=" border: 2px solid black;font-size:14px;background-color:#ccc;">-->
|
<!-- <div class="col-md-3" style=" border: 2px solid black;font-size:14px;background-color:#ccc;">-->
|
||||||
@ -154,7 +187,7 @@ foreach($financialyear as $item)
|
|||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
||||||
<th>Supplier Name</th>
|
<th style="width:50%;">Supplier Name</th>
|
||||||
<th>Paid Amount (₹)</th>
|
<th>Paid Amount (₹)</th>
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
@ -204,6 +237,59 @@ foreach($financialyear as $item)
|
|||||||
|
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
</table>
|
</table>
|
||||||
|
<center><h3 class="box-title"><p style="color:#3c8dbc"><b>CashBook</b></p></h3></center>
|
||||||
|
<table class="table table-bordered table-hover" id="req1" style="table-layout:auto;">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
|
||||||
|
<th style="width:50%;">Account Name</th>
|
||||||
|
<th>Paid Amount(₹)</th>
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<?php
|
||||||
|
$tot_amountcash=0;
|
||||||
|
$ti=0.00;
|
||||||
|
$tvt=0.00;
|
||||||
|
if(!empty($amountpaidcashbook)){
|
||||||
|
foreach($amountpaidcashbook as $c)
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
$rate=$c->total;
|
||||||
|
$accountname=$c->name;
|
||||||
|
|
||||||
|
|
||||||
|
?>
|
||||||
|
<tr>
|
||||||
|
|
||||||
|
<td align="left" id="sn<?php echo $i ?>" ><a href="<?= base_url() ?>cashbook/amountreceivedcashbook?ac=<?php echo $c->account_code;?>&an=<?php echo $accountname ?>"><span><?php echo $accountname?></span></a></td>
|
||||||
|
<td align="left" id="tov<?php echo $i ?>" ><span><?php $tot_amountcash=$tot_amountcash+round($rate)?><?php echo round($rate,2)?></span></td>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
<?php
|
||||||
|
$i++;
|
||||||
|
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</tbody>
|
||||||
|
<tfoot width="100%">
|
||||||
|
<tr>
|
||||||
|
<td style="text-align:left;"><strong>Total</strong></td>
|
||||||
|
|
||||||
|
|
||||||
|
<td class="amount"><strong>
|
||||||
|
<?php echo $tot_amountcash; ?>
|
||||||
|
</strong></td>
|
||||||
|
</tr>
|
||||||
|
</tfoot>
|
||||||
|
|
||||||
|
<?php } ?>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
443
application/views/banksettlementcash.php
Normal file
443
application/views/banksettlementcash.php
Normal file
@ -0,0 +1,443 @@
|
|||||||
|
|
||||||
|
|
||||||
|
<?php
|
||||||
|
|
||||||
|
|
||||||
|
if(!empty($mapping))
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
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">
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<!-- 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()); ?>">
|
||||||
|
|
||||||
|
|
||||||
|
<div class="box-body">
|
||||||
|
<div class="col-md-1 col-md-offset-11">
|
||||||
|
<a href="<?php base_url() ?>amountpaidsupplier" 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>Cashbook Reports</b></p></h3></center>
|
||||||
|
<center><h4 style="color:#3c8dbc"><span><?php echo $accountname;?></span></h4></center>
|
||||||
|
<div class="box-body">
|
||||||
|
<div class="row">
|
||||||
|
<!-- <div class="col-md-3" style=" border: 2px solid black;font-size:14px;background-color:#ccc;">-->
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-6 col-xs-6">
|
||||||
|
|
||||||
|
<input type="hidden" class="form-control required" id="accountcode" name="accountcode" value="<?php echo $accountcode;?>" ></textarea>
|
||||||
|
<input type="hidden" class="form-control required" id="accountname" name="accountname" value="<?php echo $accountname;?>" ></textarea>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<!-- <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-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">
|
||||||
|
<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-2">
|
||||||
|
<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-2">
|
||||||
|
<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" 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 Payments">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
|
||||||
|
<br>
|
||||||
|
<table class="table table-bordered table-hover" id="req" style="table-layout:auto;">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
|
||||||
|
<th>Date</th>
|
||||||
|
<th>Account Name</th>
|
||||||
|
<!-- <th>Bankid</th>-->
|
||||||
|
<!--<th>Amount Type</th>-->
|
||||||
|
<th>Total Amount (₹)</th>
|
||||||
|
<!--<th>Advance PO Amount (₹)</th>-->
|
||||||
|
<!--<th>Option (₹)</th>-->
|
||||||
|
<!--<th>Action</th>-->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<?php
|
||||||
|
$tot_amount=0;
|
||||||
|
$i=1;
|
||||||
|
$ti=0.00;
|
||||||
|
$tvt=0.00;
|
||||||
|
if(!empty($bankmappingcash)){
|
||||||
|
|
||||||
|
foreach($bankmappingcash as $mc)
|
||||||
|
{
|
||||||
|
$id=$mc->id;
|
||||||
|
$rate=$mc->total;
|
||||||
|
?>
|
||||||
|
<tr>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<td align="left" id="date<?php echo $i ?>"><span><?php echo $mc->date?></span></td>
|
||||||
|
<td align="left" id="date<?php echo $i ?>"><span><?php echo $mc->name?></span></td>
|
||||||
|
<!--<td align="left" id="sn<?php echo $i ?>"><span><?php echo $mc->bankid?></span></td>-->
|
||||||
|
<!--<td align="left" id="tov<?php echo $i ?>"><span><?php echo $mc->amounttype?></span></td>-->
|
||||||
|
<td align="left" id="aa<?php echo $i ?>"><span><?php $tot_amount=$tot_amount+round($rate);?> <?php echo round($rate,2)?></span></td>
|
||||||
|
<!--<td align="left" id="aa<?php echo $i ?>"><span><?php echo $mc->cashtype?></span></td>-->
|
||||||
|
<!--<td>
|
||||||
|
<a data-toggle="tooltip" href="<?php echo base_url().'cashbook/Deletemappingcashbook?bankid='.$mc->bankid; ?>&amount=<?php echo $mc->total?>&id=<?php echo $id?>&balancetoclear=<?php echo $balancetoclear?>&bankamount=<?php echo $bankamount?>&accountname=<?php echo $mc->name?>&amounttype=<?php echo $mc->amounttype?>"><i class="fa fa-trash" data-toggle="tooltip" title="<?php echo $record->AdjustmentId; ?> - Click here to Delete details"></i> </a>
|
||||||
|
</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>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- /.box -->
|
||||||
|
</div>
|
||||||
|
<!-- /.col -->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<!-- <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>
|
||||||
|
|
||||||
|
function pono(i)
|
||||||
|
{
|
||||||
|
var igrno=$('#igrno'+i).text();
|
||||||
|
var pono =$('#pono'+i).text();
|
||||||
|
// alert(igrno);
|
||||||
|
// alert(pono);
|
||||||
|
// return false;
|
||||||
|
$("#Fileshow").modal('show');
|
||||||
|
$.ajax(
|
||||||
|
|
||||||
|
{
|
||||||
|
data:{igrno:igrno,pono:pono},
|
||||||
|
type:"POST",
|
||||||
|
url:"<?php echo base_url() ?>cashbook/filelist",
|
||||||
|
success:function(data)
|
||||||
|
{
|
||||||
|
|
||||||
|
var trHTML = '';
|
||||||
|
$.each($.parseJSON(data),function (i, item) {
|
||||||
|
i=i+1;
|
||||||
|
trHTML += '<tr>' +
|
||||||
|
'<td align="right">' + i + '</td>' +
|
||||||
|
|
||||||
|
'<td>' + item.BillNo+ '</td>' +
|
||||||
|
'<td>' + item.PONO+ '</td>' +
|
||||||
|
|
||||||
|
'<td><a target="_blank" href = <?php echo base_url()?>uploads/BillFiles/'+item.FilePath+'>'+ item.FilePath +'</a></td>' +
|
||||||
|
|
||||||
|
// '<td>' +item.FilePath+"<?php echo base_url().'uploads/BillFiles/'?>"> +'</td>'
|
||||||
|
|
||||||
|
'</tr>';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
$("#tbleAppend1").empty();
|
||||||
|
$('#Inwardgateregistertable1 > tbody').append(trHTML);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
|
$(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 igrno(i)
|
||||||
|
{
|
||||||
|
var igrno=$('#igrno'+i).text();
|
||||||
|
var pono =$('#pono'+i).text();
|
||||||
|
$("#Fileshow").modal('show');
|
||||||
|
$.ajax(
|
||||||
|
|
||||||
|
{
|
||||||
|
data:{igrno:igrno,pono:pono},
|
||||||
|
type:"POST",
|
||||||
|
url:"<?php echo base_url() ?>cashbook/IGRFilelist",
|
||||||
|
success:function(data)
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
var trHTML = '';
|
||||||
|
var FilePath ='';
|
||||||
|
var Filename = '';
|
||||||
|
var PONO ='';
|
||||||
|
var BillNO ='';
|
||||||
|
|
||||||
|
$.each($.parseJSON(data),function (i, item) {
|
||||||
|
|
||||||
|
if(item.file ==null)
|
||||||
|
{ if(item.Remarks ==null)
|
||||||
|
{
|
||||||
|
//alert()
|
||||||
|
PONO =item.PONO;
|
||||||
|
BillNO =item.BillNo;
|
||||||
|
Filename =item.FilePath;
|
||||||
|
FilePath = "<?php echo base_url()?>uploads/Igrfiles/"+item.FilePath;
|
||||||
|
}else{
|
||||||
|
Filename ="BillDetails";
|
||||||
|
PONO =item.PONO;
|
||||||
|
BillNO =item.BillNo;
|
||||||
|
FilePath = item.FilePath;
|
||||||
|
}
|
||||||
|
|
||||||
|
}else{
|
||||||
|
Filename = item.file;
|
||||||
|
PONO =item.pono;
|
||||||
|
BillNO = '-';
|
||||||
|
FilePath ="<?php echo base_url()?>"+item.file;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if(Filename != null)
|
||||||
|
{
|
||||||
|
i=i+1;
|
||||||
|
i=i-1;
|
||||||
|
trHTML += '<tr id='+i+'>' +
|
||||||
|
'<td align="right">' + i + '</td>' +
|
||||||
|
'<td id="billno'+i+'">' + BillNO+ '</td>' +
|
||||||
|
'<td>' + PONO+ '</td>' +
|
||||||
|
|
||||||
|
'<td id="file'+i+'"><a target="_blank" href = '+FilePath+'>'+ Filename +'</a></td>' +
|
||||||
|
|
||||||
|
// '<td name="filepathname" id="filepathname" onclick="openbillmodel('+i+');"><i class="fa fa-pencil"></i></td>' +
|
||||||
|
'</tr>';
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
$("#tbleAppend1").empty();
|
||||||
|
$('#Inwardgateregistertable1 > tbody').append(trHTML);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
|
</script>
|
||||||
444
application/views/banksettlementcredit.php
Normal file
444
application/views/banksettlementcredit.php
Normal file
@ -0,0 +1,444 @@
|
|||||||
|
|
||||||
|
|
||||||
|
<?php
|
||||||
|
|
||||||
|
|
||||||
|
if(!empty($mapping))
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
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">
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<!-- 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()); ?>">
|
||||||
|
|
||||||
|
|
||||||
|
<div class="box-body">
|
||||||
|
|
||||||
|
|
||||||
|
<form method="post" action="<?php echo base_url($this->uri->uri_string()); ?>">
|
||||||
|
<div class="col-md-1 col-md-offset-11">
|
||||||
|
<a href="<?php base_url() ?>bankreceivedsupp" class="btn btn-primary" value="Back"/>Back</a>
|
||||||
|
</div>
|
||||||
|
<center><h3 class="box-title"><p style="color:#3c8dbc"><b>Cashbook Reports</b></p></h3></center>
|
||||||
|
<center><h4 style="color:#3c8dbc"><span><?php echo $accountname;?></span></h4></center>
|
||||||
|
<div class="box-body">
|
||||||
|
<div class="row">
|
||||||
|
<!-- <div class="col-md-3" style=" border: 2px solid black;font-size:14px;background-color:#ccc;">-->
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-6 col-xs-6">
|
||||||
|
|
||||||
|
<input type="hidden" class="form-control required" id="accountcode" name="accountcode" value="<?php echo $accountcode;?>" ></textarea>
|
||||||
|
<input type="hidden" class="form-control required" id="accountname" name="accountname" value="<?php echo $accountname;?>" ></textarea>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<!-- <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-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">
|
||||||
|
<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-2">
|
||||||
|
<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-2">
|
||||||
|
<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" 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 Payments">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
|
||||||
|
<br>
|
||||||
|
<table class="table table-bordered table-hover" id="req" style="table-layout:auto;">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
|
||||||
|
<th>Date</th>
|
||||||
|
<th>Account Name</th>
|
||||||
|
<!-- <th>Bankid</th>-->
|
||||||
|
<!--<th>Amount Type</th>-->
|
||||||
|
<th>Total Amount (₹)</th>
|
||||||
|
<!--<th>Advance PO Amount (₹)</th>-->
|
||||||
|
<!--<th>Option (₹)</th>-->
|
||||||
|
<!--<th>Action</th>-->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<?php
|
||||||
|
$tot_amount=0;
|
||||||
|
$i=1;
|
||||||
|
$ti=0.00;
|
||||||
|
$tvt=0.00;
|
||||||
|
if(!empty($bankmappingcash)){
|
||||||
|
|
||||||
|
foreach($bankmappingcash as $mc)
|
||||||
|
{
|
||||||
|
$id=$mc->id;
|
||||||
|
$rate=$mc->total;
|
||||||
|
?>
|
||||||
|
<tr>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<td align="left" id="date<?php echo $i ?>"><span><?php echo $mc->date?></span></td>
|
||||||
|
<td align="left" id="date<?php echo $i ?>"><span><?php echo $mc->name?></span></td>
|
||||||
|
<!--<td align="left" id="sn<?php echo $i ?>"><span><?php echo $mc->bankid?></span></td>-->
|
||||||
|
<!--<td align="left" id="tov<?php echo $i ?>"><span><?php echo $mc->amounttype?></span></td>-->
|
||||||
|
<td align="left" id="aa<?php echo $i ?>"><span><?php $tot_amount=$tot_amount+round($rate);?> <?php echo round($rate,2)?></span></td>
|
||||||
|
<!--<td align="left" id="aa<?php echo $i ?>"><span><?php echo $mc->cashtype?></span></td>-->
|
||||||
|
<!--<td>
|
||||||
|
<a data-toggle="tooltip" href="<?php echo base_url().'cashbook/Deletemappingcashbook?bankid='.$mc->bankid; ?>&amount=<?php echo $mc->total?>&id=<?php echo $id?>&balancetoclear=<?php echo $balancetoclear?>&bankamount=<?php echo $bankamount?>&accountname=<?php echo $mc->name?>&amounttype=<?php echo $mc->amounttype?>"><i class="fa fa-trash" data-toggle="tooltip" title="<?php echo $record->AdjustmentId; ?> - Click here to Delete details"></i> </a>
|
||||||
|
</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>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- /.box -->
|
||||||
|
</div>
|
||||||
|
<!-- /.col -->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<!-- <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>
|
||||||
|
|
||||||
|
function pono(i)
|
||||||
|
{
|
||||||
|
var igrno=$('#igrno'+i).text();
|
||||||
|
var pono =$('#pono'+i).text();
|
||||||
|
// alert(igrno);
|
||||||
|
// alert(pono);
|
||||||
|
// return false;
|
||||||
|
$("#Fileshow").modal('show');
|
||||||
|
$.ajax(
|
||||||
|
|
||||||
|
{
|
||||||
|
data:{igrno:igrno,pono:pono},
|
||||||
|
type:"POST",
|
||||||
|
url:"<?php echo base_url() ?>cashbook/filelist",
|
||||||
|
success:function(data)
|
||||||
|
{
|
||||||
|
|
||||||
|
var trHTML = '';
|
||||||
|
$.each($.parseJSON(data),function (i, item) {
|
||||||
|
i=i+1;
|
||||||
|
trHTML += '<tr>' +
|
||||||
|
'<td align="right">' + i + '</td>' +
|
||||||
|
|
||||||
|
'<td>' + item.BillNo+ '</td>' +
|
||||||
|
'<td>' + item.PONO+ '</td>' +
|
||||||
|
|
||||||
|
'<td><a target="_blank" href = <?php echo base_url()?>uploads/BillFiles/'+item.FilePath+'>'+ item.FilePath +'</a></td>' +
|
||||||
|
|
||||||
|
// '<td>' +item.FilePath+"<?php echo base_url().'uploads/BillFiles/'?>"> +'</td>'
|
||||||
|
|
||||||
|
'</tr>';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
$("#tbleAppend1").empty();
|
||||||
|
$('#Inwardgateregistertable1 > tbody').append(trHTML);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
|
$(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 igrno(i)
|
||||||
|
{
|
||||||
|
var igrno=$('#igrno'+i).text();
|
||||||
|
var pono =$('#pono'+i).text();
|
||||||
|
$("#Fileshow").modal('show');
|
||||||
|
$.ajax(
|
||||||
|
|
||||||
|
{
|
||||||
|
data:{igrno:igrno,pono:pono},
|
||||||
|
type:"POST",
|
||||||
|
url:"<?php echo base_url() ?>cashbook/IGRFilelist",
|
||||||
|
success:function(data)
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
var trHTML = '';
|
||||||
|
var FilePath ='';
|
||||||
|
var Filename = '';
|
||||||
|
var PONO ='';
|
||||||
|
var BillNO ='';
|
||||||
|
|
||||||
|
$.each($.parseJSON(data),function (i, item) {
|
||||||
|
|
||||||
|
if(item.file ==null)
|
||||||
|
{ if(item.Remarks ==null)
|
||||||
|
{
|
||||||
|
//alert()
|
||||||
|
PONO =item.PONO;
|
||||||
|
BillNO =item.BillNo;
|
||||||
|
Filename =item.FilePath;
|
||||||
|
FilePath = "<?php echo base_url()?>uploads/Igrfiles/"+item.FilePath;
|
||||||
|
}else{
|
||||||
|
Filename ="BillDetails";
|
||||||
|
PONO =item.PONO;
|
||||||
|
BillNO =item.BillNo;
|
||||||
|
FilePath = item.FilePath;
|
||||||
|
}
|
||||||
|
|
||||||
|
}else{
|
||||||
|
Filename = item.file;
|
||||||
|
PONO =item.pono;
|
||||||
|
BillNO = '-';
|
||||||
|
FilePath ="<?php echo base_url()?>"+item.file;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if(Filename != null)
|
||||||
|
{
|
||||||
|
i=i+1;
|
||||||
|
i=i-1;
|
||||||
|
trHTML += '<tr id='+i+'>' +
|
||||||
|
'<td align="right">' + i + '</td>' +
|
||||||
|
'<td id="billno'+i+'">' + BillNO+ '</td>' +
|
||||||
|
'<td>' + PONO+ '</td>' +
|
||||||
|
|
||||||
|
'<td id="file'+i+'"><a target="_blank" href = '+FilePath+'>'+ Filename +'</a></td>' +
|
||||||
|
|
||||||
|
// '<td name="filepathname" id="filepathname" onclick="openbillmodel('+i+');"><i class="fa fa-pencil"></i></td>' +
|
||||||
|
'</tr>';
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
$("#tbleAppend1").empty();
|
||||||
|
$('#Inwardgateregistertable1 > tbody').append(trHTML);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
|
</script>
|
||||||
Loading…
Reference in New Issue
Block a user