Merge branch 'master' into feature/timeline
This commit is contained in:
@@ -43,10 +43,6 @@ class Assignment implements BlameableEntityInterface, TimestampableEntityInterfa
|
||||
#[Assert\NotNull(message: 'Bitte gib die Destination an')]
|
||||
private ?Destination $destination = null;
|
||||
|
||||
#[ORM\Column(nullable: true)]
|
||||
#[Assert\NotBlank(message: 'Bitte gib den Konstenträger an')]
|
||||
private ?string $costCenter = null;
|
||||
|
||||
#[ORM\ManyToOne]
|
||||
#[Assert\NotNull(message: 'Bitte gib das Jobprofil an')]
|
||||
private ?JobProfile $jobProfile = null;
|
||||
@@ -198,18 +194,6 @@ class Assignment implements BlameableEntityInterface, TimestampableEntityInterfa
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getCostCenter(): ?string
|
||||
{
|
||||
return $this->costCenter;
|
||||
}
|
||||
|
||||
public function setCostCenter(?string $costCenter): static
|
||||
{
|
||||
$this->costCenter = $costCenter;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getJobProfile(): ?JobProfile
|
||||
{
|
||||
return $this->jobProfile;
|
||||
|
||||
@@ -43,6 +43,9 @@ class JobProfile implements BlameableEntityInterface, TimestampableEntityInterfa
|
||||
#[Assert\NotNull(message: 'Bitte ordne eine Feedback-Vorlage zu')]
|
||||
private ?FeedbackSet $feedbackSet = null;
|
||||
|
||||
#[ORM\Column(nullable: true)]
|
||||
private ?string $costUnit = null;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->uuid = Uuid::v4();
|
||||
@@ -119,6 +122,18 @@ class JobProfile implements BlameableEntityInterface, TimestampableEntityInterfa
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getCostUnit(): ?string
|
||||
{
|
||||
return $this->costUnit;
|
||||
}
|
||||
|
||||
public function setCostUnit(?string $costUnit): static
|
||||
{
|
||||
$this->costUnit = $costUnit;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function isQualified(Teamer $teamer): bool
|
||||
{
|
||||
// Check licenses
|
||||
|
||||
Reference in New Issue
Block a user