From 8c54ed6ac74c7b1d272ffdbb1974bf840a3d7afa Mon Sep 17 00:00:00 2001 From: "venbatechnologies@gmail.com" Date: Thu, 3 May 2018 17:38:05 +0530 Subject: [PATCH] report controller function --- application/controllers/report.php | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/application/controllers/report.php b/application/controllers/report.php index 5f0d9f36..062359fe 100755 --- a/application/controllers/report.php +++ b/application/controllers/report.php @@ -1184,6 +1184,32 @@ class report extends BaseController //print_r($data['departmentwise']); $this->loadviews("cashbookdepday",$this->global,$data, NULL); } + public function cashbook_cumulative_report() + { + $this->global['pageTitle'] = 'Cashbook Cumulative - report '; + $data['datas']=$this->dahsboard_Model->report_cumulative_cashbook(); + $this->loadviews("cashbook_cumulative_report",$this->global,$data, NULL); + } + + public function cashbook_month_cumulative_report() + { + + $this->global['pageTitle'] = 'Cashbook Cumulative(Monthwise) - report '; + + if (date('m') >= 4) { + $yearl = date('Y').'-'.(date('Y')+1); + } else { + $yearl = (date('Y')-1).'-'.date('Y'); + } + $ab=$yearl; + $fa=substr($ab,0,-5); + $aa=substr($ab,5,5); + + + $data['datas'] = $this->dahsboard_Model->report_cumulative_month_cashbook(); + $this->loadviews("cashbook_cumulative_month_report",$this->global,$data, NULL); + + } } ?>