banksissuesfileview
This commit is contained in:
parent
377176151b
commit
53d71d6ab4
@ -986,8 +986,9 @@ class cashbook extends BaseController
|
|||||||
$data['bankdepit'] = $this->cashbook_model->debitbankstatemet($Supplierid,$fdate,$tdate);
|
$data['bankdepit'] = $this->cashbook_model->debitbankstatemet($Supplierid,$fdate,$tdate);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// print_r($data['bankdepit']);
|
||||||
$data['getsupplier'] = $this->cashbook_model->getsupplier();
|
$data['getsupplier'] = $this->cashbook_model->getsupplier();
|
||||||
$this->loadViews("bankdebit",$this->global,$data,NULL);
|
$this->loadViews("bankdebit",$this->global,$data,NULL);
|
||||||
//die();
|
//die();
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -1015,6 +1016,7 @@ class cashbook extends BaseController
|
|||||||
$igrsingle = $this->cashbook_model->igrmastersingle($igrno);
|
$igrsingle = $this->cashbook_model->igrmastersingle($igrno);
|
||||||
$igrmultiple =$this->cashbook_model->igrmastermultiple($igrno);
|
$igrmultiple =$this->cashbook_model->igrmastermultiple($igrno);
|
||||||
$data = array_merge($igrsingle,$igrmultiple);
|
$data = array_merge($igrsingle,$igrmultiple);
|
||||||
|
//print_r($data);
|
||||||
echo json_encode($data);
|
echo json_encode($data);
|
||||||
|
|
||||||
|
|
||||||
@ -1118,7 +1120,9 @@ class cashbook extends BaseController
|
|||||||
{
|
{
|
||||||
$this->global['pageTitle'] = 'Siddharth : Bank Report - Store Debited Details';
|
$this->global['pageTitle'] = 'Siddharth : Bank Report - Store Debited Details';
|
||||||
$check = $this->input->post('check');
|
$check = $this->input->post('check');
|
||||||
|
// echo 'check'.$check;
|
||||||
$rw = $this->input->post('rw');
|
$rw = $this->input->post('rw');
|
||||||
|
// echo 'rw'.$rw;
|
||||||
$date = $this->input->post('podate');
|
$date = $this->input->post('podate');
|
||||||
$date = date_create($date);
|
$date = date_create($date);
|
||||||
$date = date_format($date,'Y-m-d');
|
$date = date_format($date,'Y-m-d');
|
||||||
@ -1128,9 +1132,15 @@ class cashbook extends BaseController
|
|||||||
|
|
||||||
$sname = $this->input->post('sname');
|
$sname = $this->input->post('sname');
|
||||||
$tot = $this->input->post('tot');
|
$tot = $this->input->post('tot');
|
||||||
|
// echo'tot'.$tot;
|
||||||
|
|
||||||
$rowcount = $this->input->post('rc');
|
$rowcount = $this->input->post('rc');
|
||||||
|
|
||||||
$totalpaidamount= $this->input->post('tpv');
|
$totalpaidamount= $this->input->post('tpv');
|
||||||
|
//echo 'totalpaidamount'.$totalpaidamount;
|
||||||
|
|
||||||
$bankdebitamountamount= $this->input->post('bda');
|
$bankdebitamountamount= $this->input->post('bda');
|
||||||
|
//echo 'bankdebitamountamount'.$bankdebitamountamount;
|
||||||
$bankid =$this->input->post('bi');
|
$bankid =$this->input->post('bi');
|
||||||
$alreadypaid = 0;
|
$alreadypaid = 0;
|
||||||
//echo $earlypaid;
|
//echo $earlypaid;
|
||||||
@ -1147,14 +1157,17 @@ class cashbook extends BaseController
|
|||||||
$aPay = $ap->Clearbalance;
|
$aPay = $ap->Clearbalance;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// echo 'apay',$apay;
|
||||||
|
|
||||||
if($check == 1)
|
if($check == 1)
|
||||||
{
|
{
|
||||||
$clearedblnce=($totalpaidamount+$aPay);
|
$clearedblnce=($totalpaidamount+$aPay);
|
||||||
|
//echo 'clearbalance'.$clearedblnce;
|
||||||
|
|
||||||
$balancetocleared=($bankdebitamountamount-$totalpaidamount);
|
$balancetocleared=($bankdebitamountamount-$totalpaidamount);
|
||||||
$check =1;
|
$check =1;
|
||||||
}
|
}
|
||||||
//echo $balancetocleared;
|
//echo 'Balancetocleared'.$balancetocleared;
|
||||||
//die();
|
//die();
|
||||||
if($balancetocleared>0)
|
if($balancetocleared>0)
|
||||||
{
|
{
|
||||||
@ -1185,6 +1198,7 @@ class cashbook extends BaseController
|
|||||||
$ePay = $ep->Amountpaid;
|
$ePay = $ep->Amountpaid;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
//echo 'epay'.$epay;
|
||||||
|
|
||||||
$ip=$this->input->post('aa');
|
$ip=$this->input->post('aa');
|
||||||
$balancetopay=($tot-($ip+$ePay));
|
$balancetopay=($tot-($ip+$ePay));
|
||||||
@ -1198,7 +1212,7 @@ class cashbook extends BaseController
|
|||||||
$podata = array('Podate'=>$date,'PONO'=>$pono,'IGRNO'=>$igrno,'Suppliername'=>$sname,'Totalpoamount'=>$tot,'Amountpaid'=>$amtpaid,'Balancetopay'=>$balancetopay,'mid'=>$bankid,'IGRLineItemNo'=>$igrlineitem);
|
$podata = array('Podate'=>$date,'PONO'=>$pono,'IGRNO'=>$igrno,'Suppliername'=>$sname,'Totalpoamount'=>$tot,'Amountpaid'=>$amtpaid,'Balancetopay'=>$balancetopay,'mid'=>$bankid,'IGRLineItemNo'=>$igrlineitem);
|
||||||
//die();
|
//die();
|
||||||
|
|
||||||
$result3 = $this->cashbook_model->getpono($pono);
|
$result3 = $this->cashbook_model->getpono($igrlineitem);
|
||||||
|
|
||||||
$resultn = $this->cashbook_model->mappingpo($podata1);
|
$resultn = $this->cashbook_model->mappingpo($podata1);
|
||||||
if(count($result3)<=0)
|
if(count($result3)<=0)
|
||||||
@ -1210,7 +1224,7 @@ class cashbook extends BaseController
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
//echo "update";
|
//echo "update";
|
||||||
$result3 = $this->cashbook_model->poupdate($podata,$pono);
|
$result3 = $this->cashbook_model->poupdate($podata,$igrlineitem);
|
||||||
|
|
||||||
}
|
}
|
||||||
if($rw == $rowcount)
|
if($rw == $rowcount)
|
||||||
|
|||||||
@ -509,7 +509,7 @@ function receiptdata()
|
|||||||
function igrmastermultiple($igrno)
|
function igrmastermultiple($igrno)
|
||||||
{
|
{
|
||||||
|
|
||||||
$this->db->select('BillNo,IGRNO,FilePath,PONO');
|
$this->db->select('BillNo,IGRNO,FilePath,PONO,Remarks');
|
||||||
$this->db->from('T_Inwardgateregister_fileupload');
|
$this->db->from('T_Inwardgateregister_fileupload');
|
||||||
$this->db->where('IGRNO',$igrno);
|
$this->db->where('IGRNO',$igrno);
|
||||||
$query = $this->db->get();
|
$query = $this->db->get();
|
||||||
@ -738,11 +738,11 @@ function receiptdata()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public function getpono($pono)
|
public function getpono($igrlineitem)
|
||||||
{
|
{
|
||||||
$this->db->select('PONO');
|
$this->db->select('IGRLineItemNo');
|
||||||
$this->db->from('T_Bankporeport');
|
$this->db->from('T_Bankporeport');
|
||||||
$this->db->where('PONO ',$pono);
|
$this->db->where('IGRLineItemNo ',$igrlineitem);
|
||||||
$query = $this->db->get();
|
$query = $this->db->get();
|
||||||
// print_r( $this->db->last_query());
|
// print_r( $this->db->last_query());
|
||||||
return $query->result();
|
return $query->result();
|
||||||
@ -801,11 +801,11 @@ function receiptdata()
|
|||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
}
|
}
|
||||||
public function getearlyamount($IGRLineItemNo)
|
public function getearlyamount($igrlineitem)
|
||||||
{
|
{
|
||||||
$this->db->select('Amountpaid');
|
$this->db->select('Amountpaid');
|
||||||
$this->db->from('T_Bankporeport');
|
$this->db->from('T_Bankporeport');
|
||||||
$this->db->where('IGRLineItemNo ',$IGRLineItemNo);
|
$this->db->where('IGRLineItemNo ',$igrlineitem);
|
||||||
$query = $this->db->get();
|
$query = $this->db->get();
|
||||||
// print_r( $this->db->last_query());
|
// print_r( $this->db->last_query());
|
||||||
return $query->result();
|
return $query->result();
|
||||||
@ -842,10 +842,10 @@ function receiptdata()
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function poupdate($podata,$pono)
|
public function poupdate($podata,$igrlineitem)
|
||||||
{
|
{
|
||||||
|
|
||||||
$this->db->where('PONO',$pono);
|
$this->db->where('IGRLineItemNo',$igrlineitem);
|
||||||
$this->db->update('T_Bankporeport',$podata);
|
$this->db->update('T_Bankporeport',$podata);
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|||||||
@ -440,7 +440,7 @@ $( function() {
|
|||||||
{
|
{
|
||||||
data:{igrno:igrno},
|
data:{igrno:igrno},
|
||||||
type:"POST",
|
type:"POST",
|
||||||
url:"<?php echo base_url() ?>cashbook/IGRFilelist",
|
url:"<?php echo base_url()?>cashbook/IGRFilelist",
|
||||||
success:function(data)
|
success:function(data)
|
||||||
{
|
{
|
||||||
|
|
||||||
@ -473,7 +473,7 @@ $( function() {
|
|||||||
PONO =item.pono;
|
PONO =item.pono;
|
||||||
BillNO = '-';
|
BillNO = '-';
|
||||||
|
|
||||||
FilePath =item.file;
|
FilePath ="<?php echo base_url()?>"+item.file;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -569,7 +569,7 @@ function pono(i)
|
|||||||
|
|
||||||
$.each($.parseJSON(data),function (i, item) {
|
$.each($.parseJSON(data),function (i, item) {
|
||||||
|
|
||||||
if(item.file == null)
|
if(item.file ==null)
|
||||||
{ if(item.Remarks ==null)
|
{ if(item.Remarks ==null)
|
||||||
{
|
{
|
||||||
//alert()
|
//alert()
|
||||||
@ -588,8 +588,7 @@ function pono(i)
|
|||||||
Filename = item.file;
|
Filename = item.file;
|
||||||
PONO =item.pono;
|
PONO =item.pono;
|
||||||
BillNO = '-';
|
BillNO = '-';
|
||||||
|
FilePath ="<?php echo base_url()?>"+item.file;
|
||||||
FilePath =item.file;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user