]> wagnertech.de Git - timetracker.git/blobdiff - timesheet_view.php
Started to work on timesheet approval workflow.
[timetracker.git] / timesheet_view.php
index 80b3b77acf79a8895c1f0a364491b0eea876d427..bd97a52a502e5b4dc4e1a951aa5c7e38b013e62b 100644 (file)
@@ -52,6 +52,9 @@ $subtotals = ttReportHelper::getSubtotals($options);
 $totals = ttReportHelper::getTotals($options);
 $notClient = !$user->isClient();
 
+// Determine managers we can submit this timesheet for approval to.
+$approvers = ttTimesheetHelper::getApprovers($timesheet['user_id']);
+
 $smarty->assign('not_client', $notClient);
 $smarty->assign('group_by_header', ttReportHelper::makeGroupByHeader($options));
 $smarty->assign('timesheet', $timesheet);