deleted changes in bankstatement

This commit is contained in:
gayathri1990 2018-11-22 17:43:23 +05:30
parent cbff2e3e76
commit 381add1ddd
2 changed files with 4 additions and 4 deletions

View File

@ -1991,7 +1991,7 @@ public function Deletemappingpo()
{
$IsAct=1;
}
$result3= $this->cashbook_model->updateBankporeportpo($igrno,$balancetopayupdate,$amountpaidupdate,$Bankid,$IsAct);
$result3= $this->cashbook_model->updateBankporeport($igrno,$balancetopayupdate,$amountpaidupdate,$IsAct);
if(count($result3)>0)
{
@ -2059,7 +2059,7 @@ public function Deletemappingpo()
// $updatebalancetoreceived=$balancetoreceived+$amountreceived;
// $updateamountreceived=$totinvoiceamount-$updatebalancetoreceived;
$result3= $this->cashbook_model->updatebankinvoicereport($invoiceno,$bankid,$balancetoreceivedupdate,$amountreceivedupdate,$IsAct);
$result3= $this->cashbook_model->updatebankinvoicereport($invoiceno,$balancetoreceivedupdate,$amountreceivedupdate,$IsAct);
$IsActive=0;
if(count($result3)>0)
{

View File

@ -2247,13 +2247,13 @@ function receiptdata()
}
function updatebankinvoicereport($invoiceno,$bankid,$balancetoreceivedupdate,$amountreceivedupdate,$IsAct)
function updatebankinvoicereport($invoiceno,$balancetoreceivedupdate,$amountreceivedupdate,$IsAct)
{
$this->db->set('balancetoreceived',$balancetoreceivedupdate);
$this->db->set('amountreceived',$amountreceivedupdate);
$this->db->set('IsActive',$IsAct);
$this->db->where('invoiceno',$invoiceno);
$this->db->where('bankid',$bankid);
//$this->db->where('bankid',$bankid);
$this->db->update('T_Bankinvoicereport');
$r = $this->db->affected_rows();
return $r;