latest changes

This commit is contained in:
gayathri1990 2018-11-17 20:50:18 +05:30
parent 16ecf427d3
commit 99c6941acd
4 changed files with 171 additions and 64 deletions

View File

@ -329,11 +329,11 @@ class cashbook extends BaseController
}
else
{
$cstatus='OPEN';
}
// $IsActive=0;
$filedataupload= array('reportdate'=>$Date1,'valuedate'=>$Date2,'chequeNo'=>$cod,'Narration'=>$narration,'Cod'=> $chqno,'Debit'=>$debit,'Credit'=>$credit,'cbalancetocleared'=>$credit,'Balance'=>$balance,'Bankname'=>$bank);
$filedataupload= array('reportdate'=>$Date1,'valuedate'=>$Date2,'chequeNo'=>$cod,'Narration'=>$narration,'Cod'=> $chqno,'Debit'=>$debit,'Credit'=>$credit,'cbalancetocleared'=>$credit,'Balance'=>$balance,'Bankname'=>$bank,'Status'=>$Status,'cstatus'=>$cstatus);

View File

@ -0,0 +1,104 @@
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); ?>
ERROR - 2018-11-17 16:17:36 --> Severity: Notice --> Undefined variable: financialyear C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 2
ERROR - 2018-11-17 16:17:36 --> Severity: Warning --> Invalid argument supplied for foreach() C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 2
ERROR - 2018-11-17 16:17:36 --> Severity: Notice --> Undefined variable: i C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 236
ERROR - 2018-11-17 16:17:36 --> Severity: Notice --> Undefined variable: fa C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 236
ERROR - 2018-11-17 16:17:36 --> Severity: Notice --> Undefined variable: aa C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 236
ERROR - 2018-11-17 16:17:36 --> Severity: Notice --> Undefined variable: m C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 236
ERROR - 2018-11-17 16:17:36 --> Severity: Notice --> Undefined variable: fdate C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 236
ERROR - 2018-11-17 16:17:36 --> Severity: Notice --> Undefined variable: tdate C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 236
ERROR - 2018-11-17 16:17:36 --> Severity: Notice --> Undefined variable: i C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 237
ERROR - 2018-11-17 16:17:36 --> Severity: Notice --> Undefined variable: i C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 243
ERROR - 2018-11-17 16:17:36 --> Severity: Notice --> Undefined variable: fa C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 236
ERROR - 2018-11-17 16:17:36 --> Severity: Notice --> Undefined variable: aa C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 236
ERROR - 2018-11-17 16:17:36 --> Severity: Notice --> Undefined variable: m C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 236
ERROR - 2018-11-17 16:17:36 --> Severity: Notice --> Undefined variable: fdate C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 236
ERROR - 2018-11-17 16:17:36 --> Severity: Notice --> Undefined variable: tdate C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 236
ERROR - 2018-11-17 16:17:36 --> Severity: Notice --> Undefined variable: fa C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 236
ERROR - 2018-11-17 16:17:36 --> Severity: Notice --> Undefined variable: aa C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 236
ERROR - 2018-11-17 16:17:36 --> Severity: Notice --> Undefined variable: m C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 236
ERROR - 2018-11-17 16:17:36 --> Severity: Notice --> Undefined variable: fdate C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 236
ERROR - 2018-11-17 16:17:36 --> Severity: Notice --> Undefined variable: tdate C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 236
ERROR - 2018-11-17 16:17:36 --> Severity: Notice --> Undefined variable: fa C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 236
ERROR - 2018-11-17 16:17:36 --> Severity: Notice --> Undefined variable: aa C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 236
ERROR - 2018-11-17 16:17:36 --> Severity: Notice --> Undefined variable: m C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 236
ERROR - 2018-11-17 16:17:36 --> Severity: Notice --> Undefined variable: fdate C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 236
ERROR - 2018-11-17 16:17:36 --> Severity: Notice --> Undefined variable: tdate C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 236
ERROR - 2018-11-17 16:17:36 --> Severity: Notice --> Undefined variable: fa C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 236
ERROR - 2018-11-17 16:17:36 --> Severity: Notice --> Undefined variable: aa C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 236
ERROR - 2018-11-17 16:17:36 --> Severity: Notice --> Undefined variable: m C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 236
ERROR - 2018-11-17 16:17:36 --> Severity: Notice --> Undefined variable: fdate C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 236
ERROR - 2018-11-17 16:17:36 --> Severity: Notice --> Undefined variable: tdate C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 236
ERROR - 2018-11-17 16:17:36 --> Severity: Notice --> Undefined variable: fa C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 236
ERROR - 2018-11-17 16:17:37 --> Severity: Notice --> Undefined variable: aa C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 236
ERROR - 2018-11-17 16:17:37 --> Severity: Notice --> Undefined variable: m C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 236
ERROR - 2018-11-17 16:17:37 --> Severity: Notice --> Undefined variable: fdate C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 236
ERROR - 2018-11-17 16:17:37 --> Severity: Notice --> Undefined variable: tdate C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 236
ERROR - 2018-11-17 16:17:37 --> Severity: Notice --> Undefined variable: fa C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 236
ERROR - 2018-11-17 16:17:37 --> Severity: Notice --> Undefined variable: aa C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 236
ERROR - 2018-11-17 16:17:37 --> Severity: Notice --> Undefined variable: m C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 236
ERROR - 2018-11-17 16:17:37 --> Severity: Notice --> Undefined variable: fdate C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 236
ERROR - 2018-11-17 16:17:37 --> Severity: Notice --> Undefined variable: tdate C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 236
ERROR - 2018-11-17 16:17:37 --> Severity: Notice --> Undefined variable: fa C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 236
ERROR - 2018-11-17 16:17:37 --> Severity: Notice --> Undefined variable: aa C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 236
ERROR - 2018-11-17 16:17:37 --> Severity: Notice --> Undefined variable: m C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 236
ERROR - 2018-11-17 16:17:37 --> Severity: Notice --> Undefined variable: fdate C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 236
ERROR - 2018-11-17 16:17:37 --> Severity: Notice --> Undefined variable: tdate C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 236
ERROR - 2018-11-17 16:17:37 --> Severity: Notice --> Undefined variable: fa C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 311
ERROR - 2018-11-17 16:17:37 --> Severity: Notice --> Undefined variable: aa C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 311
ERROR - 2018-11-17 16:17:37 --> Severity: Notice --> Undefined variable: m C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 311
ERROR - 2018-11-17 16:17:37 --> Severity: Notice --> Undefined variable: fdate C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 311
ERROR - 2018-11-17 16:17:37 --> Severity: Notice --> Undefined variable: tdate C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 311
ERROR - 2018-11-17 16:18:22 --> Severity: Notice --> Undefined variable: financialyear C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 2
ERROR - 2018-11-17 16:18:22 --> Severity: Warning --> Invalid argument supplied for foreach() C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 2
ERROR - 2018-11-17 16:18:29 --> Severity: Notice --> Undefined variable: financialyear C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 2
ERROR - 2018-11-17 16:18:29 --> Severity: Warning --> Invalid argument supplied for foreach() C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 2
ERROR - 2018-11-17 16:18:29 --> Severity: Notice --> Undefined variable: i C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 236
ERROR - 2018-11-17 16:18:29 --> Severity: Notice --> Undefined variable: fa C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 236
ERROR - 2018-11-17 16:18:29 --> Severity: Notice --> Undefined variable: aa C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 236
ERROR - 2018-11-17 16:18:29 --> Severity: Notice --> Undefined variable: m C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 236
ERROR - 2018-11-17 16:18:29 --> Severity: Notice --> Undefined variable: fdate C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 236
ERROR - 2018-11-17 16:18:29 --> Severity: Notice --> Undefined variable: tdate C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 236
ERROR - 2018-11-17 16:18:29 --> Severity: Notice --> Undefined variable: i C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 237
ERROR - 2018-11-17 16:18:29 --> Severity: Notice --> Undefined variable: i C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 243
ERROR - 2018-11-17 16:18:29 --> Severity: Notice --> Undefined variable: fa C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 236
ERROR - 2018-11-17 16:18:29 --> Severity: Notice --> Undefined variable: aa C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 236
ERROR - 2018-11-17 16:18:29 --> Severity: Notice --> Undefined variable: m C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 236
ERROR - 2018-11-17 16:18:29 --> Severity: Notice --> Undefined variable: fdate C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 236
ERROR - 2018-11-17 16:18:29 --> Severity: Notice --> Undefined variable: tdate C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 236
ERROR - 2018-11-17 16:18:29 --> Severity: Notice --> Undefined variable: fa C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 236
ERROR - 2018-11-17 16:18:29 --> Severity: Notice --> Undefined variable: aa C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 236
ERROR - 2018-11-17 16:18:29 --> Severity: Notice --> Undefined variable: m C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 236
ERROR - 2018-11-17 16:18:29 --> Severity: Notice --> Undefined variable: fdate C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 236
ERROR - 2018-11-17 16:18:29 --> Severity: Notice --> Undefined variable: tdate C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 236
ERROR - 2018-11-17 16:18:29 --> Severity: Notice --> Undefined variable: fa C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 236
ERROR - 2018-11-17 16:18:30 --> Severity: Notice --> Undefined variable: aa C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 236
ERROR - 2018-11-17 16:18:30 --> Severity: Notice --> Undefined variable: m C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 236
ERROR - 2018-11-17 16:18:30 --> Severity: Notice --> Undefined variable: fdate C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 236
ERROR - 2018-11-17 16:18:30 --> Severity: Notice --> Undefined variable: tdate C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 236
ERROR - 2018-11-17 16:18:30 --> Severity: Notice --> Undefined variable: fa C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 236
ERROR - 2018-11-17 16:18:30 --> Severity: Notice --> Undefined variable: aa C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 236
ERROR - 2018-11-17 16:18:30 --> Severity: Notice --> Undefined variable: m C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 236
ERROR - 2018-11-17 16:18:30 --> Severity: Notice --> Undefined variable: fdate C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 236
ERROR - 2018-11-17 16:18:30 --> Severity: Notice --> Undefined variable: tdate C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 236
ERROR - 2018-11-17 16:18:30 --> Severity: Notice --> Undefined variable: fa C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 236
ERROR - 2018-11-17 16:18:30 --> Severity: Notice --> Undefined variable: aa C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 236
ERROR - 2018-11-17 16:18:30 --> Severity: Notice --> Undefined variable: m C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 236
ERROR - 2018-11-17 16:18:30 --> Severity: Notice --> Undefined variable: fdate C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 236
ERROR - 2018-11-17 16:18:30 --> Severity: Notice --> Undefined variable: tdate C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 236
ERROR - 2018-11-17 16:18:30 --> Severity: Notice --> Undefined variable: fa C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 236
ERROR - 2018-11-17 16:18:30 --> Severity: Notice --> Undefined variable: aa C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 236
ERROR - 2018-11-17 16:18:30 --> Severity: Notice --> Undefined variable: m C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 236
ERROR - 2018-11-17 16:18:30 --> Severity: Notice --> Undefined variable: fdate C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 236
ERROR - 2018-11-17 16:18:30 --> Severity: Notice --> Undefined variable: tdate C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 236
ERROR - 2018-11-17 16:18:30 --> Severity: Notice --> Undefined variable: fa C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 236
ERROR - 2018-11-17 16:18:30 --> Severity: Notice --> Undefined variable: aa C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 236
ERROR - 2018-11-17 16:18:30 --> Severity: Notice --> Undefined variable: m C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 236
ERROR - 2018-11-17 16:18:30 --> Severity: Notice --> Undefined variable: fdate C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 236
ERROR - 2018-11-17 16:18:30 --> Severity: Notice --> Undefined variable: tdate C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 236
ERROR - 2018-11-17 16:18:30 --> Severity: Notice --> Undefined variable: fa C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 311
ERROR - 2018-11-17 16:18:30 --> Severity: Notice --> Undefined variable: aa C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 311
ERROR - 2018-11-17 16:18:30 --> Severity: Notice --> Undefined variable: m C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 311
ERROR - 2018-11-17 16:18:30 --> Severity: Notice --> Undefined variable: fdate C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 311
ERROR - 2018-11-17 16:18:30 --> Severity: Notice --> Undefined variable: tdate C:\xampp\htdocs\siddharth_application\application\views\bankpaidsupp.php 311

