* [misc] add scale_of_developed_story_in_product.

This commit is contained in:
qixinzhi
2024-08-08 14:13:34 +08:00
committed by 宋辰轩
parent fb16f1588d
commit 63546a0d27
@@ -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())