Merge branch feature/task-report of zentao/zentaopms (#9732)
This commit is contained in:
@@ -30,7 +30,12 @@ class count_of_changed_story extends baseCalc
|
||||
{
|
||||
if(empty($row->changedDate) || $row->status == 'changing' || $row->status == 'reviewing') return false;
|
||||
|
||||
if(!empty($row->executionStartDate) && !empty($row->executionEndDate) && $row->changedDate < $row->executionStartDate || $row->changedDate > $row->executionEndDate) return false;
|
||||
$executionStartDate = new DateTime($row->executionStartDate);
|
||||
$executionEndDate = new DateTime($row->executionEndDate);
|
||||
$executionStartDate = $executionStartDate->modify('-1 day');
|
||||
$executionEndDate = $executionEndDate->modify('+1 day');
|
||||
$changedDate = new DateTime($row->changedDate);
|
||||
if(!empty($row->executionStartDate) && !empty($row->executionEndDate) && ($changedDate < $executionStartDate || $changedDate > $executionEndDate)) return false;
|
||||
$this->result ++;
|
||||
}
|
||||
|
||||
|
||||
@@ -31,8 +31,13 @@ class scale_of_changed_story extends baseCalc
|
||||
if($row->isParent == '1') return false;
|
||||
if(empty($row->estimate)) return false;
|
||||
|
||||
$executionStartDate = new DateTime($row->executionStartDate);
|
||||
$executionEndDate = new DateTime($row->executionEndDate);
|
||||
$executionStartDate = $executionStartDate->modify('-1 day');
|
||||
$executionEndDate = $executionEndDate->modify('+1 day');
|
||||
$changedDate = new DateTime($row->changedDate);
|
||||
if(empty($row->changedDate) || $row->status == 'changing' || $row->status == 'reviewing') return false;
|
||||
if(!empty($row->executionStartDate) && !empty($row->executionEndDate) && $row->changedDate < $row->executionStartDate || $row->changedDate > $row->executionEndDate) return false;
|
||||
if(!empty($row->executionStartDate) && !empty($row->executionEndDate) && ($changedDate < $executionStartDate || $changedDate > $executionEndDate)) return false;
|
||||
|
||||
$this->result += $row->estimate;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user