Merge branch 'sgm_projecttest' into 'master'

Sgm projecttest

See merge request easycorp/zentaopms!2775
This commit is contained in:
朱金勇
2022-04-06 09:09:27 +00:00
31 changed files with 389 additions and 440 deletions
+1 -1
View File
@@ -851,7 +851,7 @@ class projectModel extends model
if(isset($project->budget) and $program->budget != 0)
{
$availableBudget = $this->loadModel('program')->getBudgetLeft($program);
if($project->budget > $availableBudget) dao::$errors['budget'] = $this->lang->program->beyondParentBudget;
if($availableBudget > 0 and $project->budget > $availableBudget) dao::$errors['budget'] = $this->lang->program->beyondParentBudget;
}
/* Judge products not empty. */