A bit of refactoring in report.php for timesheet assignment.
[timetracker.git] / WEB-INF / lib / ttTimesheetHelper.class.php
index f214963..22f1292 100644 (file)
@@ -414,4 +414,14 @@ class ttTimesheetHelper {
     }
     return false;
   }
-}
+
+  // The canAssign function determines if we can show controls on a report page
+  // for timesheet assignment.
+  //
+  // Conditions:
+  // - Report date range, client_id, and project_id match an existing timesheet
+  //   with approved_status null.
+  static function canAssign($options) {
+    return false;
+  }
+}
\ No newline at end of file