From a35db651305955510c79a2ca7e9bb516474aa931 Mon Sep 17 00:00:00 2001 From: gandhimathi Bharathirajan Date: Sun, 30 Jul 2017 02:13:27 +0530 Subject: [PATCH] Fiscal year change in Cost center --- application/models/costcenter_model.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/application/models/costcenter_model.php b/application/models/costcenter_model.php index ad685cc1..355ac035 100755 --- a/application/models/costcenter_model.php +++ b/application/models/costcenter_model.php @@ -41,6 +41,15 @@ function addNewcost($Cost) return $insert_id; } + function getFiscalYear() + { + $this->db->select('year(FiscalYearStartOn) as StartYear,year(FiscalYearEndsOn) as EndYear'); + $this->db->from('T_Company_Details'); + + $query = $this->db->get(); + + return $query->result(); + } function addCostCenterDepartment($Dept) {