View File

@ -309,10 +309,10 @@ function report_amountpaid(){
$sql="SELECT
CASE WHEN MONTH(Podate)>=4 THEN
concat(YEAR(Podate), '-',YEAR(Podate)+1)
ELSE concat(YEAR(Podate)-1,'-', YEAR(Podate)) END AS financial_year
FROM T_Bankporeport
CASE WHEN MONTH(reportdate)>=4 THEN
concat(YEAR(reportdate), '-',YEAR(reportdate)+1)
ELSE concat(YEAR(reportdate)-1,'-', YEAR(reportdate)) END AS financial_year
FROM T_bankreport
GROUP BY financial_year";
$query = $this->db->query($sql);
return $query->result();
@ -1020,7 +1020,7 @@ function receiptdata()
function debitpolistfilter($supplierID,$fa,$aa,$m,$fdate,$tdate)
{
$this->db->select('bm.id,bm.mid,bm.PONO,bm.Suppliername,bm.Totalpoamount,bm.Podate,
$this->db->select('bm.id,bm.mid,bm.PONO,bm.Suppliername,bm.Totalpoamount,bm.Podate,bm.BankDate,
bm.Balancetopay,bm.Amountpaid,bm.IGRNO,bm.IGRLineItemNo,br.Balancetocleared,br.Clearbalance,
inward.FilePath as igrfile,bu.FilePath pofile');
$this->db->from ('T_Bankmappingpo bm');
@ -1035,12 +1035,12 @@ function receiptdata()
if ($fa and $aa != ''){
//$sql.=" and (im.CreatedDate >= '".$fa."-04-01' and im.CreatedDate <= '".$aa."-03-31')";
$year="(bm.Podate >= '".$fa."-04-01' and bm.Podate <= '".$aa."-03-31')";
$year="(bm.BankDate >= '".$fa."-04-01' and bm.BankDate <= '".$aa."-03-31')";
$this->db->where($year);
}
if ($m!= ''){
//$this->db->where('MONTH(pel.tgl_pembelian)',$bulan);
$month="monthname(bm.Podate) = '".$m."'";
$month="monthname(bm.BankDate) = '".$m."'";
$this->db->where($month);
// $sql.="and monthname(bm.Podate) = '".$m."'";
@ -1048,8 +1048,8 @@ function receiptdata()
if ($fdate and $tdate != ''){
$fromdate= date("Y-m-d",strtotime($fdate));
$todate=date("Y-m-d",strtotime($tdate));
$date = "date(bm.Podate) >= '".$fromdate."'
and date(bm.Podate) <= '".$todate."'";
$date = "date(bm.BankDate) >= '".$fromdate."'
and date(bm.BankDate) <= '".$todate."'";
$this->db->where($date);
}
$this->db->group_by('bm.IGRLineItemNo');
@ -1123,7 +1123,7 @@ function receiptdata()
$this->db->join('T_Inwardgateregister_fileupload inward','inward.IGRNO =igrm.IGRNO','left');
$this->db->join ('T_bankreport br','br.ID=bp.mid');
$this->db->where('bp.IsActive',1);
$this->db->where('bp.mid',$bankid);
$this->db->where('bp.mid',(int)$bankid);
// $this->db->where('igrde.BankStatus !=','ST072');
$this->db->group_by('bp.id');
$query = $this->db->get();
@ -1676,7 +1676,7 @@ function receiptdata()
function paided($supplierid,$fa,$aa,$m,$fdate,$tdate)
{
$this->db->select('bm.id,bm.mid,bm.PONO,bm.Suppliername,bm.Totalpoamount,bm.Podate,
$this->db->select('bm.id,bm.mid,bm.PONO,bm.Suppliername,bm.Totalpoamount,bm.Podate,bm.BankDate,
bm.Balancetopay,bm.Amountpaid,bm.IGRNO,bm.IGRLineItemNo,br.Balancetocleared,br.Clearbalance,
inward.FilePath as igrfile,bu.FilePath pofile');
$this->db->from ('T_Bankmappingpo bm');
@ -1686,17 +1686,17 @@ function receiptdata()
$this->db->join('T_bankreport br','br.ID=bm.mid','left');
$this->db->where('bm.SupplierID',$supplierid);
$this->db->where('bm.IsActive',1);
$this->db->where('igr.BankStatus !=',ST072);
// $this->db->where('igr.BankStatus !=',ST072);
//$this->db->group_by('bm.mid');
if ($fa and $aa != ''){
//$sql.=" and (im.CreatedDate >= '".$fa."-04-01' and im.CreatedDate <= '".$aa."-03-31')";
$year="(bm.Podate >= '".$fa."-04-01' and bm.Podate <= '".$aa."-03-31')";
$year="(bm.BankDate >= '".$fa."-04-01' and bm.BankDate <= '".$aa."-03-31')";
$this->db->where($year);
}
if ($m!= ''){
//$this->db->where('MONTH(pel.tgl_pembelian)',$bulan);
$month="monthname(bm.Podate) = '".$m."'";
$month="monthname(bm.BankDate) = '".$m."'";
$this->db->where($month);
// $sql.="and monthname(bm.Podate) = '".$m."'";
@ -1704,11 +1704,11 @@ function receiptdata()
if ($fdate and $tdate != ''){
$fromdate= date("Y-m-d",strtotime($fdate));
$todate=date("Y-m-d",strtotime($tdate));
$date = "date(bm.Podate) >= '".$fromdate."'
and date(bm.Podate) <= '".$todate."'";
$date = "date(bm.BankDate) >= '".$fromdate."'
and date(bm.BankDate) <= '".$todate."'";
$this->db->where($date);
}
//$this->db->group_by('bm.IGRLineItemNo');
$this->db->group_by('bm.id');
$query = $this->db->get();
return $query->result();
@ -1718,9 +1718,9 @@ function receiptdata()
$this->db->select('bm.id,bm.mid,bm.PONO,bm.Suppliername,bm.SupplierID,bm.Totalpoamount,bm.Podate,
bm.Balancetopay,sum(bm.Amountpaid) as Amountpaid,bm.IGRNO,bm.IGRLineItemNo');
$this->db->from ('T_Bankmappingpo bm');
$this->db->join('T_IGR_Details igr','igr.IGRItemNo=bm.IGRLineItemNo');
//$this->db->join('T_IGR_Details igr','igr.IGRItemNo=bm.IGRLineItemNo');
$this->db->where('bm.IsActive',1);
$this->db->where('igr.BankStatus !=',ST072);
// $this->db->where('igr.BankStatus !=',ST072);
$this->db->group_by('bm.SupplierID');
$query = $this->db->get();
return $query->result();
@ -1824,23 +1824,25 @@ function receiptdata()
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,
bm.Balancetopay,sum(bm.Amountpaid) as Amountpaid,bm.Podate,bm.IGRLineItemNo');
bm.Balancetopay,sum(bm.Amountpaid) as Amountpaid,bm.Podate,bm.BankDate,bm.IGRLineItemNo,bm.BankDate');
$this->db->from ('T_Bankmappingpo bm');
$this->db->join('T_IGR_Details igr','igr.IGRItemNo=bm.IGRLineItemNo');
$this->db->where('igr.BankStatus !=',ST072);
$this->db->join('T_bankreport br','br.ID=bm.mid');
//$this->db->join('T_IGR_Details igr','igr.IGRItemNo=bm.IGRLineItemNo');
//$this->db->where('igr.BankStatus !=',ST072);
$this->db->where('bm.IsActive',1);
if ($fa and $aa != ''){
//$sql.=" and (im.CreatedDate >= '".$fa."-04-01' and im.CreatedDate <= '".$aa."-03-31')";
$year="(bm.Podate >= '".$fa."-04-01' and bm.Podate <= '".$aa."-03-31')";
$year="(bm.BankDate >= '".$fa."-04-01' and bm.BankDate <= '".$aa."-03-31')";
$this->db->where($year);
}
if ($m!= ''){
//$this->db->where('MONTH(pel.tgl_pembelian)',$bulan);
$month="monthname(bm.Podate) = '".$m."'";
$month="monthname(bm.BankDate) = '".$m."'";
$this->db->where($month);
// $sql.="and monthname(bm.Podate) = '".$m."'";
@ -1848,8 +1850,8 @@ function receiptdata()
if ($fdate and $tdate != ''){
$fromdate= date("Y-m-d",strtotime($fdate));
$todate=date("Y-m-d",strtotime($tdate));
$date = "date(bm.Podate) >= '".$fromdate."'
and date(bm.Podate) <= '".$todate."'";
$date = "date(bm.BankDate) >= '".$fromdate."'
and date(bm.BankDate) <= '".$todate."'";
$this->db->where($date);
}

View File

@ -267,13 +267,14 @@ if(!empty($mapping))
</thead>
<tbody>
<?php
$tot_amount=0;
$i=1;
$ti=0.00;
$tvt=0.00;
if(!empty($mapping)){
foreach($mapping as $ap)
{
//print_r($ap);
$total=$ap->Amountpaid; //print_r($ap);
?>
<tr>
@ -290,7 +291,7 @@ if(!empty($mapping))
<td align="left" id="sn<?php echo $i ?>"><span><?php echo $ap->Suppliername?></span></td>
<td align="left" id="tov<?php echo $i ?>"><span><?php echo $ap->Totalpoamount?></span></td>
<td align="left" id="aa<?php echo $i ?>"><span><?php echo $ap->Balancetopay?></span></td>
<td align="left" id="aa<?php echo $i ?>"><span><?php echo $ap->Amountpaid?></span></td>
<td align="left" id="aa<?php echo $i ?>"><span><?php $tot_amount=$tot_amount+round($total);?><?php echo round($total,2)?></span></td>
<?php
if($ap->file !='')
{
@ -355,40 +356,25 @@ if(!empty($mapping))
}
?>
</tbody>
<!--<tfoot width="100%">
<tfoot width="100%">
<tr>
<td style="text-align:left;"><strong>Total</strong></td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td style="text-align:right"><strong>
<?php
{
echo number_format($ti,2,'.','');
<td style="text-align:left;"><strong>Total</strong></td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
}
?>
</strong>
</td>
<td style="text-align:right"><strong>
<?php
{
echo number_format($tvt,2,'.','');
}
?>
</strong>
</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</tfoot>-->
<td class="amount"><strong>
<?php echo $tot_amount; ?>
</strong></td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</tfoot>
</table>
<center><h3 class="box-title"><p style="color:#3c8dbc"><b>Cashbook Reports</b></p></h3></center>
<br>
@ -412,6 +398,7 @@ if(!empty($mapping))
</thead>
<tbody>
<?php
$tot_amount1=0;
$i=1;
$ti=0.00;
$tvt=0.00;
@ -419,7 +406,8 @@ if(!empty($mapping))
foreach($mappingcashbook as $mc)
{
$id=$mc->id;
$id=$mc->id;
$total=$mc->total;
?>
<tr>
@ -435,7 +423,7 @@ if(!empty($mapping))
<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 echo $mc->total?></span></td>
<td align="left" id="aa<?php echo $i ?>"><span><?php $tot_amount1=$tot_amount1+round($total);?><?php echo round($total,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>&nbsp;&nbsp;&nbsp;</a>
@ -456,6 +444,19 @@ if(!empty($mapping))
}
?>
</tbody>
<tfoot width="100%">
<tr>
<td style="text-align:left;"><strong>Total</strong></td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td class="amount"><strong>
<?php echo $tot_amount1; ?>
</strong></td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</tfoot>
</table>