This commit is contained in:
tanghucheng
2024-04-25 11:00:42 +08:00
parent b2878c8644
commit b3b3a4884b
+2 -3
View File
@@ -90,10 +90,9 @@ class programplanZen extends programplan
}
$customKey = 'create' . ucfirst($project->model) . 'Fields';
if(strpos(",{$this->config->programplan->custom->$customKey},", ',percent,') === false) unset($plan->percent);
if(strpos(",{$this->config->programplan->custom->$customKey},", ',percent,') === false) $totalPercent += $plan->percent;
$totalPercent += $plan->percent;
$names[] = $plan->name;
$names[] = $plan->name;
if(!empty($plan->code)) $codes[] = $plan->code;
$this->checkLegallyDate($plan, $project, !empty($parentStage) ? $parentStage : null);