Status Update view changes
This commit is contained in:
parent
fcf29a9663
commit
c23fa3aae2
@ -4,10 +4,15 @@ class purchaseorder_model extends CI_Model
|
|||||||
{
|
{
|
||||||
function GetServicePOListforStatusUpdate()
|
function GetServicePOListforStatusUpdate()
|
||||||
{
|
{
|
||||||
$this->db->select('*');
|
$this->db->distinct();
|
||||||
$this->db->from('T_PurchaseOrder_Master');
|
$this->db->select('PO.PONO');
|
||||||
$this->db->where('POType',SERVICE);
|
$this->db->from('T_PurchaseOrder_Master PO');
|
||||||
$this->db->where('status',PO_RELEASED);
|
$this->db->Join('T_PurchaseOrder_LineItem Line','PO.PONO = Line.PONO');
|
||||||
|
$this->db->Join('T_Requestion_Master Req','Req.ReqNo = Line.ReqNo');
|
||||||
|
$this->db->Join('T_Employee_Details Emp','Emp.EmpID= Req.Requestedby');
|
||||||
|
$this->db->where('PO.POType',SERVICE);
|
||||||
|
$this->db->where('PO.status',PO_RELEASED);
|
||||||
|
$this->db->where('Emp.Departmentcode',$this->session->userdata('DEPCode'));
|
||||||
$query = $this->db->get();
|
$query = $this->db->get();
|
||||||
|
|
||||||
return $query->result();
|
return $query->result();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user