]> wagnertech.de Git - timetracker.git/blobdiff - WEB-INF/lib/ttTimesheetHelper.class.php
A bit of refactoring in report.php for timesheet assignment.
[timetracker.git] / WEB-INF / lib / ttTimesheetHelper.class.php
index f214963b2fa0e74f850d9ec58fd298bdf4b1d1ff..22f1292758faefc604b1ff955c4d030824d56400 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