* Fix count_of_monthly_finished_story_in_product.

This commit is contained in:
qixinzhi
2024-01-23 17:24:33 +08:00
parent 18b34e3456
commit cc67d5e2cf
@@ -28,8 +28,9 @@ class count_of_monthly_finished_story_in_product extends baseCalc
public function calculate($row)
{
$product = $row->product;
$closedDate = $row->closedDate;
$product = $row->product;
$closedDate = $row->closedDate;
$closedReason = $row->closedReason;
if(empty($closedDate)) return false;
@@ -39,6 +40,8 @@ class count_of_monthly_finished_story_in_product extends baseCalc
if(empty($year) || empty($month)) return false;
if($year == '0000') return false;
if($closedReason != 'done') return false;
if(!isset($this->result[$product])) $this->result[$product] = array();
if(!isset($this->result[$product][$year])) $this->result[$product][$year] = array();
if(!isset($this->result[$product][$year][$month])) $this->result[$product][$year][$month] = 0;