* Adjust the budget module code.

This commit is contained in:
leiyong
2020-12-09 08:27:19 +08:00
parent 5c77489f08
commit bb485680aa
17 changed files with 189 additions and 243 deletions
+1 -17
View File
@@ -94,23 +94,7 @@ class programplanModel extends model
*/
public function getPlanPairsForBudget($programID = 0)
{
$pairs = array();
$plans = $this->getPlans($programID);
$program = $this->getByID($programID);
foreach($plans as $planID => $plan)
{
$name = $plan->name;
if($program->product == 'multiple') $name = $plan->productName . '/' . $name;
$pairs[$planID] = '/'.$name;
foreach($plan->children as $childID => $child)
{
$childName = $name . '/' . $child->name;
$pairs[$childID] = $childName;
}
}
return $pairs;
return $this->loadModel('project')->getExecutionsByProject($programID, 'all', 0, true);
}
/**