* [misc] add scale_of_developed_story_in_product.
This commit is contained in:
@@ -9,6 +9,15 @@ class scale_of_developed_story_in_product extends baseCalc
|
||||
|
||||
public function calculate($row)
|
||||
{
|
||||
$stage = $row->stage;
|
||||
$product = $row->product;
|
||||
$closedReason = $row->closedReason;
|
||||
$estimate = $row->estimate;
|
||||
|
||||
if(!in_array($stage, array('developed', 'testing', 'tested', 'verified', 'released')) && $closedReason != 'done') return false;
|
||||
|
||||
if(!isset($this->result[$row->product])) $this->result[$row->product] = 0;
|
||||
$this->result[$row->product] += $estimate;
|
||||
}
|
||||
|
||||
public function getResult($options = array())
|
||||
|
||||
Reference in New Issue
Block a user