From 9e4f1bdd4f9cf95dabce69e769acc36b3ff254b4 Mon Sep 17 00:00:00 2001 From: gandhimathi Bharathirajan Date: Wed, 20 Sep 2017 16:48:22 +0530 Subject: [PATCH]
fix given --- application/models/purchaseorder_model.php | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/application/models/purchaseorder_model.php b/application/models/purchaseorder_model.php index 553ca987..0a639cc0 100755 --- a/application/models/purchaseorder_model.php +++ b/application/models/purchaseorder_model.php @@ -431,6 +431,26 @@ function GetPOType($ReqNo) return $query->result(); // return $query->result(); } + /** + * This function is used to get the Company information from T_Company_Details table + * @return array $result : This is result of the query + */ + function getCompanyInformationforPDF() + { + + $subQuery = "select CompanyName,Address,GSTNO,PAN,ContactNumber,EmailAddress,AlternateContactNumber,companyWebsite,StateCode + from T_Company_Details "; + + + + $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 * @return array $result : This is result of the query