bank changes
This commit is contained in:
parent
b03f6db30b
commit
7849106c4b
@ -1648,14 +1648,12 @@ class cashbook extends BaseController
|
|||||||
$amountpaid=$data['$bankmappingamount'][0]->Amountpaid;
|
$amountpaid=$data['$bankmappingamount'][0]->Amountpaid;
|
||||||
//$data['$totallineitemamount']=$this->cashbook_model->gettotallineitem($igrno);
|
//$data['$totallineitemamount']=$this->cashbook_model->gettotallineitem($igrno);
|
||||||
|
|
||||||
if($amountpaid==$totalamount)
|
if($amountpaid==$totalamount || $amountpaid!=$totalamount)
|
||||||
{
|
{
|
||||||
$BankStatus=NO_PAIDIGR;
|
$BankStatus=NO_PAIDIGR;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
$BankStatus=PARTIALLY_PAIDIGR;
|
|
||||||
}
|
|
||||||
|
|
||||||
$result= $this->cashbook_model->IgrDetailsStatusUpdate($igrno,$BankStatus);
|
$result= $this->cashbook_model->IgrDetailsStatusUpdate($igrno,$BankStatus);
|
||||||
$result1= $this->cashbook_model->deletemapping($Bankid,$updateamount,$updatebalancetoclear);
|
$result1= $this->cashbook_model->deletemapping($Bankid,$updateamount,$updatebalancetoclear);
|
||||||
@ -1693,19 +1691,14 @@ class cashbook extends BaseController
|
|||||||
$updatebalancetoclear=$Amount+$balancetoclear;
|
$updatebalancetoclear=$Amount+$balancetoclear;
|
||||||
$data['$bankmappingamount'] = $this->cashbook_model->gettotalbankmappingpo($igrno);
|
$data['$bankmappingamount'] = $this->cashbook_model->gettotalbankmappingpo($igrno);
|
||||||
$amountpaid=$data['$bankmappingamount'][0]->Amountpaid;
|
$amountpaid=$data['$bankmappingamount'][0]->Amountpaid;
|
||||||
//if($Amount==)
|
|
||||||
|
|
||||||
//$data['$totallineitemamount']=$this->cashbook_model->gettotallineitem($igrno);
|
|
||||||
|
|
||||||
|
|
||||||
if($amountpaid==$totalamount)
|
|
||||||
|
if($amountpaid==$totalamount || $amountpaid!= $totalamount)
|
||||||
{
|
{
|
||||||
$BankStatus=NO_PAIDIGR;
|
$BankStatus=NO_PAIDIGR;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
$BankStatus=PARTIALLY_PAIDIGR;
|
|
||||||
}
|
|
||||||
|
|
||||||
$result= $this->cashbook_model->IgrDetailsStatusUpdate($igrno,$BankStatus);
|
$result= $this->cashbook_model->IgrDetailsStatusUpdate($igrno,$BankStatus);
|
||||||
$result1= $this->cashbook_model->deletemapping($Bankid,$updateamount,$updatebalancetoclear);
|
$result1= $this->cashbook_model->deletemapping($Bankid,$updateamount,$updatebalancetoclear);
|
||||||
@ -1765,10 +1758,7 @@ class cashbook extends BaseController
|
|||||||
$receivedstatus=NO_RECEIVED;
|
$receivedstatus=NO_RECEIVED;
|
||||||
|
|
||||||
$IsActive=0;
|
$IsActive=0;
|
||||||
//$data['$latestamount'] = $this->cashbook_model->getlatestamount($invoiceno);
|
|
||||||
//print_r($data['$latestamount']);
|
|
||||||
//die();
|
|
||||||
//$balancetoreceived1=$data['$latestamount'][0]->balancetoreceived;
|
|
||||||
$updatebalancetoreceived=$balancetoreceived+$amountreceived;
|
$updatebalancetoreceived=$balancetoreceived+$amountreceived;
|
||||||
$updateamountreceived=$totinvoiceamount-$updatebalancetoreceived;
|
$updateamountreceived=$totinvoiceamount-$updatebalancetoreceived;
|
||||||
$result3= $this->cashbook_model->updatebankinvoicereport($invoiceno,$bankid,$updatebalancetoreceived,$updateamountreceived,$IsActive);
|
$result3= $this->cashbook_model->updatebankinvoicereport($invoiceno,$bankid,$updatebalancetoreceived,$updateamountreceived,$IsActive);
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user