added hourly and money budgets to activity, project and customer (#843)

This commit is contained in:
Kevin Papst
2019-06-11 13:18:57 +02:00
committed by GitHub
parent 833968a87d
commit 5702d7afa8
118 changed files with 1743 additions and 1077 deletions

View File

@@ -41,6 +41,10 @@ class TimesheetFixtures extends Fixture
* @var Activity[]
*/
protected $activities = [];
/**
* @var Project[]
*/
protected $projects = [];
/**
* @var string
*/
@@ -172,6 +176,17 @@ class TimesheetFixtures extends Fixture
return $this;
}
/**
* @param Project[] $projects
* @return $this
*/
public function setProjects(array $projects)
{
$this->projects = $projects;
return $this;
}
/**
* @param bool $useTags
* @return TimesheetFixtures
@@ -204,7 +219,10 @@ class TimesheetFixtures extends Fixture
$activities = $this->getAllActivities($manager);
}
$projects = $this->getAllProjects($manager);
$projects = $this->projects;
if (empty($projects)) {
$projects = $this->getAllProjects($manager);
}
$faker = Factory::create();
$user = $this->user;