diff --git a/application/models/purchaseorder_model.php b/application/models/purchaseorder_model.php index 5f30ea82..553ca987 100755 --- a/application/models/purchaseorder_model.php +++ b/application/models/purchaseorder_model.php @@ -419,12 +419,17 @@ function GetPOType($ReqNo) function getCompanyInformation() { - $this->db->select('CompanyName,Address,GSTNO,PAN,ContactNumber,EmailAddress,AlternateContactNumber,companyWebsite,StateCode'); - $this->db->from('T_Company_Details'); + $subQuery = "select CompanyName,replace(Address,'
','') as Address,GSTNO,PAN,ContactNumber,EmailAddress,AlternateContactNumber,companyWebsite,StateCode + from T_Company_Details "; - $query = $this->db->get(); + - return $query->result(); + $query = $this->db->query($subQuery); + + + //print_r($this->db->last_query()); + return $query->result(); + // return $query->result(); } /** * This function is used to get the Employee List