diff --git a/module/report/control.php b/module/report/control.php index 7b209b77eb..82c95d366e 100644 --- a/module/report/control.php +++ b/module/report/control.php @@ -116,6 +116,11 @@ class report extends control /* Assign annual data. */ $this->reportZen->assignAnnualReport($year, $dept, $account); + $mode = 'company'; + if((int)$dept && empty($account)) $mode = 'dept'; + if($account) $mode = 'user'; + + $this->view->mode = $mode; $this->view->account = $account; $this->display(); }