diff --git a/application/controllers/cashbook.php b/application/controllers/cashbook.php index c47d555c..09e64a3a 100644 --- a/application/controllers/cashbook.php +++ b/application/controllers/cashbook.php @@ -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) { diff --git a/application/models/cashbook_model.php b/application/models/cashbook_model.php index 8cc0f34c..4201a976 100644 --- a/application/models/cashbook_model.php +++ b/application/models/cashbook_model.php @@ -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;