From 87d50d30c58c73fc916162ff4820274d70f627c0 Mon Sep 17 00:00:00 2001 From: gandhimathi Bharathirajan Date: Wed, 20 Sep 2017 16:35:17 +0530 Subject: [PATCH]
fix given --- application/models/purchaseorder_model.php | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) 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