]> wagnertech.de Git - timetracker.git/blobdiff - plugins/MonthlyQuota.class.php
Some refactoring of labels in translation files.
[timetracker.git] / plugins / MonthlyQuota.class.php
index 4b036796b634749d9b4e9f53f70e4d798f4e4807..6e420f91846734433820ba2a1d94261846401fbf 100644 (file)
@@ -80,7 +80,8 @@ class MonthlyQuota {
     // If we did not find a record, return a calculated monthly quota.
     $numWorkdays = $this->getNumWorkdays($month, $year);
     global $user;
-    return $numWorkdays * $user->workday_hours;
+    return $numWorkdays * $user->workday_hours; // TODO: fix a rounding issue for small values like 0:01
+                                                // Possibly with a database field type change (minutes?).
   }
 
   // getMany - returns an array of quotas for a given year for team.