* Only compute the hours of parent task.

* Do not compute the hours of canceled tasks.
This commit is contained in:
daitingting
2018-07-03 10:35:33 +08:00
parent c7164b95b0
commit 1dfefe355b
+6 -3
View File
@@ -140,9 +140,12 @@
$groupSum = 0;
foreach($groupTasks as $taskKey => $task)
{
$groupEstimate += $task->estimate;
$groupConsumed += $task->consumed;
$groupLeft += ($task->status == 'cancel' ? 0 : $task->left);
if(!$task->parent && $task->status != 'cancel')
{
$groupEstimate += $task->estimate;
$groupConsumed += $task->consumed;
$groupLeft += ($task->status == 'cancel' ? 0 : $task->left);
}
if($task->status == 'wait') $groupWait++;
if($task->status == 'doing') $groupDoing++;