bank book
This commit is contained in:
parent
f0380c03bd
commit
525d123de8
28
application/models/cashbook_model.php
Executable file → Normal file
28
application/models/cashbook_model.php
Executable file → Normal file
@ -375,7 +375,7 @@ function clearedcreditbalance(){
|
|||||||
}
|
}
|
||||||
$this->db->where_in('igr.IGRStatus','ST027');
|
$this->db->where_in('igr.IGRStatus','ST027');
|
||||||
//$this->db->where_in('pom.Status',[ST044,ST056]);
|
//$this->db->where_in('pom.Status',[ST044,ST056]);
|
||||||
$this->db->where('igrli.BankStatus !=','ST070');
|
$this->db->where('igrli.BankStatus','ST072');
|
||||||
$query = $this->db->get();
|
$query = $this->db->get();
|
||||||
return $query->result();
|
return $query->result();
|
||||||
|
|
||||||
@ -456,7 +456,7 @@ function receiptdata()
|
|||||||
{
|
{
|
||||||
$this->db->select('bm.id,bm.mid,igrm.MaterialRcvdDate,bm.PONO,bm.Suppliername,bm.Totalpoamount,
|
$this->db->select('bm.id,bm.mid,igrm.MaterialRcvdDate,bm.PONO,bm.Suppliername,bm.Totalpoamount,
|
||||||
bm.Balancetopay,bm.Amountpaid,bm.IGRNO,igrm.file,bm.IGRLineItemNo,br.Clearbalance,br.Balancetocleared,bu.FilePath,bu.BillNo,inward.FilePath as Fpath');
|
bm.Balancetopay,bm.Amountpaid,bm.IGRNO,igrm.file,bm.IGRLineItemNo,br.Clearbalance,br.Balancetocleared,bu.FilePath,bu.BillNo,inward.FilePath as Fpath');
|
||||||
$this->db->from ('T_Bankmappingpo bm');
|
$this->db->from ('T_Bankporeport bm');
|
||||||
$this->db->join ('T_IGR_Master igrm','igrm.PONO = bm.PONO or igrm.IGRNO = bm.IGRNO ','left');
|
$this->db->join ('T_IGR_Master igrm','igrm.PONO = bm.PONO or igrm.IGRNO = bm.IGRNO ','left');
|
||||||
//$this->db->join ('T_IGR_Details igrde','igrde.IGRNO=igrm.IGRNO');
|
//$this->db->join ('T_IGR_Details igrde','igrde.IGRNO=igrm.IGRNO');
|
||||||
$this->db->join ('T_SupplierDetailsN sd','sd.SupplierName = bm.Suppliername');
|
$this->db->join ('T_SupplierDetailsN sd','sd.SupplierName = bm.Suppliername');
|
||||||
@ -472,13 +472,14 @@ function receiptdata()
|
|||||||
$this->db->where('sd.SupplierID',$SupplierName);
|
$this->db->where('sd.SupplierID',$SupplierName);
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->db->where('bm.IsActive',1);
|
|
||||||
$this->db->group_by('bm.id');
|
$this->db->group_by('bm.id');
|
||||||
$query = $this->db->get();
|
$query = $this->db->get();
|
||||||
return $query->result();
|
return $query->result();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function igrmastersingle($igrno,$pono)
|
function igrmastersingle($igrno,$pono)
|
||||||
{
|
{
|
||||||
$this->db->distinct();
|
$this->db->distinct();
|
||||||
@ -628,14 +629,13 @@ function receiptdata()
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function debitlistpo($SupplierName,$fdate,$tdate,$pono)
|
function debitlistpo($pono)
|
||||||
{
|
{
|
||||||
$this->db->select('bmp.mid,bmp.PONO,bmp.IGRLineItemNo,bmp.Amountpaid,br.Narration');
|
$this->db->select('bmp.mid,bmp.PONO,bmp.IGRLineItemNo,bmp.Amountpaid,br.Narration');
|
||||||
$this->db->from ('T_Bankmappingpo as bmp');
|
$this->db->from ('T_Bankmappingpo as bmp');
|
||||||
$this->db->join('T_bankreport br','br.ID = bmp.mid');
|
$this->db->join('T_bankreport br','br.ID = bmp.mid');
|
||||||
$this->db->where('IGRLineItemNo',$pono);
|
$this->db->where('bmp.PONO',$pono);
|
||||||
$this->db->where('bmp.IsActive',1);
|
$this->db->where('bmp.IsActive',1);
|
||||||
//$this->db->group_by('PONO');
|
|
||||||
$query = $this->db->get();
|
$query = $this->db->get();
|
||||||
return $query->result();
|
return $query->result();
|
||||||
|
|
||||||
@ -867,6 +867,20 @@ function receiptdata()
|
|||||||
return $result;
|
return $result;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
// function unpaided()
|
||||||
|
// {
|
||||||
|
// // $this->db->select('igd.IGRNO,igd.IGRItemNo,pom.PONO,sm.SupplierName');
|
||||||
|
// // $this->db->from('T_IGR_Details igd');
|
||||||
|
// // $this->db->join('T_IGR_Master igm','igm.IGRNO=igd.IGRNO');
|
||||||
|
// // $this->db->join('T_PurchaseOrder_LineItem poli','igm.PONO= poli.PONO and igd.MaterialCode=poli.MaterialCode');
|
||||||
|
// // $this->db->join('T_PurchaseOrder_Master pom','pom.PONO=poli.PONO');
|
||||||
|
// // $this->db->join('T_SupplierDetailsN sm','sm.SupplierID=pom.SupplierID');
|
||||||
|
// // $this->db->where('igd.BankStatus','ST072');
|
||||||
|
// // $query = $this->db->get();
|
||||||
|
// // $result = $query->result();
|
||||||
|
// // return $result;
|
||||||
|
|
||||||
|
// }
|
||||||
function received()
|
function received()
|
||||||
{
|
{
|
||||||
$this->db->select('*');
|
$this->db->select('*');
|
||||||
|
|||||||
@ -279,8 +279,8 @@ if(!empty($mapping))
|
|||||||
|
|
||||||
|
|
||||||
<td align="left" id="date<?php echo $i ?>"><span><?php echo date_format(date_create($ap->MaterialRcvdDate),'d-m-Y');?></span></td>
|
<td align="left" id="date<?php echo $i ?>"><span><?php echo date_format(date_create($ap->MaterialRcvdDate),'d-m-Y');?></span></td>
|
||||||
<td align="left" id="pono<?php echo $i ?>"><a href="<?= base_url() ?>cashbook/mappingdebit?sid=<?php echo $ap->PONO;?>"><span><?php echo $ap->PONO?></span></a></td>
|
<td align="left" id="pono<?php echo $i ?>"><!--<a href="<?= base_url() ?>cashbook/mappingdebit?sid=<?php echo $ap->PONO;?>">--><span><?php echo $ap->PONO?></span></a></td>
|
||||||
<td align="left" id="igrno<?php echo $i ?>"><a href="<?= base_url() ?>cashbook/mappingdebit?sid=<?php echo $ap->IGRNO;?>"><span><?php echo $ap->IGRNO?></span></a></td>
|
<td align="left" id="igrno<?php echo $i ?>"><!--<a href="<?= base_url() ?>cashbook/mappingdebit?sid=<?php echo $ap->IGRNO;?>">--><span><?php echo $ap->IGRNO?></span></a></td>
|
||||||
<td align="left" id="sn<?php echo $i ?>"><span><?php echo $ap->IGRLineItemNo?></span></td>
|
<td align="left" id="sn<?php echo $i ?>"><span><?php echo $ap->IGRLineItemNo?></span></td>
|
||||||
<!--<td align="left"><a href="<?= base_url() ?>cashbook/bankreceipt?sid=<?php echo $t->PONO;?>"><span><?php echo $t->PONO?></span></a></td>-->
|
<!--<td align="left"><a href="<?= base_url() ?>cashbook/bankreceipt?sid=<?php echo $t->PONO;?>"><span><?php echo $t->PONO?></span></a></td>-->
|
||||||
<!--<a target="_blank" href="<?php echo base_url().'uploads/BillFiles/'?><?php echo $rel->file ?>"-->
|
<!--<a target="_blank" href="<?php echo base_url().'uploads/BillFiles/'?><?php echo $rel->file ?>"-->
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user