report controller function

This commit is contained in:
venbatechnologies@gmail.com 2018-05-03 17:38:05 +05:30
parent d6ee9e4ef1
commit 8c54ed6ac7

View File

@ -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);
}
}
?>