* Round productplan story points.

This commit is contained in:
sunguangming
2024-05-13 10:02:01 +08:00
parent 6cd7efb0c1
commit a44bb596af
+1 -1
View File
@@ -133,7 +133,7 @@ class productplanModel extends model
$bugCount = isset($bugs[$plan->id]) ? count($bugs[$plan->id]) : 0;
$plan->bugs = zget($plan, 'bugs', 0) + $bugCount;
$plan->hour = zget($plan, 'hour', 0) + array_sum($storyPairs);
$plan->hour = zget($plan, 'hour', 0) + round(array_sum($storyPairs), 1);
$plan->stories = zget($plan, 'stories', 0) + count($storyPairs);
$plan->projects = zget($planProjects, $plan->id, '');
$plan->expired = $plan->end < helper::today();